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

45 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-28 15:57:05 +05:30
id: obsolete-ssh-version
info:
2023-11-28 16:19:14 +05:30
name: Obsolete and less secure SSH Version
2023-11-28 15:57:05 +05:30
author: pussycat0x
severity: info
2023-11-28 16:04:57 +05:30
reference:
2023-11-28 15:57:05 +05:30
- https://nmap.org/nsedoc/scripts/sshv1.html
metadata:
max-request: 2
shodan-query: port:22
tags: enum,js,ssh,network,discovery
2023-11-28 15:57:05 +05:30
javascript:
2023-12-01 18:48:05 +05:30
- pre-condition: |
isPortOpen(Host,Port)
code: |
2023-11-28 15:57:05 +05:30
var m = require("nuclei/ssh");
var c = m.SSHClient();
var response = c.ConnectSSHInfoMode(Host, Port);
2024-02-29 13:35:22 +05:30
Export(response);
2023-11-28 15:57:05 +05:30
args:
Host: "{{Host}}"
Port: "22"
matchers:
- type: dsl
dsl:
- "success == true"
- "version == '1.0'"
2023-11-28 16:04:57 +05:30
condition: and
2023-11-28 15:57:05 +05:30
extractors:
- type: json
name: SSH Protocol Version
json:
- '.ServerID.ProtoVersion'
- type: json
internal: true
name: version
json:
2023-11-28 16:04:57 +05:30
- '.ServerID.ProtoVersion'
2025-10-26 16:17:34 +00:00
# digest: 4a0a004730450220062952b5c0a8b1435d83bc9cbf907781497c7d3a941b15963ad0c7876605dd58022100f7abaa4aad4c2724ff99055153f57b893a719aa11db639ad2d54404e46ee7687:922c64590222798bb761d5b6d8e72950