
A Python-based tool to check for vulnerabilities in OpenSSH installations on local or remote systems by scanning specific IPs. It checks if the OpenSSH version is affected by CVE-2023-48795
This Python-based tool scans systems for OpenSSH installations and checks if they are vulnerable to CVE-2023-48795, a critical vulnerability that affects versions earlier than OpenSSH 9.6. The script provides a detailed report of the scanned systems, including recommendations for upgrading if vulnerabilities are found.
which, ssh, or sshd binaries.pip (for dependency management)These dependencies are automatically installed when running the script.
Clone the repository:
git clone https://github.com/TrixSec/CVE-2023-48795.git
cd CVE-2023-48795
Run the script with the following options:
python CVE-2023-48795.py --ip <IP_ADDRESS>
Example:
python CVE-2023-48795.py --ip 192.168.1.10
python CVE-2023-48795.py --ip <PATH_TO_FILE>
Example:
python CVE-2023-48795.py --ip ips.txt
You will be prompted to enter the number of threads for scanning.
Results are saved in the output directory with a randomly generated file name (e.g., 123456.json).
The file contains information about each scanned IP and its vulnerability status.
Example result:
[
{
"ip": "192.168.1.10",
"ssh_version": 9.5,
"sshd_version": 9.5,
"status": "Vulnerable"
},
{
"ip": "192.168.1.15",
"ssh_version": 9.6,
"sshd_version": 9.6,
"status": "Safe"
}
]
Use this tool responsibly and only on systems you own or have permission to test. Unauthorized scanning of external systems may violate laws and policies.
Repository Views