2023-09-27 12:48:10 +05:30
id : smb-enum
info :
name : SMB - Enumeration
author : pussycat0x
severity : info
description : |
SMS Information Extraction is a sophisticated and efficient system designed to retrieve critical information from a remote computer or device through short text messages. This technology enables users to remotely access essential details about a computer, such as its operating system (OS) version, computer name, and hostname,
all via SMS communication.
reference :
- https://nmap.org/nsedoc/scripts/smb-security-mode.html
metadata :
2023-11-09 10:11:53 +00:00
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
2023-09-27 12:48:10 +05:30
javascript :
2024-07-10 17:38:01 +05:30
- pre-condition : |
isPortOpen(Host,Port);
code : |
2023-09-27 12:48:10 +05:30
var m = require("nuclei/smb");
var c = m.SMBClient();
var response = c.ListSMBv2Metadata(Host, Port);
2024-02-29 13:35:22 +05:30
Export(response);
2023-09-27 12:48:10 +05:30
args :
Host : "{{Host}}"
Port : "445"
2023-11-23 22:39:06 +05:30
matchers :
- type : dsl
dsl :
- "len(OSVersion) != 0"
- "len(NetBIOSComputerName) != 0"
- "len(NetBIOSDomainName) != 0"
- "len(DNSComputerName) != 0"
- "len(DNSDomainName) != 0"
- "len(ForestName) != 0"
2023-09-27 12:48:10 +05:30
extractors :
- type : json
2023-11-23 22:39:06 +05:30
internal : true
2023-09-27 12:48:10 +05:30
name : OSVersion
json :
- '.OSVersion'
- type : json
2023-11-23 22:39:06 +05:30
internal : true
2023-09-27 12:48:10 +05:30
name : NetBIOSComputerName
json :
- '.NetBIOSComputerName'
- type : json
2023-11-23 22:39:06 +05:30
internal : true
2023-09-27 12:48:10 +05:30
name : NetBIOSDomainName
json :
- '.NetBIOSDomainName'
- type : json
2023-11-23 22:39:06 +05:30
internal : true
2023-09-27 12:48:10 +05:30
name : DNSComputerName
json :
- '.DNSComputerName'
- type : json
2023-11-23 22:39:06 +05:30
internal : true
2023-09-27 12:48:10 +05:30
name : DNSDomainName
json :
- '.DNSDomainName'
2023-11-09 10:37:07 +00:00
2023-11-23 22:39:06 +05:30
- type : json
internal : true
name : ForestName
json :
- '.ForestName'
- type : json
json :
- '"OSVersion: "+ .OSVersion '
- '"NetBIOSComputerName: "+ .NetBIOSComputerName '
- '"NetBIOSDomainName: "+ .NetBIOSDomainName '
- '"DNSComputerNamen: "+ .DNSComputerName '
- '"DNSComputerName: "+ .DNSComputerName '
- '"ForestName: "+ .ForestName'
2024-12-01 13:57:55 +00:00
# digest: 4a0a004730450220497d1156b3f1615d16abc1e250222ece3d830de51be92a4adc44ca9ee4973bf20221008ce4102cff654bad15e6499cb0a00f341b2891bf5075390943797e6820bd7a16:922c64590222798bb761d5b6d8e72950