mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-04 09:43:40 +08:00
28 lines
781 B
YAML
28 lines
781 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:
|
|
- 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: 4a0a00473045022100d57220a9494b8d5cc0ae7bf0be9660ec34f245d75d7b637fdf042f441c02406002204f5ea58459de9981250b41138d5c72590f5d21b13d100bb732f2cd87b122a696:922c64590222798bb761d5b6d8e72950 |