diff --git a/javascript/network/smb/smb-anonymous.yaml b/javascript/network/smb/smb-anonymous.yaml index e73a114267b..777d1445e11 100644 --- a/javascript/network/smb/smb-anonymous.yaml +++ b/javascript/network/smb/smb-anonymous.yaml @@ -1,5 +1,4 @@ id: smb-anonymous-access - info: name: SMB Anonymous Access Detection author: pussycat0x @@ -18,18 +17,19 @@ javascript: var m = require("nuclei/smb"); var c = m.SMBClient(); var response = c.ListShares(Host,Port,User,Pass); + to_json(response); args: Host: "{{Host}}" Port: "445" - User: "test" - Pass: "test" + User: " " + Pass: " " matchers: - type: dsl dsl: - - "response == true" - - "success == true" + - success == true + - contains(response, "IPC$") condition: and extractors: