
Scanner Python que verifica hosts quanto à vulnerabilidade regreSSHion do OpenSSH (CVE-2024-6387)
Este script verifica uma lista de endereços IP ou intervalos de destino para determinar se estão executando uma versão vulnerável ao CVE-2024-6387.
argparse para análise de argumentos de linha de comando.ipaddress para manipulação de endereços IP e notação 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 um único endereço IP:
python3 openssh_checker.py 192.168.1.1
Verificar vários endereços IP a partir de um arquivo:
python3 openssh_checker.py -l ip_list.txt
Verificar um intervalo CIDR:
python3 openssh_checker.py 192.168.1.0/24
O script exibe informações detalhadas sobre cada destino: