47 lines
981 B
YAML
47 lines
981 B
YAML
|
id: smb-default-creds
|
||
|
|
||
|
info:
|
||
|
name: SMB Default Credential - Brutforcing
|
||
|
author: pussycat0x
|
||
|
severity: high
|
||
|
description: |
|
||
|
Attempts to guess username/password combinations over SMB.
|
||
|
reference:
|
||
|
- https://nmap.org/nsedoc/scripts/smb-brute.html
|
||
|
metadata:
|
||
|
verified: true
|
||
|
shodan-query: "port:445"
|
||
|
tags: js,network,smb,enum,default
|
||
|
|
||
|
javascript:
|
||
|
- code: |
|
||
|
var m = require("nuclei/smb");
|
||
|
var c = m.SMBClient();
|
||
|
var response = c.ListShares(Host, Port, User, Pass);
|
||
|
response;
|
||
|
|
||
|
args:
|
||
|
Host: "{{Host}}"
|
||
|
Port: "445"
|
||
|
User: "{{usernames}}"
|
||
|
Pass: "{{passwords}}"
|
||
|
|
||
|
attack: clusterbomb
|
||
|
payloads:
|
||
|
usernames:
|
||
|
- 'admin'
|
||
|
- 'administrator'
|
||
|
- 'guest'
|
||
|
passwords:
|
||
|
- 'admin'
|
||
|
- 'password'
|
||
|
- 'guest'
|
||
|
|
||
|
stop-at-first-match: true
|
||
|
matchers:
|
||
|
- type: dsl
|
||
|
dsl:
|
||
|
- 'response != "[]"'
|
||
|
- 'success == true'
|
||
|
condition: and
|