
Scanner Python che controlla gli host per la vulnerabilità regreSSHion di OpenSSH (CVE-2024-6387)
Questo script esegue la scansione di un elenco di indirizzi IP o intervalli per determinare se eseguono versioni vulnerabili alla CVE-2024-6387.
argparse per l'analisi degli argomenti da riga di comando.ipaddress per la gestione degli indirizzi IP e della notazione 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.
Controllo di un singolo indirizzo IP:
python3 openssh_checker.py 192.168.1.1
Controllo di più indirizzi IP da un file:
python3 openssh_checker.py -l ip_list.txt
Controllo di un intervallo CIDR:
python3 openssh_checker.py 192.168.1.0/24
Lo script fornisce informazioni dettagliate su ogni target: