mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-04 01:33:21 +08:00
fix template in SMB
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user