nuclei-templates/javascript/enumeration/smb/smb-default-creds.yaml

49 lines
1.2 KiB
YAML
Raw Normal View History

id: smb-default-creds
info:
2024-04-01 06:01:06 +00:00
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
2024-04-01 06:39:13 +00:00
tags: js,network,smb,enum,default,bruteforce
javascript:
- code: |
var m = require("nuclei/smb");
2024-03-15 06:18:12 +00:00
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