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
2024-01-14 13:49:27 +00:00
max-request : 1
shodan-query : port:445
2023-10-02 19:10:04 +00:00
tags : js,network,smb,enum
javascript :
2024-01-08 19:05:23 +00:00
- 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 :
2024-01-09 09:58:27 +00:00
- '.[]'
2024-02-29 08:16:55 +00:00
# digest: 4b0a004830460221009f4105c209254c16d69381cc59fe56ce5001beefd0910b65c133b569116f3405022100b6c02b31a74b294eaf53890db5789abbbaf8c5c7322dbd0a67b5e39e59d7d5ba:922c64590222798bb761d5b6d8e72950