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
tags: 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);
2023-12-02 05:57:23 +00:00
to_json(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: 4a0a00473045022100f2972e441dc35ca755973f70a3ea19ba7fa785b71859e3d3ce9fd936ba353e2f02207969769a6cb8ea912162bff562b6f0f4e65c5af2e837e6104f915bd745b6d6d7:922c64590222798bb761d5b6d8e72950