Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
47183c74
Commit
47183c74
authored
5 years ago
by
Felix Yan
Committed by
Marcin Bury
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not update the same dict while iterating (fixes #623) (#626)
Fixes compatibility with Python 3.8.
parent
2d602423
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
exploit.py
routersploit/core/exploit/exploit.py
+1
-1
No files found.
routersploit/core/exploit/exploit.py
View file @
47183c74
...
@@ -42,7 +42,7 @@ class ExploitOptionsAggregator(type):
...
@@ -42,7 +42,7 @@ class ExploitOptionsAggregator(type):
else
:
else
:
attrs
[
"exploit_attributes"
]
=
{
k
:
v
for
d
in
base_exploit_attributes
for
k
,
v
in
iteritems
(
d
)}
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
):
if
isinstance
(
value
,
Option
):
value
.
label
=
key
value
.
label
=
key
attrs
[
"exploit_attributes"
]
.
update
({
key
:
[
value
.
display_value
,
value
.
description
,
value
.
advanced
]})
attrs
[
"exploit_attributes"
]
.
update
({
key
:
[
value
.
display_value
,
value
.
description
,
value
.
advanced
]})
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment