Files
nuclei-templates/javascript/enumeration/ssh/ssh-password-auth.yaml
2025-10-26 16:17:37 +00:00

32 lines
892 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,discovery
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: 490a00463044022017854c827ea4e27cbf2df915c6255542d1d40874d17c8a65a0cb6829fa271c0e02204c4442ef7f81c271a3f566f6e9f119ce605a4ec56b0f237f77e71122ffd40234:922c64590222798bb761d5b6d8e72950