Commit 47183c74 by Felix Yan Committed by Marcin Bury

Do not update the same dict while iterating (fixes #623) (#626)

Fixes compatibility with Python 3.8.
parent 2d602423
......@@ -42,7 +42,7 @@ class ExploitOptionsAggregator(type):
else:
attrs["exploit_attributes"] = {k: v for d in base_exploit_attributes for k, v in iteritems(d)}
for key, value in iteritems(attrs):
for key, value in iteritems(attrs.copy()):
if isinstance(value, Option):
value.label = key
attrs["exploit_attributes"].update({key: [value.display_value, value.description, value.advanced]})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment