diff --git a/managers/scanner_manager.py b/managers/scanner_manager.py index 57c2045..0101d45 100644 --- a/managers/scanner_manager.py +++ b/managers/scanner_manager.py @@ -7,7 +7,7 @@ dateļ¼š 2023/10/8 """ from tqdm import tqdm -from scanners.path_detector import PathDetector +from scanners.path_detector import PathDetector, close_sessions from scanners.cve_scanner import CVEScanner from scanners.fingerprint_detector import FingerprintDetector from managers.concurrency_manager import ConcurrencyManager @@ -56,6 +56,7 @@ def _perform_path_scan(self, url): detected_paths = self.path_detector.detect(url) if detected_paths: logger.info(f"Detected {len(detected_paths)} sensitive paths", extra={"target": url}) + close_sessions(self.path_detector) return detected_paths def _perform_cve_scan(self, url):