42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
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
|
|
max-request: 1
|
|
shodan-query: port:445
|
|
product: dionaea
|
|
vendor: dionaea
|
|
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);
|
|
Export(response);
|
|
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "445"
|
|
User: " "
|
|
Pass: " "
|
|
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- success == true
|
|
- contains(response, "IPC$")
|
|
condition: and
|
|
|
|
extractors:
|
|
- type: json
|
|
json:
|
|
- '.[]'
|
|
# digest: 4b0a00483046022100c87a7ef895da8ef7c6097ebd4f69aa24ccd1dd03e58cc759e8539a2abdf28bdd022100832a5bb1790d181273d09a2702cbd2f5cf88678aff41a1705e0fccaf48830a6d:922c64590222798bb761d5b6d8e72950 |