SMB - Enumeration -JS

patch-1
pussycat0x 2023-09-27 12:48:10 +05:30 committed by GitHub
parent a5af4a1f44
commit 4b9a389e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,52 @@
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
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'