Agent: Add dirty hack which add http_ports to http_finger options

This commit is contained in:
Ilija Lazoroski 2022-07-27 15:07:01 +02:00
parent 482a7479e0
commit 8c6e4dbc90
1 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,14 @@ class Propagator:
network_scan_completed = Event()
self._hosts_to_exploit = Queue()
# This is a hack to add http_ports to the options of fingerprinters
# It will be reworked
for fingerprinter in propagation_config.network_scan.fingerprinters:
if fingerprinter.name == "http":
fingerprinter.options[
"http_ports"
] = propagation_config.exploitation.options.http_ports
scan_thread = create_daemon_thread(
target=self._scan_network,
name="PropagatorScanThread",