nuclei-templates/javascript/enumeration/ssh-server-enumeration.yaml

27 lines
541 B
YAML

id: ssh-server-enumeration
info:
name: SSH Server Software Enumeration
author: Ice3man543,tarunKoyalwar
severity: info
metadata:
verified: true
shodan-query: product:"OpenSSH"
max-request: 1
tags: js,ssh,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"
extractors:
- type: json
json:
- '.ServerID.Raw'