2023-09-27 07:18:10 +00:00
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
2023-10-31 10:54:20 +00:00
max-request : 1
shodan-query : port:445
2023-09-27 07:18:10 +00:00
tags : js,network,smb,enum
javascript :
- code : |
var m = require("nuclei/smb");
var c = m.SMBClient();
var response = c.ListSMBv2Metadata(Host, Port);
to_json(response);
args :
Host : "{{Host}}"
Port : "445"
2023-11-23 17:09:06 +00:00
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 07:18:10 +00:00
extractors :
- type : json
2023-11-23 17:09:06 +00:00
internal : true
2023-09-27 07:18:10 +00:00
name : OSVersion
json :
- '.OSVersion'
- type : json
2023-11-23 17:09:06 +00:00
internal : true
2023-09-27 07:18:10 +00:00
name : NetBIOSComputerName
json :
- '.NetBIOSComputerName'
- type : json
2023-11-23 17:09:06 +00:00
internal : true
2023-09-27 07:18:10 +00:00
name : NetBIOSDomainName
json :
- '.NetBIOSDomainName'
- type : json
2023-11-23 17:09:06 +00:00
internal : true
2023-09-27 07:18:10 +00:00
name : DNSComputerName
json :
- '.DNSComputerName'
- type : json
2023-11-23 17:09:06 +00:00
internal : true
2023-09-27 07:18:10 +00:00
name : DNSDomainName
json :
- '.DNSDomainName'
2023-11-09 10:37:07 +00:00
2023-11-23 17:09:06 +00:00
- type : json
internal : true
name : ForestName
json :
- '.ForestName'
- type : json
json :
- '"OSVersion: "+ .OSVersion '
- '"NetBIOSComputerName: "+ .NetBIOSComputerName '
- '"NetBIOSDomainName: "+ .NetBIOSDomainName '
- '"DNSComputerNamen: "+ .DNSComputerName '
- '"DNSComputerName: "+ .DNSComputerName '
- '"ForestName: "+ .ForestName'
2023-11-27 10:10:24 +00:00
# digest: 490a004630440220400426064920e802dc4845114781313f64d319993a1763151c2d5200c4f91b8902206dbd3476fefe69e224c60c81a1ec2d8e9fabb70471c38f62fac7e585eceab043:922c64590222798bb761d5b6d8e72950