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
|
2023-12-12 11:07:52 +00:00
|
|
|
max-request: 2
|
2023-11-10 09:15:01 +00:00
|
|
|
shodan-query: product:"OpenSSH"
|
2023-11-09 08:07:17 +00:00
|
|
|
tags: js,ssh,enum,network
|
2024-01-04 06:46:23 +00:00
|
|
|
|
2023-11-02 19:06:37 +00:00
|
|
|
javascript:
|
2023-12-01 13:18:05 +00:00
|
|
|
- pre-condition: |
|
|
|
|
isPortOpen(Host,Port);
|
|
|
|
code: |
|
2023-11-02 19:06:37 +00:00
|
|
|
var m = require("nuclei/ssh");
|
|
|
|
var c = m.SSHClient();
|
|
|
|
var response = c.ConnectSSHInfoMode(Host, Port);
|
2024-02-29 08:05:22 +00:00
|
|
|
Export(response);
|
2023-11-02 19:06:37 +00:00
|
|
|
args:
|
|
|
|
Host: "{{Host}}"
|
|
|
|
Port: "22"
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: json
|
|
|
|
json:
|
2023-11-10 08:54:47 +00:00
|
|
|
- '.ServerID.Raw'
|
2024-02-29 08:16:55 +00:00
|
|
|
# digest: 4a0a004730450221008454815f142ff14ea6ad934e6ce57dde99af0c85637dab515feb395b41f100d402207b47e062f9fa5606b42cc3f47c99a550b4ed3ee48c580b63dd635b4f77a93be3:922c64590222798bb761d5b6d8e72950
|