forked from p15670423/monkey
Agent: Remove scan_thread from Propagator._exploit_hosts() arguments
This commit is contained in:
parent
bda192eba9
commit
b466a17f76
|
@ -1,6 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
from threading import Event, Thread
|
from threading import Event
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
from infection_monkey.i_puppet import (
|
from infection_monkey.i_puppet import (
|
||||||
|
@ -46,7 +46,7 @@ class Propagator:
|
||||||
)
|
)
|
||||||
exploit_thread = create_daemon_thread(
|
exploit_thread = create_daemon_thread(
|
||||||
target=self._exploit_hosts,
|
target=self._exploit_hosts,
|
||||||
args=(scan_thread, propagation_config, network_scan_completed, stop),
|
args=(propagation_config, network_scan_completed, stop),
|
||||||
)
|
)
|
||||||
|
|
||||||
scan_thread.start()
|
scan_thread.start()
|
||||||
|
@ -116,7 +116,6 @@ class Propagator:
|
||||||
|
|
||||||
def _exploit_hosts(
|
def _exploit_hosts(
|
||||||
self,
|
self,
|
||||||
scan_thread: Thread,
|
|
||||||
propagation_config: Dict,
|
propagation_config: Dict,
|
||||||
network_scan_completed: Event,
|
network_scan_completed: Event,
|
||||||
stop: Event,
|
stop: Event,
|
||||||
|
|
Loading…
Reference in New Issue