Files
nuclei-templates/javascript/misconfiguration/smb/smb-anonymous-access.yaml

44 lines
1.1 KiB
YAML
Raw Normal View History

2023-10-03 00:40:04 +05:30
id: smb-anonymous-access
2024-01-09 15:08:08 +05:30
2023-10-03 00:40:04 +05:30
info:
2023-10-31 11:36:16 +05:30
name: SMB Anonymous Access Detection
2023-10-03 00:40:04 +05:30
author: pussycat0x
severity: high
description: |
2023-10-31 11:36:16 +05:30
Detects anonymous access to SMB shares on a remote server.
2023-10-03 00:40:04 +05:30
reference:
- https://wadcoms.github.io/wadcoms/SMBClient-List-Shares-Anonymous/
metadata:
verified: true
max-request: 1
shodan-query: port:445
2025-05-27 02:29:19 +00:00
product: dionaea
vendor: dionaea
tags: js,network,smb,enum,misconfig
2023-10-03 00:40:04 +05:30
javascript:
2024-07-10 17:38:01 +05:30
- pre-condition: |
isPortOpen(Host,Port);
code: |
2023-10-03 00:40:04 +05:30
var m = require("nuclei/smb");
var c = m.SMBClient();
2024-01-09 00:34:23 +05:30
var response = c.ListShares(Host,Port,User,Pass);
2024-02-29 13:35:22 +05:30
Export(response);
2023-10-03 00:40:04 +05:30
2023-10-31 11:36:16 +05:30
args:
2023-10-03 00:40:04 +05:30
Host: "{{Host}}"
2024-01-09 00:34:23 +05:30
Port: "445"
2024-01-09 14:54:36 +05:30
User: " "
Pass: " "
2024-01-09 00:34:23 +05:30
matchers:
- type: dsl
dsl:
2024-01-09 14:54:36 +05:30
- success == true
- contains(response, "IPC$")
2024-01-09 00:34:23 +05:30
condition: and
2023-10-03 00:40:04 +05:30
2023-10-31 11:36:16 +05:30
extractors:
2023-10-03 00:40:04 +05:30
- type: json
json:
- '.[]'
2024-12-01 13:57:55 +00:00
# digest: 4b0a00483046022100fcf18f60a66ccfbdf15dcf121bef1ca881c6d10eed75422c959423fa1ee558b9022100f9056004a2ab8b053bbda5c4f711dff2c2e6eb250ca04cd1f912b165c4dfb4c7:922c64590222798bb761d5b6d8e72950