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
d2b844c0
Commit
d2b844c0
authored
Mar 07, 2017
by
Marcin Bury
Committed by
Mariusz Kupidura
Mar 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replacing print with print_info (#204)
parent
7871dead
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
40 additions
and
22 deletions
+40
-22
n150_path_traversal.py
routersploit/modules/exploits/belkin/n150_path_traversal.py
+2
-1
ucs_manager_rce.py
routersploit/modules/exploits/cisco/ucs_manager_rce.py
+2
-1
dir_300_320_615_auth_bypass.py
...oit/modules/exploits/dlink/dir_300_320_615_auth_bypass.py
+5
-4
dir_300_600_rce.py
routersploit/modules/exploits/dlink/dir_300_600_rce.py
+2
-1
dns_320l_327l_rce.py
routersploit/modules/exploits/dlink/dns_320l_327l_rce.py
+2
-1
dsl_2730_2750_path_traversal.py
...it/modules/exploits/dlink/dsl_2730_2750_path_traversal.py
+2
-1
dvg_n5402sp_path_traversal.py
...loit/modules/exploits/dlink/dvg_n5402sp_path_traversal.py
+3
-2
ipfire_proxy_rce.py
routersploit/modules/exploits/ipfire/ipfire_proxy_rce.py
+2
-1
1500_2500_rce.py
routersploit/modules/exploits/linksys/1500_2500_rce.py
+2
-1
wap54gv3_rce.py
routersploit/modules/exploits/linksys/wap54gv3_rce.py
+2
-1
adsl_router_bhs_rta_path_traversal.py
...s/exploits/movistar/adsl_router_bhs_rta_path_traversal.py
+2
-1
heartbleed.py
routersploit/modules/exploits/multi/heartbleed.py
+2
-1
tcp_32764_rce.py
routersploit/modules/exploits/multi/tcp_32764_rce.py
+2
-1
jnr1010_path_traversal.py
...sploit/modules/exploits/netgear/jnr1010_path_traversal.py
+2
-1
n300_auth_bypass.py
routersploit/modules/exploits/netgear/n300_auth_bypass.py
+2
-1
prosafe_rce.py
routersploit/modules/exploits/netgear/prosafe_rce.py
+2
-1
wnr500_612v3_jnr1010_2010_path_traversal.py
...loits/netgear/wnr500_612v3_jnr1010_2010_path_traversal.py
+2
-1
dlink_scan.py
routersploit/modules/scanners/dlink_scan.py
+2
-1
No files found.
routersploit/modules/exploits/belkin/n150_path_traversal.py
View file @
d2b844c0
...
...
@@ -2,6 +2,7 @@ from routersploit import (
exploits
,
print_success
,
print_error
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -47,7 +48,7 @@ class Exploit(exploits.Exploit):
if
response
.
status_code
==
200
and
len
(
response
.
text
):
print_success
(
"Success! File:
%
s"
%
self
.
filename
)
print
response
.
text
print
_info
(
response
.
text
)
else
:
print_error
(
"Exploit failed"
)
else
:
...
...
routersploit/modules/exploits/cisco/ucs_manager_rce.py
View file @
d2b844c0
...
...
@@ -5,6 +5,7 @@ from routersploit import (
print_success
,
print_status
,
print_error
,
print_info
,
random_text
,
http_request
,
mute
,
...
...
@@ -52,7 +53,7 @@ class Exploit(exploits.Exploit):
if
cmd
in
[
'exit'
,
'quit'
]:
return
print
self
.
execute
(
cmd
)
print
_info
(
self
.
execute
(
cmd
)
)
def
execute
(
self
,
cmd
):
mark
=
random_text
(
32
)
...
...
routersploit/modules/exploits/dlink/dir_300_320_615_auth_bypass.py
View file @
d2b844c0
...
...
@@ -2,6 +2,7 @@ from routersploit import (
exploits
,
print_success
,
print_error
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -38,10 +39,10 @@ class Exploit(exploits.Exploit):
def
run
(
self
):
if
self
.
check
():
print_success
(
"Target is vulnerable"
)
print
"
\n
You need to add NO_NEED_AUTH=1&AUTH_GROUP=0 to query string for every action."
print
"
\n
Examples:"
print
"{}:{}/bsc_lan.php?NO_NEED_AUTH=1&AUTH_GROUP=0"
.
format
(
self
.
target
,
self
.
port
)
print
"{}:{}/bsc_wlan.php?NO_NEED_AUTH=1&AUTH_GROUP=0
\n
"
.
format
(
self
.
target
,
self
.
port
)
print
_info
(
"
\n
You need to add NO_NEED_AUTH=1&AUTH_GROUP=0 to query string for every action."
)
print
_info
(
"
\n
Examples:"
)
print
_info
(
"{}:{}/bsc_lan.php?NO_NEED_AUTH=1&AUTH_GROUP=0"
.
format
(
self
.
target
,
self
.
port
)
)
print
_info
(
"{}:{}/bsc_wlan.php?NO_NEED_AUTH=1&AUTH_GROUP=0
\n
"
.
format
(
self
.
target
,
self
.
port
)
)
else
:
print_error
(
"Target seems to be not vulnerable"
)
...
...
routersploit/modules/exploits/dlink/dir_300_600_rce.py
View file @
d2b844c0
...
...
@@ -3,6 +3,7 @@ from routersploit import (
print_error
,
print_success
,
print_status
,
print_info
,
random_text
,
http_request
,
mute
,
...
...
@@ -51,7 +52,7 @@ class Exploit(exploits.Exploit):
if
cmd
in
[
'exit'
,
'quit'
]:
return
print
self
.
execute
(
cmd
)
print
_info
(
self
.
execute
(
cmd
)
)
def
execute
(
self
,
cmd
):
url
=
"{}:{}/command.php"
.
format
(
self
.
target
,
self
.
port
)
...
...
routersploit/modules/exploits/dlink/dns_320l_327l_rce.py
View file @
d2b844c0
...
...
@@ -6,6 +6,7 @@ from routersploit import (
print_success
,
print_status
,
print_error
,
print_info
,
random_text
,
http_request
,
mute
,
...
...
@@ -52,7 +53,7 @@ class Exploit(exploits.Exploit):
if
cmd
in
[
'exit'
,
'quit'
]:
return
print
self
.
execute
(
cmd
)
print
_info
(
self
.
execute
(
cmd
)
)
def
execute
(
self
,
cmd
):
mark
=
random_text
(
32
)
...
...
routersploit/modules/exploits/dlink/dsl_2730_2750_path_traversal.py
View file @
d2b844c0
...
...
@@ -2,6 +2,7 @@ from routersploit import (
exploits
,
print_success
,
print_error
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -44,7 +45,7 @@ class Exploit(exploits.Exploit):
if
response
.
status_code
==
200
and
len
(
response
.
text
):
print_success
(
"Success! File:
%
s"
%
self
.
filename
)
print
response
.
text
print
_info
(
response
.
text
)
else
:
print_error
(
"Exploit failed"
)
else
:
...
...
routersploit/modules/exploits/dlink/dvg_n5402sp_path_traversal.py
View file @
d2b844c0
...
...
@@ -3,6 +3,7 @@ from routersploit import (
print_success
,
print_error
,
print_status
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -30,7 +31,7 @@ class Exploit(exploits.Exploit):
]
}
target
=
exploits
.
Option
(
''
,
'Target address e.g. http://192.168.1.1'
,
validators
=
validators
.
address
)
# target address
target
=
exploits
.
Option
(
''
,
'Target address e.g. http://192.168.1.1'
,
validators
=
validators
.
url
)
# target address
port
=
exploits
.
Option
(
8080
,
'Target port'
)
# default port
filename
=
exploits
.
Option
(
'/etc/shadow'
,
'File to read'
)
# file to read
...
...
@@ -58,7 +59,7 @@ class Exploit(exploits.Exploit):
if
response
.
status_code
==
200
:
print_success
(
"Exploit success"
)
print_status
(
"File: {}"
.
format
(
self
.
filename
))
print
response
.
text
print
_info
(
response
.
text
)
else
:
print_error
(
"Exploit failed"
)
...
...
routersploit/modules/exploits/ipfire/ipfire_proxy_rce.py
View file @
d2b844c0
...
...
@@ -3,6 +3,7 @@ from routersploit import (
print_error
,
print_success
,
print_status
,
print_info
,
random_text
,
http_request
,
mute
,
...
...
@@ -53,7 +54,7 @@ class Exploit(exploits.Exploit):
if
cmd
in
[
'exit'
,
'quit'
]:
return
print
self
.
execute
(
cmd
)
print
_info
(
self
.
execute
(
cmd
)
)
@mute
def
execute
(
self
,
cmd
):
...
...
routersploit/modules/exploits/linksys/1500_2500_rce.py
View file @
d2b844c0
...
...
@@ -3,6 +3,7 @@ from routersploit import (
print_success
,
print_status
,
print_error
,
print_info
,
random_text
,
http_request
,
mute
,
...
...
@@ -53,7 +54,7 @@ class Exploit(exploits.Exploit):
if
cmd
in
[
'exit'
,
'quit'
]:
return
print
self
.
execute
(
cmd
)
print
_info
(
self
.
execute
(
cmd
)
)
def
execute
(
self
,
cmd
):
url
=
"{}:{}/apply.cgi"
.
format
(
self
.
target
,
self
.
port
)
...
...
routersploit/modules/exploits/linksys/wap54gv3_rce.py
View file @
d2b844c0
...
...
@@ -5,6 +5,7 @@ from routersploit import (
print_success
,
print_error
,
print_status
,
print_info
,
random_text
,
http_request
,
mute
,
...
...
@@ -52,7 +53,7 @@ class Exploit(exploits.Exploit):
if
cmd
in
[
'exit'
,
'quit'
]:
return
print
self
.
execute
(
cmd
)
print
_info
(
self
.
execute
(
cmd
)
)
def
execute
(
self
,
cmd
):
url
=
"{}:{}/debug.cgi"
.
format
(
self
.
target
,
self
.
port
)
...
...
routersploit/modules/exploits/movistar/adsl_router_bhs_rta_path_traversal.py
View file @
d2b844c0
...
...
@@ -2,6 +2,7 @@ from routersploit import (
exploits
,
print_success
,
print_error
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -42,7 +43,7 @@ class Exploit(exploits.Exploit):
if
response
.
status_code
==
200
and
len
(
response
.
text
):
print_success
(
"Success! File:
%
s"
%
self
.
filename
)
print
response
.
text
print
_info
(
response
.
text
)
else
:
print_error
(
"Exploit failed"
)
else
:
...
...
routersploit/modules/exploits/multi/heartbleed.py
View file @
d2b844c0
...
...
@@ -8,6 +8,7 @@ from routersploit import (
print_status
,
print_error
,
print_success
,
print_info
,
mute
,
)
...
...
@@ -69,7 +70,7 @@ class Exploit(exploits.Exploit):
lin
=
[
c
for
c
in
s
[
b
:
b
+
16
]]
hxdat
=
' '
.
join
(
'
%02
X'
%
ord
(
c
)
for
c
in
lin
)
pdat
=
''
.
join
((
c
if
32
<=
ord
(
c
)
<=
126
else
'.'
)
for
c
in
lin
)
print
'
%04
x:
%-48
s
%
s'
%
(
b
,
hxdat
,
pdat
)
print
_info
(
'
%04
x:
%-48
s
%
s'
%
(
b
,
hxdat
,
pdat
)
)
print
def
recvall
(
self
,
s
,
length
,
timeout
=
5
):
...
...
routersploit/modules/exploits/multi/tcp_32764_rce.py
View file @
d2b844c0
...
...
@@ -6,6 +6,7 @@ from routersploit import (
print_status
,
print_error
,
print_success
,
print_info
,
random_text
,
mute
,
)
...
...
@@ -76,7 +77,7 @@ class Exploit(exploits.Exploit):
s
.
close
()
return
print
self
.
execute
(
s
,
7
,
cmd
.
strip
(
"
\n
"
))
print
_info
(
self
.
execute
(
s
,
7
,
cmd
.
strip
(
"
\n
"
)
))
def
execute
(
self
,
s
,
message
,
payload
=
""
):
header
=
struct
.
pack
(
self
.
endianness
+
'III'
,
0x53634D4D
,
message
,
len
(
payload
)
+
1
)
...
...
routersploit/modules/exploits/netgear/jnr1010_path_traversal.py
View file @
d2b844c0
...
...
@@ -2,6 +2,7 @@ from routersploit import (
exploits
,
print_success
,
print_error
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -46,7 +47,7 @@ class Exploit(exploits.Exploit):
if
response
.
status_code
==
200
and
len
(
response
.
text
):
print_success
(
"Success! File:
%
s"
%
self
.
filename
)
print
response
.
text
print
_info
(
response
.
text
)
else
:
print_error
(
"Exploit failed"
)
else
:
...
...
routersploit/modules/exploits/netgear/n300_auth_bypass.py
View file @
d2b844c0
...
...
@@ -2,6 +2,7 @@ from routersploit import (
exploits
,
print_success
,
print_error
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -44,7 +45,7 @@ class Exploit(exploits.Exploit):
if
self
.
check
():
print_success
(
"Target is vulnerable"
)
url
=
"{}:{}"
.
format
(
self
.
target
,
self
.
port
)
print
"Visit: {}/
\n
"
.
format
(
url
)
print
_info
(
"Visit: {}/
\n
"
.
format
(
url
)
)
else
:
print_error
(
"Target seems to be not vulnerable"
)
...
...
routersploit/modules/exploits/netgear/prosafe_rce.py
View file @
d2b844c0
...
...
@@ -5,6 +5,7 @@ from routersploit import (
print_success
,
print_status
,
print_error
,
print_info
,
random_text
,
http_request
,
mute
,
...
...
@@ -54,7 +55,7 @@ class Exploit(exploits.Exploit):
if
cmd
in
[
'exit'
,
'quit'
]:
return
print
self
.
execute
(
cmd
)
print
_info
(
self
.
execute
(
cmd
)
)
def
execute
(
self
,
cmd
):
mark
=
random_text
(
32
)
...
...
routersploit/modules/exploits/netgear/wnr500_612v3_jnr1010_2010_path_traversal.py
View file @
d2b844c0
...
...
@@ -2,6 +2,7 @@ from routersploit import (
exploits
,
print_success
,
print_error
,
print_info
,
http_request
,
mute
,
validators
,
...
...
@@ -49,7 +50,7 @@ class Exploit(exploits.Exploit):
if
response
.
status_code
==
200
and
len
(
response
.
text
):
print_success
(
"Success! File:
%
s"
%
self
.
filename
)
print
response
.
text
print
_info
(
response
.
text
)
else
:
print_error
(
"Exploit failed"
)
else
:
...
...
routersploit/modules/scanners/dlink_scan.py
View file @
d2b844c0
...
...
@@ -7,6 +7,7 @@ from routersploit import (
print_success
,
print_error
,
print_status
,
print_info
)
...
...
@@ -62,7 +63,7 @@ class Exploit(exploits.Exploit):
if
len
(
vulns
):
print_success
(
"Device is vulnerable!"
)
for
v
in
vulns
:
print
" - {}"
.
format
(
v
)
print
_info
(
" - {}"
.
format
(
v
)
)
else
:
print_error
(
"Device is not vulnerable to any exploits!"
)
print
...
...
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