From 8c6e4dbc90d8b4d1540df7ef1f38a49e2f1edc43 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Wed, 27 Jul 2022 15:07:01 +0200 Subject: [PATCH] Agent: Add dirty hack which add http_ports to http_finger options --- monkey/infection_monkey/master/propagator.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/monkey/infection_monkey/master/propagator.py b/monkey/infection_monkey/master/propagator.py index 16cd30f7f..3c5cc1cf6 100644 --- a/monkey/infection_monkey/master/propagator.py +++ b/monkey/infection_monkey/master/propagator.py @@ -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",