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

44 lines
1.1 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:
- 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"
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: 4a0a004730450220199c4992a6800cdc93ee765661180fb4acf50a47cf6286535cc53cd07fa47c93022100a60ea4d1f00da4e866cdfd1099edd41b0d9c6ba17b26a0178204ab32b8c54899:922c64590222798bb761d5b6d8e72950