This tool checks the version of OpenSSH running on specified hosts and ports and determines if they are potentially vulnerable to regreSSHion Remote Unauthenticated Code Execution CVE-2024-6387
- Connects to SSH servers and retrieves their version information
- Checks the OpenSSH version against known vulnerable versions
- Supports multiple hosts and ports
- Python 3.x
colorama
library
-
Clone the repository:
git clone https://github.com/s3kler/s3kler---regreSSHion.git cd s3kler---regreSSHion
-
Install the required Python package:
pip install colorama
-
Create a file containing the list of IP addresses, one per line. For example,
hosts.txt
:192.168.1.1 192.168.1.2 192.168.1.3
-
Run the script with the filename and ports as arguments:
python s3kler---regreSSHion.py <filename> <ports>
Example:
python s3kler---regreSSHion.py hosts.txt 22,2222
This will check the SSH version on the hosts specified in
hosts.txt
on ports 22 and 2222.