2024-03-09 14:23:42 +00:00
id : smb-enum-domains
info :
name : SMB - Enum Domains
author : DhiyaneshDK
severity : info
description : |
2024-03-23 09:28:19 +00:00
SMB enumeration of domains is often part of the reconnaissance phase, where security professionals or attackers attempt to gather information about the target network to identify potential vulnerabilities.
2024-03-09 14:23:42 +00:00
reference :
- https://nmap.org/nsedoc/scripts/smb-enum-domains.html
metadata :
verified : true
2025-05-27 10:39:47 +08:00
max-request : 1
shodan-query : port:445
2025-05-27 02:29:19 +00:00
product : dionaea
2025-05-27 10:39:47 +08:00
vendor : dionaea
tags : js,network,smb,enum
2024-03-09 14:23:42 +00:00
javascript :
2024-07-10 17:38:01 +05:30
- pre-condition : |
isPortOpen(Host,Port);
code : |
2024-03-09 14:23:42 +00:00
var m = require("nuclei/smb");
2024-03-15 11:48:12 +05:30
var c = new m.SMBClient();
2024-03-09 14:23:42 +00:00
var response = c.ListSMBv2Metadata(Host, Port);
2024-03-10 00:02:19 +05:30
Export(response);
2024-03-09 14:23:42 +00:00
args :
Host : "{{Host}}"
Port : "445"
matchers :
- type : dsl
dsl :
- "len(DNSDomainName) != 0"
extractors :
- type : json
internal : true
name : DNSDomainName
json :
- '.DNSDomainName'
- type : json
json :
- '"DomainName: "+ .DNSDomainName '
2024-12-01 13:57:55 +00:00
# digest: 4b0a00483046022100c4000fd947051f5b044c2b3d04c04fff0e40b0e9e0eca683f87dd49866c79c1b022100875d9cbdf032bf8e6a931700de9d95438dbc30ab6a40633d1e4ddb7a5f1f6911:922c64590222798bb761d5b6d8e72950