diff --git a/monkey/infection_monkey/config.py b/monkey/infection_monkey/config.py index d37db1e15..8f4984ba6 100644 --- a/monkey/infection_monkey/config.py +++ b/monkey/infection_monkey/config.py @@ -118,9 +118,6 @@ class Configuration(object): # Configuration servers to try to connect to, in this order. command_servers = ["192.0.2.0:5000"] - # sets whether or not to retry failed hosts on next scan - retry_failed_explotation = True - keep_tunnel_open_time = 60 ########################### diff --git a/monkey/infection_monkey/example.conf b/monkey/infection_monkey/example.conf index b82e3e43f..dcb3b3138 100644 --- a/monkey/infection_monkey/example.conf +++ b/monkey/infection_monkey/example.conf @@ -50,7 +50,6 @@ "ping_scan_timeout": 10000, "smb_download_timeout": 300, "smb_service_name": "InfectionMonkey", - "retry_failed_explotation": true, "self_delete_in_cleanup": true, "skip_exploit_if_file_exist": false, "exploit_user_list": [], diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index b24cdf52c..4160a36e0 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -248,12 +248,6 @@ class InfectionMonkey(object): if machine in self._exploited_machines: logger.debug("Skipping %r - already exploited", machine) continue - elif machine in self._fail_exploitation_machines: - if WormConfiguration.retry_failed_explotation: - logger.debug("%r - exploitation failed before, trying again", machine) - else: - logger.debug("Skipping %r - exploitation failed before", machine) - continue if self._monkey_tunnel: self._monkey_tunnel.set_tunnel_for_host(machine)