29 lines
782 B
YAML
29 lines
782 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);
|
|
to_json(response);
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "22"
|
|
|
|
extractors:
|
|
- type: json
|
|
json:
|
|
- '.ServerID.Raw'
|
|
# digest: 4a0a00473045022100a5c9aeb4a1d6b785a344c022cfbffab3835a69b75036c64a53266fc36a1605b5022020829b997e638a4a26082bdbc578c0c628bf878ae8f61d60d1dfe23ba0d1c941:922c64590222798bb761d5b6d8e72950 |