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
5b7bfef5
Commit
5b7bfef5
authored
Jan 10, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed extraction bug and additional bugs in cpio plugin
parent
a73eed4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
extractor.py
src/binwalk/modules/extractor.py
+2
-2
cpio.py
src/binwalk/plugins/cpio.py
+5
-4
No files found.
src/binwalk/modules/extractor.py
View file @
5b7bfef5
...
...
@@ -106,8 +106,8 @@ class Extractor(Module):
else
:
size
=
r
.
size
# Only extract valid results
if
r
.
valid
:
# Only extract valid results
marked for extraction
if
r
.
valid
and
r
.
extract
:
# Do the extraction
(
extraction_directory
,
dd_file
)
=
self
.
extract
(
r
.
offset
,
r
.
description
,
r
.
file
.
name
,
size
,
r
.
name
)
...
...
src/binwalk/plugins/cpio.py
View file @
5b7bfef5
...
...
@@ -24,7 +24,8 @@ class CPIOPlugin(binwalk.core.plugin.Plugin):
elif
'TRAILER!!!'
in
result
.
description
:
# This is the last entry, un-set found_archive.
self
.
found_archive
=
False
# The first entry has already been found and this is the last entry, or the last entry
# has not yet been found. Don't extract.
result
.
extract
=
False
result
.
extract
=
False
else
:
# The first entry has already been found and this is not the last entry, or the last entry
# has not yet been found. Don't extract.
result
.
extract
=
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