Files
nuclei-templates/javascript/enumeration/obsolete-ssh-version.yaml
2023-11-29 19:42:02 +00:00

42 lines
1.0 KiB
YAML

id: obsolete-ssh-version
info:
name: Obsolete and less secure SSH Version
author: pussycat0x
severity: info
reference:
- https://nmap.org/nsedoc/scripts/sshv1.html
metadata:
shodan-query: "port:22"
tags: javascript,ssh,network
javascript:
- code: |
var m = require("nuclei/ssh");
var c = m.SSHClient();
var response = c.ConnectSSHInfoMode(Host, Port);
log(to_json(response));
args:
Host: "{{Host}}"
Port: "22"
matchers:
- type: dsl
dsl:
- "success == true"
- "version == '1.0'"
condition: and
extractors:
- type: json
name: SSH Protocol Version
json:
- '.ServerID.ProtoVersion'
- type: json
internal: true
name: version
json:
- '.ServerID.ProtoVersion'
# digest: 490a004630440220232b88370c07aaca4160e934b9450365d5806d58765db6557911b5cc1e12f0cb0220249eb162bbf5aba1e736b419060a584524d63f9a3f6b3426a273a4a614304b0a:922c64590222798bb761d5b6d8e72950