nuclei-templates/javascript/enumeration/ssh-password-auth.yaml

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