28 lines
783 B
YAML
28 lines
783 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: 4b0a00483046022100a23672f91c1d999ca2931231a02b9228547d2702ab7a9563676a4b7d6922de4b022100ac05bdcdd6138da1a78fc99bdb391e461306f8bcb96578cb906236fdb7bac9a3:922c64590222798bb761d5b6d8e72950 |