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
b994dc4c
Commit
b994dc4c
authored
8 years ago
by
dincaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E302 and E226 fix.
parent
9efdfbb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dcs_930l_932l_auth_bypass.py
...ploit/modules/exploits/dlink/dcs_930l_932l_auth_bypass.py
+5
-4
No files found.
routersploit/modules/exploits/dlink/dcs_930l_932l_auth_bypass.py
View file @
b994dc4c
...
@@ -9,6 +9,7 @@ from routersploit import (
...
@@ -9,6 +9,7 @@ from routersploit import (
validators
validators
)
)
class
Exploit
(
exploits
.
Exploit
):
class
Exploit
(
exploits
.
Exploit
):
"""
"""
D-Link DCS web cameras allow unauthenticated attackers to obtain the
D-Link DCS web cameras allow unauthenticated attackers to obtain the
...
@@ -53,7 +54,7 @@ class Exploit(exploits.Exploit):
...
@@ -53,7 +54,7 @@ class Exploit(exploits.Exploit):
],
t
)
for
t
in
config
]
],
t
)
for
t
in
config
]
arr_c_len
=
len
(
arr_c
)
arr_c_len
=
len
(
arr_c
)
tmp
=
((
arr_c
[
arr_c_len
-
1
]
&
7
)
<<
5
)
&
0xff
tmp
=
((
arr_c
[
arr_c_len
-
1
]
&
7
)
<<
5
)
&
0xff
for
t
in
reversed
(
xrange
(
arr_c_len
)):
for
t
in
reversed
(
xrange
(
arr_c_len
)):
...
@@ -63,7 +64,7 @@ class Exploit(exploits.Exploit):
...
@@ -63,7 +64,7 @@ class Exploit(exploits.Exploit):
lambda
d
:
(
d
+
tmp
)
&
0xff
lambda
d
:
(
d
+
tmp
)
&
0xff
],
arr_c
[
t
])
],
arr_c
[
t
])
else
:
else
:
ct
=
(((
arr_c
[
t
]
>>
3
)
&
0xff
)
+
(((
arr_c
[
t
-
1
]
&
0x7
)
<<
5
)
&
0xff
))
&
0xff
ct
=
(((
arr_c
[
t
]
>>
3
)
&
0xff
)
+
(((
arr_c
[
t
-
1
]
&
0x7
)
<<
5
)
&
0xff
))
&
0xff
arr_c
[
t
]
=
ct
arr_c
[
t
]
=
ct
...
@@ -74,8 +75,8 @@ class Exploit(exploits.Exploit):
...
@@ -74,8 +75,8 @@ class Exploit(exploits.Exploit):
print_error
(
"Config file can't be deobfuscated."
)
print_error
(
"Config file can't be deobfuscated."
)
return
None
return
None
for
i
in
xrange
(
len
(
tmp_str
)
/
2
):
for
i
in
xrange
(
len
(
tmp_str
)
/
2
):
ret_str
+=
tmp_str
[
i
+
(
len
(
tmp_str
)
/
2
)]
+
tmp_str
[
i
]
ret_str
+=
tmp_str
[
i
+
(
len
(
tmp_str
)
/
2
)]
+
tmp_str
[
i
]
return
ret_str
return
ret_str
...
...
This diff is collapsed.
Click to expand it.
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