Skip to content

Commit

Permalink
Update scanner_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sule01u authored Oct 10, 2024
1 parent 797c094 commit 988a49a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion managers/scanner_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 988a49a

Please sign in to comment.