49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
id: smb-default-creds
|
|
|
|
info:
|
|
name: SMB Default Credential - Bruteforce
|
|
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
|
|
max-request: 9
|
|
shodan-query: "port:445"
|
|
product: dionaea
|
|
vendor: dionaea
|
|
tags: js,network,smb,enum,default,bruteforce
|
|
javascript:
|
|
- code: |
|
|
var m = require("nuclei/smb");
|
|
var c = new 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
|
|
# digest: 4a0a0047304502210084fda53cac141dc9c521ddec90872b227f5bc050add7f62f108345ad22666b1402203bba01eaca0cff4e774eb518f9b0333228f650b3c818877110441479a3f597aa:922c64590222798bb761d5b6d8e72950 |