nuclei-templates/javascript/enumeration/ssh/obsolete-ssh-version.yaml

45 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-28 10:27:05 +00:00
id: obsolete-ssh-version
info:
2023-11-28 10:49:14 +00:00
name: Obsolete and less secure SSH Version
2023-11-28 10:27:05 +00:00
author: pussycat0x
severity: info
2023-11-28 10:34:57 +00:00
reference:
2023-11-28 10:27:05 +00:00
- https://nmap.org/nsedoc/scripts/sshv1.html
metadata:
max-request: 2
shodan-query: port:22
2024-01-14 09:21:50 +00:00
tags: enum,js,ssh,network
2023-11-28 10:27:05 +00:00
javascript:
2023-12-01 13:18:05 +00:00
- pre-condition: |
isPortOpen(Host,Port)
code: |
2023-11-28 10:27:05 +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-28 10:27:05 +00:00
args:
Host: "{{Host}}"
Port: "22"
matchers:
- type: dsl
dsl:
- "success == true"
- "version == '1.0'"
2023-11-28 10:34:57 +00:00
condition: and
2023-11-28 10:27:05 +00:00
extractors:
- type: json
name: SSH Protocol Version
json:
- '.ServerID.ProtoVersion'
- type: json
internal: true
name: version
json:
2023-11-28 10:34:57 +00:00
- '.ServerID.ProtoVersion'
# digest: 4b0a00483046022100cdfd4b45db26e844e6192d56df6940f1cfe3414e8f2adb44a7557dd1fb680e83022100c8f30940ba6d97ace4d0b7afb3c5923fd1d519e908d6857bf3bc071affce0ee4:922c64590222798bb761d5b6d8e72950