diff --git a/javascript/network/smb/smb-anonymous.yaml b/javascript/network/smb/smb-anonymous.yaml index 65f9b1d49b..e5cdf522fa 100644 --- a/javascript/network/smb/smb-anonymous.yaml +++ b/javascript/network/smb/smb-anonymous.yaml @@ -1,11 +1,10 @@ id: smb-anonymous-access - info: - name: SMB Anonymous Access - Detect + name: SMB Anonymous Access Detection author: pussycat0x severity: high description: | - smb anonymous access detect + Detects anonymous access to SMB shares on a remote server. reference: - https://wadcoms.github.io/wadcoms/SMBClient-List-Shares-Anonymous/ metadata: @@ -14,25 +13,24 @@ info: tags: js,network,smb,enum,misconfig javascript: - - pre-condition: | + - pre-condition: | var m = require("nuclei/smb"); var c = m.SMBClient(); c.ListSMBv2Metadata(Host, Port); - - code: | + code: | var m = require("nuclei/smb"); var c = m.SMBClient(); var response = c.ListShares(Host, Port, User, Pass); log(to_json(response)); - args: + args: Host: "{{Host}}" Port: "5432" User: " " Pass: " " - extractors: + extractors: - type: json name: SMB Shares json: - - '.[]' + - '.[]' \ No newline at end of file diff --git a/javascript/network/smb/smb-shares.yaml b/javascript/network/smb/smb-shares.yaml index 1339d3bc12..3d9ec10951 100644 --- a/javascript/network/smb/smb-shares.yaml +++ b/javascript/network/smb/smb-shares.yaml @@ -1,7 +1,6 @@ id: smb-share - info: - name: SMB Shares - Enumeration + name: SMB Shares - Enumeration author: pussycat0x severity: low description: | @@ -14,24 +13,24 @@ info: tags: js,network,smb,enum javascript: - - pre-condition: | + - pre-condition: | var m = require("nuclei/smb"); var c = m.SMBClient(); c.ListSMBv2Metadata(Host, Port); - code: | + code: | var m = require("nuclei/smb"); var c = m.SMBClient(); var response = c.ListShares(Host, Port, User, Pass); to_json(response); - args: + args: Host: "{{Host}}" Port: "445" User: "test" Pass: "test" - extractors: + extractors: - type: json name: SMB Shares json: diff --git a/javascript/network/smb/smb-signing-not-required.yaml b/javascript/network/smb/smb-signing-not-required.yaml index 1040e1f828..0b6dbefd23 100644 --- a/javascript/network/smb/smb-signing-not-required.yaml +++ b/javascript/network/smb/smb-signing-not-required.yaml @@ -1,5 +1,4 @@ id: smb-signing-not-required - info: name: SMB Signing not required author: pussycat0x @@ -15,27 +14,26 @@ info: tags: js,network,smb,enum javascript: - - pre-condition: | + - pre-condition: | var m = require("nuclei/smb"); var c = m.SMBClient(); c.ListSMBv2Metadata(Host, Port); - code: | + code: | var m = require("nuclei/smb"); var c = m.SMBClient(); var response = c.ListSMBv2Metadata(Host, Port, User, Pass); to_json(response); - args: + args: Host: "{{Host}}" Port: "5432" User: "test" Pass: "test" - matchers: - - type: word - words: - - '"SigningEnabled": true' - - '"SigningRequired": false' - condition: and - + matchers: + - type: word + words: + - '"SigningEnabled": true' + - '"SigningRequired": false' + condition: and \ No newline at end of file