MCPcopy
hub / github.com/zakirkun/deep-eye / ScannerEngine

Class ScannerEngine

core/scanner_engine.py:33–622  ·  view source on GitHub ↗

Main scanner engine that orchestrates the penetration testing process.

Source from the content-addressed store, hash-verified

31
32
33class ScannerEngine:
34 """Main scanner engine that orchestrates the penetration testing process."""
35
36 def __init__(
37 self,
38 target_url: str,
39 config: Dict,
40 ai_manager,
41 depth: int = 2,
42 threads: int = 5,
43 proxy: Optional[str] = None,
44 custom_headers: Optional[Dict] = None,
45 cookies: Optional[Dict] = None,
46 verbose: bool = False
47 ):
48 """Initialize the scanner engine."""
49 self.target_url = target_url
50 self.config = config
51 self.ai_manager = ai_manager
52 self.depth = depth
53 self.threads = threads
54 self.verbose = verbose
55
56 # Initialize components
57 self.http_client = HTTPClient(
58 proxy=proxy,
59 custom_headers=custom_headers,
60 cookies=cookies,
61 config=config
62 )
63
64 self.vulnerability_scanner = VulnerabilityScanner(
65 config=config,
66 http_client=self.http_client
67 )
68
69 self.ai_payload_generator = AIPayloadGenerator(
70 ai_manager=ai_manager,
71 config=config
72 )
73
74 self.recon_engine = ReconEngine(
75 config=config,
76 http_client=self.http_client
77 )
78
79 self.plugin_manager = PluginManager(
80 http_client=self.http_client,
81 config=config
82 )
83
84 # Load custom plugins
85 if config.get('plugin_manager', {}).get('enabled', False):
86 self.plugin_manager.load_plugins()
87
88 self.notification_manager = NotificationManager(config)
89
90

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected