Agent: Remove redundant check for stop in Exploiter

This commit is contained in:
Mike Salvatore 2021-12-15 08:10:00 -05:00
parent fc767e2074
commit f1b55b70c2
1 changed files with 1 additions and 4 deletions

View File

@ -59,10 +59,7 @@ class Exploiter:
victim_host = hosts_to_exploit.get(timeout=QUEUE_TIMEOUT)
self._run_all_exploiters(exploiters_to_run, victim_host, results_callback, stop)
except queue.Empty:
if (
_all_hosts_have_been_processed(scan_completed, hosts_to_exploit)
or stop.is_set()
):
if _all_hosts_have_been_processed(scan_completed, hosts_to_exploit):
break
logger.debug(