Create ssh-password-auth.yaml

patch-1
Prince Chaddha 2023-11-09 12:19:16 +05:30
parent 2508a5f240
commit ee675a6060
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
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:
max-request: 1
shodan-query: product:"OpenSSH"
tags: ssh,js,enum,network
javascript:
- 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
part: body
words:
- '"UserAuth":'
- '"password"'
condition: and