forked from p34709852/monkey
Island: Fix logic to remove metadata from config in new configuration resource's POST
This commit is contained in:
parent
32fe7c6a4b
commit
6b45d62d81
|
@ -58,12 +58,10 @@ class AgentConfiguration(AbstractResource):
|
|||
).form_response()
|
||||
|
||||
@staticmethod
|
||||
# Q: why is this really needed? besides the fact that it just doesn't belong in the config
|
||||
# which is being saved in mongo? if nothing, can't we just wait to change the exploiters
|
||||
# to plugins?
|
||||
def _remove_metadata_from_config(configuration_json: Mapping):
|
||||
for exploiter in chain(
|
||||
configuration_json["propagation"]["exploitation"]["brute_force"],
|
||||
configuration_json["propagation"]["exploitation"]["vulnerability"],
|
||||
):
|
||||
del exploiter["supported_os"]
|
||||
if "supported_os" in exploiter:
|
||||
del exploiter["supported_os"]
|
||||
|
|
Loading…
Reference in New Issue