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

32 lines
886 B
YAML
Raw Normal View History

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