Agent: Remove serialize config

This commit is contained in:
Ilija Lazoroski 2021-11-12 16:11:35 +01:00
parent c6db7a6d27
commit 9aaf9956f9
2 changed files with 0 additions and 15 deletions

View File

@ -128,9 +128,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 locally save the running configuration after finishing
serialize_config = False
# sets whether or not to retry failed hosts on next scan
retry_failed_explotation = True

View File

@ -123,18 +123,6 @@ def main():
try:
monkey.start()
if WormConfiguration.serialize_config:
with open(config_file, "w") as config_fo:
json_dict = WormConfiguration.as_dict()
json.dump(
json_dict,
config_fo,
skipkeys=True,
sort_keys=True,
indent=4,
separators=(",", ": "),
)
return True
except Exception as e:
logger.exception("Exception thrown from monkey's start function. More info: {}".format(e))