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

31 lines
884 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: 4a0a004730450220761f402d689c070ec6f4c3d3eeb13c4f50eaf17d7fc4ae2b80f774abbde80bf0022100ad263fe92358491c0c346580852a13882b589b3de9f2abf898b44ed9ce36ddf4:922c64590222798bb761d5b6d8e72950