
CVE-2024-6387 exploit
The SSH Vulnerability Scanner is a Python script that uses Nmap to scan a list of domains for vulnerable SSH versions. It checks multiple ports for SSH services and identifies versions that are known to have security vulnerabilities.
nmap library (python3-nmap)termcolor library (termcolor)Clone the repository:
git clone https://github.com/thegenetic/CVE-2024-6387-exploit.git
cd CVE-2024-6387-exploit
Install dependencies:
pip install -r requirements.txt
domains.txt) containing domains to scan, with one domain per line.python CVE-2024-6387.py domains.txt
-Pn: Treat all hosts as online (skip host discovery).-sV: Probe open ports to determine service/version info.-p-: Scan all 65535 ports.--script ssh2-enum-algos,ssh-auth-methods,ssh-hostkey,ssh-run,sshv1: Use SSH specific scripts for more detailed information.$ python CVE-2024-6387.py domains.txt
Scanning example.com (93.184.216.34)...
[example.com] SSH version detected on port 22: SSH-2.0-OpenSSH_8.8p1
[example.com] SSH version detected on port 2222: SSH-2.0-OpenSSH_8.6p1
...
Scan Results:
example.com (22): SSH-2.0-OpenSSH_8.8p1
example.com (2222): SSH-2.0-OpenSSH_8.6p1
example.com (none): No SSH version detected on open ports
...
$ cat domains.txt
example.com
...