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

32 lines
884 B
YAML
Raw Normal View History

2023-11-09 06:49:16 +00:00
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:
2023-11-09 06:52:06 +00:00
verified: true
max-request: 2
2023-11-09 06:49:16 +00:00
shodan-query: product:"OpenSSH"
tags: ssh,js,enum,network
2024-01-04 06:46:23 +00:00
2023-11-09 06:49:16 +00:00
javascript:
2023-12-01 13:18:05 +00:00
- pre-condition: |
isPortOpen(Host,Port);
code: |
2023-11-09 06:49:16 +00:00
var m = require("nuclei/ssh");
var c = m.SSHClient();
var response = c.ConnectSSHInfoMode(Host, Port);
2024-02-29 08:05:22 +00:00
Export(response);
2023-11-09 06:49:16 +00:00
args:
Host: "{{Host}}"
Port: "22"
matchers:
- type: word
words:
- '"UserAuth":'
- '"password"'
2023-11-09 06:52:06 +00:00
condition: and
# digest: 4a0a00473045022000a057693ca3320ab502efe2760c39b439c7ff3a1a16bfade62058fefb124f9d0221008b0eab3eeed064d265277f81ec57e63c7d7d4387924eb8ef18956c1dbbcbf420:922c64590222798bb761d5b6d8e72950