2023-11-09 08:07:17 +00:00
|
|
|
id: ssh-server-enumeration
|
2023-11-02 19:06:37 +00:00
|
|
|
|
|
|
|
info:
|
2023-11-09 08:07:17 +00:00
|
|
|
name: SSH Server Software Enumeration
|
2023-11-02 19:06:37 +00:00
|
|
|
author: Ice3man543,tarunKoyalwar
|
|
|
|
severity: info
|
|
|
|
metadata:
|
2023-11-09 08:07:17 +00:00
|
|
|
verified: true
|
|
|
|
shodan-query: product:"OpenSSH"
|
2023-11-09 08:44:00 +00:00
|
|
|
max-request: 1
|
2023-11-09 08:07:17 +00:00
|
|
|
tags: js,ssh,enum,network
|
2023-11-02 19:06:37 +00:00
|
|
|
|
|
|
|
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:
|
2023-11-10 08:54:47 +00:00
|
|
|
- '.ServerID.Raw'
|
|
|
|
# digest: 490a0046304402202035872183dd2a77a2e10207bc0136323409836aa3d1b8737f4250f401ebdcc90220790f83910c2f524ccf89534de90887627aa1582bfffd3c8afe9e2029c1c22ac1:922c64590222798bb761d5b6d8e72950
|