nuclei-templates/javascript/misconfiguration/smb/smb-shares.yaml

37 lines
1.1 KiB
YAML
Raw Normal View History

2024-01-09 09:38:08 +00:00
id: smb-shares
2024-01-09 08:00:01 +00:00
2023-10-02 19:10:04 +00:00
info:
2023-10-31 06:06:16 +00:00
name: SMB Shares - Enumeration
2023-10-02 19:10:04 +00:00
author: pussycat0x
severity: low
description: |
Attempts to list shares using the srvsvc.NetShareEnumAll MSRPC function and retrieve more information about them using srvsvc.NetShareGetInfo. If access to those functions is denied, a list of common share names are checked.
reference:
- https://nmap.org/nsedoc/scripts/smb-enum-shares.html
metadata:
verified: true
max-request: 1
shodan-query: port:445
product: dionaea
vendor: dionaea
2023-10-02 19:10:04 +00:00
tags: js,network,smb,enum
javascript:
2024-07-10 12:08:01 +00:00
- pre-condition: |
isPortOpen(Host,Port);
code: |
2023-10-02 19:10:04 +00:00
var m = require("nuclei/smb");
var c = m.SMBClient();
var response = c.ListShares(Host, Port, User, Pass);
2024-02-29 08:05:22 +00:00
Export(response);
2023-10-02 19:10:04 +00:00
2023-10-31 06:06:16 +00:00
args:
2023-10-02 19:10:04 +00:00
Host: "{{Host}}"
Port: "445"
User: "test"
Pass: "test"
2023-10-31 06:06:16 +00:00
extractors:
2023-10-02 19:10:04 +00:00
- type: json
json:
- '.[]'
# digest: 4a0a00473045022100ac8f9fd001b61f68f2bb3b4cf7567ff25af89c95c1a993d2ca4d3af4f2d8bfd20220610e8f2d46ae1d324c92d9396069ba130aa5542d034a46524c904ec1bd426034:922c64590222798bb761d5b6d8e72950