32 lines
882 B
YAML
32 lines
882 B
YAML
id: ssh-password-auth
|
|
|
|
info:
|
|
name: SSH Password-based Authentication
|
|
author: princechaddha
|
|
severity: info
|
|
reference:
|
|
- https://nmap.org/nsedoc/scripts/ssh-auth-methods.html
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
shodan-query: product:"OpenSSH"
|
|
tags: ssh,js,enum,network
|
|
|
|
javascript:
|
|
- pre-condition: |
|
|
isPortOpen(Host,Port);
|
|
code: |
|
|
var m = require("nuclei/ssh");
|
|
var c = m.SSHClient();
|
|
var response = c.ConnectSSHInfoMode(Host, Port);
|
|
Export(response);
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "22"
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- '"UserAuth":'
|
|
- '"password"'
|
|
condition: and
|
|
# digest: 490a0046304402206e780b3a9760aa12f941f8a669db283fc595ad9d883f7c47fbda01fa55809e4d0220754ac7b8b97214fb4d5250a565f880c70767877da92b96a42308f91eb122619e:922c64590222798bb761d5b6d8e72950 |