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
29a50fa9
Commit
29a50fa9
authored
Mar 03, 2017
by
dincaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused import, add whitespace around operator.
parent
ae3523df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
zywall_usg_extract_hashes.py
...ploit/modules/exploits/zyxel/zywall_usg_extract_hashes.py
+2
-3
No files found.
routersploit/modules/exploits/zyxel/zywall_usg_extract_hashes.py
View file @
29a50fa9
...
@@ -7,8 +7,7 @@ from routersploit import (
...
@@ -7,8 +7,7 @@ from routersploit import (
print_success
,
print_success
,
http_request
,
http_request
,
mute
,
mute
,
validators
,
validators
shell
,
)
)
...
@@ -54,7 +53,7 @@ class Exploit(exploits.Exploit):
...
@@ -54,7 +53,7 @@ class Exploit(exploits.Exploit):
for
line
in
self
.
script_content
.
split
(
"
\n
"
):
for
line
in
self
.
script_content
.
split
(
"
\n
"
):
line
=
line
.
strip
()
line
=
line
.
strip
()
m_groups
=
re
.
match
(
r'username (.*) password (.*) user-type (.*)'
,
line
,
re
.
I
|
re
.
M
)
m_groups
=
re
.
match
(
r'username (.*) password (.*) user-type (.*)'
,
line
,
re
.
I
|
re
.
M
)
if
m_groups
:
if
m_groups
:
creds
.
append
((
m_groups
.
group
(
1
),
m_groups
.
group
(
2
),
m_groups
.
group
(
3
)))
creds
.
append
((
m_groups
.
group
(
1
),
m_groups
.
group
(
2
),
m_groups
.
group
(
3
)))
...
...
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