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

29 lines
781 B
YAML

id: ssh-server-enumeration
info:
name: SSH Server Software Enumeration
author: Ice3man543,tarunKoyalwar
severity: info
metadata:
verified: true
max-request: 2
shodan-query: product:"OpenSSH"
tags: js,ssh,enum,network
javascript:
- pre-condition: |
isPortOpen(Host,Port);
code: |
var m = require("nuclei/ssh");
var c = m.SSHClient();
var response = c.ConnectSSHInfoMode(Host, Port);
Export(response);
args:
Host: "{{Host}}"
Port: "22"
extractors:
- type: json
json:
- '.ServerID.Raw'
# digest: 4a0a004730450221008454815f142ff14ea6ad934e6ce57dde99af0c85637dab515feb395b41f100d402207b47e062f9fa5606b42cc3f47c99a550b4ed3ee48c580b63dd635b4f77a93be3:922c64590222798bb761d5b6d8e72950