Agent: Use deserialized config in automated_master.py

This commit is contained in:
vakarisz 2022-06-22 17:47:27 +03:00 committed by Mike Salvatore
parent ffe8c3451b
commit 095e49b543
1 changed files with 3 additions and 3 deletions

View File

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