mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-06 10:43:18 +08:00
38 lines
831 B
YAML
38 lines
831 B
YAML
id: smb-anonymous-access
|
|
info:
|
|
name: SMB Anonymous Access Detection
|
|
author: pussycat0x
|
|
severity: high
|
|
description: |
|
|
Detects anonymous access to SMB shares on a remote server.
|
|
reference:
|
|
- https://wadcoms.github.io/wadcoms/SMBClient-List-Shares-Anonymous/
|
|
metadata:
|
|
verified: true
|
|
shodan-query: "port:445"
|
|
tags: js,network,smb,enum,misconfig
|
|
|
|
javascript:
|
|
- code: |
|
|
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: " "
|
|
Pass: " "
|
|
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- success == true
|
|
- contains(response, "IPC$")
|
|
condition: and
|
|
|
|
extractors:
|
|
- type: json
|
|
json:
|
|
- '.[]' |