54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
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:
|
|
verified: true
|
|
max-request: 1
|
|
shodan-query: port:445
|
|
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"
|
|
|
|
extractors:
|
|
- type: json
|
|
name: OSVersion
|
|
json:
|
|
- '.OSVersion'
|
|
|
|
- type: json
|
|
name: NetBIOSComputerName
|
|
json:
|
|
- '.NetBIOSComputerName'
|
|
|
|
- type: json
|
|
name: NetBIOSDomainName
|
|
json:
|
|
- '.NetBIOSDomainName'
|
|
|
|
- type: json
|
|
name: DNSComputerName
|
|
json:
|
|
- '.DNSComputerName'
|
|
|
|
- type: json
|
|
name: DNSDomainName
|
|
json:
|
|
- '.DNSDomainName'
|
|
|
|
# digest: 4b0a00483046022100f884f64e0257e25d04cd62da63b3d23b1bc4f096df31d976bdd0bf98d682df47022100d2cf6934188a7aa72088083259f345c65278b63ca49451b4bdbc98b43f920625:922c64590222798bb761d5b6d8e72950
|