
호스트에서 OpenSSH regreSSHion 취약점(CVE-2024-6387)을 검사하는 Python 스캐너
이 스크립트는 대상 IP 주소 또는 범위 목록을 스캔하여 CVE-2024-6387에 취약한 OpenSSH가 실행 중인지 확인합니다.
argparse 모듈.ipaddress 모듈.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.
단일 IP 주소 확인:
python3 openssh_checker.py 192.168.1.1
파일에서 여러 IP 주소 확인:
python3 openssh_checker.py -l ip_list.txt
CIDR 범위 확인:
python3 openssh_checker.py 192.168.1.0/24
스크립트는 각 대상에 대한 자세한 정보를 출력합니다: