forked from p15670423/monkey
Agent: Use deserialized config in automated_master.py
This commit is contained in:
parent
ffe8c3451b
commit
095e49b543
|
@ -150,7 +150,7 @@ class AutomatedMaster(IMaster):
|
||||||
target=self._run_plugins,
|
target=self._run_plugins,
|
||||||
name="CredentialCollectorThread",
|
name="CredentialCollectorThread",
|
||||||
args=(
|
args=(
|
||||||
config["credential_collectors"],
|
config.credential_collectors,
|
||||||
"credential collector",
|
"credential collector",
|
||||||
self._collect_credentials,
|
self._collect_credentials,
|
||||||
),
|
),
|
||||||
|
@ -158,7 +158,7 @@ class AutomatedMaster(IMaster):
|
||||||
pba_thread = create_daemon_thread(
|
pba_thread = create_daemon_thread(
|
||||||
target=self._run_pbas,
|
target=self._run_pbas,
|
||||||
name="PBAThread",
|
name="PBAThread",
|
||||||
args=(config["post_breach_actions"].items(), self._run_pba, config["custom_pbas"]),
|
args=(config.post_breach_actions, self._run_pba, config.custom_pbas),
|
||||||
)
|
)
|
||||||
|
|
||||||
credential_collector_thread.start()
|
credential_collector_thread.start()
|
||||||
|
@ -181,7 +181,7 @@ class AutomatedMaster(IMaster):
|
||||||
payload_thread = create_daemon_thread(
|
payload_thread = create_daemon_thread(
|
||||||
target=self._run_plugins,
|
target=self._run_plugins,
|
||||||
name="PayloadThread",
|
name="PayloadThread",
|
||||||
args=(config["payloads"].items(), "payload", self._run_payload),
|
args=(config.payloads.items(), "payload", self._run_payload),
|
||||||
)
|
)
|
||||||
payload_thread.start()
|
payload_thread.start()
|
||||||
payload_thread.join()
|
payload_thread.join()
|
||||||
|
|
Loading…
Reference in New Issue