
CVE-2023-20198 जाँच स्क्रिप्ट
CVE-2023-20198 Checkscript इस पर आधारित: https://blog.talosintelligence.com/active-exploitation-of-cisco-ios-xe-software/ अपडेटेड संस्करण शामिल है जहां ज्ञात इम्प्लांट की जांच के लिए Authorization हेडर है।
!! अपग्रेडेड इम्प्लांट की जांच के लिए उन्नत किया गया
स्क्रिप्ट 200 कोड के साथ वापस आए रिस्पॉन्स की लंबाई की जांच करती है, और जांचती है कि लंबाई 32 कैरेक्टर से छोटी है या नहीं। प्रत्येक IP जो 32 कैरेक्टर से छोटी लंबाई लौटाता है, उसकी जांच की जानी चाहिए कि डिवाइस समझौता हुआ है या नहीं। यह स्क्रिप्ट केवल आपको एक संकेत देती है, डिवाइस के समझौता होने का प्रमाण नहीं।
स्क्रिप्ट यह भी जांचती है कि क्या इम्प्लांट अपग्रेड किया गया है, जैसा कि Fox-IT द्वारा पाया गया: https://github.com/fox-it/cisco-ios-xe-implant-detection
चलाएँ:
python cve-2023-20198.py
and enter you desired subnet to scan. For example:
python CVE-2023-20198
Enter the subnet (CIDR notation): 10.0.0.0/22
IP: 10.0.0.94 - Error: no reply
IP: 10.0.0.94 - Error: no reply
IP: 10.0.0.96 - Status: 200
IP: 10.0.0.96 - Response is a potentially suspicious:
IPs with status code 200, suspicious length, should be checked:
['10.0.0.96']
IPs with status code 200, but no IOC:
[]