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
3c87c3b7
Commit
3c87c3b7
authored
Nov 08, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed gzip signature tags
parent
f7f36692
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
compressed
src/binwalk/magic/compressed
+12
-13
extractor.py
src/binwalk/modules/extractor.py
+3
-2
No files found.
src/binwalk/magic/compressed
View file @
3c87c3b7
...
...
@@ -91,23 +91,22 @@
# * Produce shorter output - notably, only report compression methods
# other than 8 ("deflate", the only method defined in RFC 1952).
#0 string \037\213\x08 gzip compressed data
0 string \x1f\x8b\x08 gzip compressed data
0 string
\x1f\x8b\x08 gzip compressed data
>3 byte &0x01 \b, ASCII
>3 byte&0xE0
!0x00 \b, {invalid}
reserved flag bits
>8 byte
2
\b, maximum compression
>8 byte
4
\b, fastest compression
>8 byte
1 \b, {invalid}
extra flags
>8 byte
3 \b, {invalid}
extra flags
>8 byte
>4 \b, {invalid}
extra flags
>3 byte&0xE0
!0x00 \b, {invalid}invalid
reserved flag bits
>8 byte
2
\b, maximum compression
>8 byte
4
\b, fastest compression
>8 byte
1 \b, {invalid}invalid
extra flags
>8 byte
3 \b, {invalid}invalid
extra flags
>8 byte
>4 \b, {invalid}invalid
extra flags
>3 byte &0x02 \b, has header CRC
>3 byte&0x04 0x04
>>10 leshort x \b, has %d bytes of extra data
>3 byte&0xC =0x08 \b, has original file name
>>10 string x \b{file-name:%s}
>>10 string x \b: "%s"
>>10 leshort x \b, has %d bytes of extra data
>3 byte&0xC =0x08 \b, has original file name
>>10 string x \b: "%s"{name:%s}
>3 byte &0x10 \b, has comment
>>3 byte&0xC 0
>>>10 string
x
\b: "%s"
>>3 byte&0xC
0
>>>10 string
x
\b: "%s"
>9 byte =0x00 \b, from FAT filesystem (MS-DOS, OS/2, NT)
>9 byte =0x01 \b, from Amiga
>9 byte =0x02 \b, from VMS
...
...
src/binwalk/modules/extractor.py
View file @
3c87c3b7
...
...
@@ -125,8 +125,7 @@ class Extractor(Module):
# Note that r.display is still True even if --quiet has been specified; it is False if the result has been
# explicitly excluded via the -y/-x options.
if
r
.
valid
and
r
.
extract
and
r
.
display
:
# Do the extraction
binwalk
.
core
.
common
.
debug
(
"Attempting extraction..."
)
# Attempt extraction
(
extraction_directory
,
dd_file
)
=
self
.
extract
(
r
.
offset
,
r
.
description
,
r
.
file
.
name
,
size
,
r
.
name
)
# If the extraction was successful, self.extract will have returned the output directory and name of the dd'd file
...
...
@@ -354,6 +353,8 @@ class Extractor(Module):
# No extraction rules for this file
if
not
rules
:
return
(
None
,
None
)
else
:
binwalk
.
core
.
common
.
debug
(
"Found
%
d matching extraction rules"
%
len
(
rules
))
output_directory
=
self
.
build_output_directory
(
file_name
)
...
...
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