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

32 lines
882 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: 490a0046304402206e780b3a9760aa12f941f8a669db283fc595ad9d883f7c47fbda01fa55809e4d0220754ac7b8b97214fb4d5250a565f880c70767877da92b96a42308f91eb122619e:922c64590222798bb761d5b6d8e72950