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); to_json(response); args: Host: "{{Host}}" Port: "22" matchers: - type: word words: - '"UserAuth":' - '"password"' condition: and # digest: 4a0a00473045022000a057693ca3320ab502efe2760c39b439c7ff3a1a16bfade62058fefb124f9d0221008b0eab3eeed064d265277f81ec57e63c7d7d4387924eb8ef18956c1dbbcbf420:922c64590222798bb761d5b6d8e72950