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
2dd280df
Commit
2dd280df
authored
7 years ago
by
0BuRner
Committed by
Mariusz Kupidura
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rom-0 exploit : fix password extraction bug (#312)
* rom-0 exploit : fix password extraction bug * Update rom0.py
parent
91310b33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
rom0.py
routersploit/modules/exploits/routers/multi/rom0.py
+2
-8
No files found.
routersploit/modules/exploits/routers/multi/rom0.py
View file @
2dd280df
import
io
import
re
import
sys
from
routersploit
import
(
exploits
,
...
...
@@ -75,16 +76,9 @@ class Exploit(exploits.Exploit):
@staticmethod
def
extract_password
(
fhandle
):
fpos
=
8568
fend
=
8788
chunk
=
"*"
amount
=
221
fhandle
.
seek
(
fpos
)
while
fpos
<
fend
:
if
fend
-
fpos
<
amount
:
amount
=
fend
-
fpos
chunk
=
fhandle
.
read
(
amount
)
fpos
+=
len
(
chunk
)
chunk
=
fhandle
.
read
(
sys
.
getsizeof
(
fhandle
))
# Decompress chunk
result
,
window
=
lzs
.
LZSDecompress
(
chunk
)
...
...
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