2024-03-09 14:23:42 +00:00
|
|
|
id: smb-default-creds
|
|
|
|
|
|
|
|
info:
|
2024-04-01 06:01:06 +00:00
|
|
|
name: SMB Default Credential - Bruteforce
|
2024-03-09 14:23:42 +00:00
|
|
|
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
|
2024-03-23 09:28:19 +00:00
|
|
|
max-request: 9
|
2024-03-09 14:23:42 +00:00
|
|
|
shodan-query: "port:445"
|
2024-04-01 06:39:13 +00:00
|
|
|
tags: js,network,smb,enum,default,bruteforce
|
2024-04-01 06:01:06 +00:00
|
|
|
|
2024-03-09 14:23:42 +00:00
|
|
|
javascript:
|
|
|
|
- code: |
|
|
|
|
var m = require("nuclei/smb");
|
2024-03-15 06:18:12 +00:00
|
|
|
var c = new m.SMBClient();
|
2024-03-09 14:23:42 +00:00
|
|
|
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
|
2024-04-01 06:01:06 +00:00
|
|
|
# digest: 4a0a00473045022100b88a5950d4f9ad6fdecc7e1cbd6a6ce287278ec2e5982dfbf268035f198d8fb002203b0eb9657434880adc6c29d6ac951407898bb0af3be1da271885aa0a516b4237:922c64590222798bb761d5b6d8e72950
|