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
2c50877d
Commit
2c50877d
authored
Nov 20, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed EXT signature bugs
parent
47676647
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
33 deletions
+28
-33
magic.py
src/binwalk/core/magic.py
+1
-1
filesystems
src/binwalk/magic/filesystems
+26
-26
__init__.py
src/binwalk/modules/__init__.py
+1
-6
No files found.
src/binwalk/core/magic.py
View file @
2c50877d
...
...
@@ -612,7 +612,7 @@ class Magic(object):
except
KeyboardInterrupt
as
e
:
raise
e
except
Exception
as
e
:
raise
ParserException
(
"Failed to apply operator "
+
line
.
operator
+
" to "
+
dvalue
+
": "
+
str
(
e
))
raise
ParserException
(
"Failed to apply operator "
+
line
.
operator
+
" to "
+
str
(
dvalue
)
+
": "
+
str
(
e
))
# Does the data (dvalue) match the specified comparison?
if
((
line
.
value
is
None
)
or
...
...
src/binwalk/magic/filesystems
View file @
2c50877d
...
...
@@ -77,7 +77,7 @@
>4 lelong <0 {invalid}
>4 lelong >1073741824 {invalid}
>4 ulelong x size: %u
>8 lelong &1 version
#
2
>8 lelong &1 version 2
>8 lelong &2 sorted_dirs
>8 lelong &4 hole_support
>32 lelong x CRC 0x%x,
...
...
@@ -516,37 +516,37 @@
# ext4 filesystem - Eric Sandeen <sandeen@sandeen.net>
# volume label and UUID Russell Coker
# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
0x438
leshort
0xEF53 Linux EXT filesystem,
>
2
leshort >4 {invalid}invalid state
>
2
leshort 3 {invalid}invalid state
>
2
leshort <0 {invalid}invalid state
>
4
leshort >3 {invalid}invalid error behavior
>
4
leshort <0 {invalid}invalid error behavior
>
4
lelong >1 {invalid}invalid major revision
>
4
lelong <0 {invalid}invalid major revision
>
4
lelong x rev %d
>
6 leshort x \b.%d
0x438
uleshort
0xEF53 Linux EXT filesystem,
>
0x43A
leshort >4 {invalid}invalid state
>
0x43A
leshort 3 {invalid}invalid state
>
0x43A
leshort <0 {invalid}invalid state
>
0x43C
leshort >3 {invalid}invalid error behavior
>
0x43C
leshort <0 {invalid}invalid error behavior
>
0x43C
lelong >1 {invalid}invalid major revision
>
0x43C
lelong <0 {invalid}invalid major revision
>
0x43C
lelong x rev %d
>
0x43E leshort x \b.%d,
# No journal? ext2
>
36
lelong&0x04 0 ext2 filesystem data
>>
2
leshort&0x01 0 (mounted or unclean)
>
0x438+36
lelong&0x04 0 ext2 filesystem data
>>
0x43A
leshort&0x01 0 (mounted or unclean)
# Has a journal? ext3 or ext4
>
36
lelong &0x0000004
>
0x438+36
lelong &0x0000004
# and small INCOMPAT?
>>
40
lelong <0x0000040
>>
0x438+40
lelong <0x0000040
# and small RO_COMPAT?
>>>
44
lelong <0x0000008 ext3 filesystem data
>>>
0x438+44
lelong <0x0000008 ext3 filesystem data
# else large RO_COMPAT?
>>>
44
lelong >0x0000007 ext4 filesystem data
>>>
0x438+44
lelong >0x0000007 ext4 filesystem data
# else large INCOMPAT?
>>
40
lelong >0x000003f ext4 filesystem data
>
48 belong
x \b, UUID=%08x
>
52 beshort
x \b-%04x
>
54 beshort
x \b-%04x
>
56 beshort
x \b-%04x
>
58 belong
x \b-%08x
>
60 beshort
x \b%04x
>
64
byte !0
>>
64
string x \b, volume name "%s"
>>
0x438+40
lelong >0x000003f ext4 filesystem data
>
0x438+48 ubelong
x \b, UUID=%08x
>
0x438+52 ubeshort
x \b-%04x
>
0x438+54 ubeshort
x \b-%04x
>
0x438+56 ubeshort
x \b-%04x
>
0x438+58 ubelong
x \b-%08x
>
0x438+60 ubeshort
x \b%04x
>
0x438+64
byte !0
>>
0x438+64
string x \b, volume name "%s"
#romfs filesystems - Juan Cespedes <cespedes@debian.org>
...
...
src/binwalk/modules/__init__.py
View file @
2c50877d
...
...
@@ -10,12 +10,7 @@ try:
except
ImportError
:
pass
# Don't load the signature module if the lzma module can't be found
try
:
from
binwalk.modules.signature
import
Signature
except
ImportError
:
pass
from
binwalk.modules.signature
import
Signature
from
binwalk.modules.hexdiff
import
HexDiff
from
binwalk.modules.general
import
General
from
binwalk.modules.extractor
import
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