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
|
2023-11-09 06:49:16 +00:00
|
|
|
max-request: 1
|
|
|
|
shodan-query: product:"OpenSSH"
|
|
|
|
tags: ssh,js,enum,network
|
|
|
|
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);
|
|
|
|
to_json(response);
|
|
|
|
args:
|
|
|
|
Host: "{{Host}}"
|
|
|
|
Port: "22"
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- '"UserAuth":'
|
|
|
|
- '"password"'
|
2023-11-09 06:52:06 +00:00
|
|
|
condition: and
|
2023-12-01 13:23:36 +00:00
|
|
|
# digest: 4a0a004730450220761f402d689c070ec6f4c3d3eeb13c4f50eaf17d7fc4ae2b80f774abbde80bf0022100ad263fe92358491c0c346580852a13882b589b3de9f2abf898b44ed9ce36ddf4:922c64590222798bb761d5b6d8e72950
|