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

28 lines
731 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'
# digest: 490a0046304402202035872183dd2a77a2e10207bc0136323409836aa3d1b8737f4250f401ebdcc90220790f83910c2f524ccf89534de90887627aa1582bfffd3c8afe9e2029c1c22ac1:922c64590222798bb761d5b6d8e72950