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:
|
2023-12-12 11:07:52 +00:00
|
|
|
max-request: 2
|
|
|
|
|
shodan-query: port:22
|
2024-01-14 14:51:50 +05:30
|
|
|
tags: enum,js,ssh,network
|
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'
|
2024-12-01 13:57:55 +00:00
|
|
|
# digest: 490a004630440220049b8408a8d07eb17911b00482d80515f940566d9e2313f31d7f1eeb59f5326702205674e5ed6dac032b741108d1becd305d1889dcb6c75f71246187768ef4a165eb:922c64590222798bb761d5b6d8e72950
|