Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
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
fact-gitdep
binwalk
Commits
ce7738a2
Commit
ce7738a2
authored
Oct 12, 2015
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added extra sanity check for real_file_path in extractor.py
parent
ecb639e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
extractor.py
src/binwalk/modules/extractor.py
+4
-1
No files found.
src/binwalk/modules/extractor.py
View file @
ce7738a2
...
...
@@ -190,7 +190,10 @@ class Extractor(Module):
self
.
output
[
r
.
file
.
path
]
.
extracted
[
r
.
offset
]
.
append
(
real_file_path
)
# If recursion was specified, and the file is not the same one we just dd'd
if
self
.
matryoshka
and
file_path
!=
dd_file_path
and
scan_extracted_files
:
if
(
self
.
matryoshka
and
file_path
!=
dd_file_path
and
scan_extracted_files
and
self
.
directory
in
real_file_path
):
# If the recursion level of this file is less than or equal to our desired recursion level
if
len
(
real_file_path
.
split
(
self
.
directory
)[
1
]
.
split
(
os
.
path
.
sep
))
<=
self
.
matryoshka
:
# If this is a directory and we are supposed to process directories for this extractor,
...
...
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