Agent: Remove retry failed exploitation option

This commit is contained in:
Shreya Malviya 2021-11-18 12:22:12 +05:30 committed by Mike Salvatore
parent de2515a2f4
commit 1e76810e77
3 changed files with 0 additions and 10 deletions

View File

@ -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
###########################

View File

@ -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": [],

View File

@ -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)