28 lines
731 B
YAML
28 lines
731 B
YAML
id: ssh-server-enumeration
|
|
|
|
info:
|
|
name: SSH Server Software Enumeration
|
|
author: Ice3man543,tarunKoyalwar
|
|
severity: info
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
shodan-query: product:"OpenSSH"
|
|
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: 490a004630440220150e7d5283c989e59522546a3bba666e5e870e8efb2a181f173a74e2ea96f6e6022047048a221b844566c2e234b8e28b0a85e515504f443bfefcfc4010b7a6ce96fb:922c64590222798bb761d5b6d8e72950
|