
Python स्कैनर जो OpenSSH regreSSHion भेद्यता (CVE-2024-6387) के लिए होस्ट की जाँच करता है
यह स्क्रिप्ट लक्ष्य IP पतों या श्रेणियों की एक सूची को स्कैन करता है ताकि यह निर्धारित किया जा सके कि वे CVE-2024-6387 के लिए भेद्य हैं या नहीं।
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
स्क्रिप्ट प्रत्येक लक्ष्य के बारे में विस्तृत जानकारी आउटपुट करता है: