
Escáner de Python que verifica hosts en busca de la vulnerabilidad regreSSHion de OpenSSH (CVE-2024-6387)
Este script escanea una lista de direcciones IP o rangos objetivo para determinar si están ejecutando una versión vulnerable a CVE-2024-6387.
argparse para el análisis de argumentos de línea de comandos.ipaddress para manejar direcciones IP y notación CIDR.usage: openssh_checker.py [-h] [--port PORT] [-t TIMEOUT] [-l LIST] targets [targets ...]
Check if servers are running a vulnerable version of OpenSSH.
positional arguments:
targets IP addresses, domain names, file paths containing IP addresses, or CIDR network ranges.
optional arguments:
-h, --help show this help message and exit
--port PORT Port number to check (default: 22).
-t TIMEOUT, --timeout TIMEOUT
Connection timeout in seconds (default: 1 second).
-l LIST, --list LIST File containing a list of IP addresses to check.
Verificar una dirección IP única:
python3 openssh_checker.py 192.168.1.1
Verificar múltiples direcciones IP desde un archivo:
python3 openssh_checker.py -l ip_list.txt
Verificar un rango CIDR:
python3 openssh_checker.py 192.168.1.0/24
El script muestra información detallada sobre cada objetivo: