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-depend
binwalk
Commits
e289cf73
Commit
e289cf73
authored
Mar 06, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed int conversion bug; added missing file-size keyword to big endian squashfs signature.
parent
ecdb93cb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
module.py
src/binwalk/core/module.py
+4
-0
binwalk
src/binwalk/magic/binwalk
+6
-6
filesystems
src/magic/filesystems
+6
-6
No files found.
src/binwalk/core/module.py
View file @
e289cf73
...
@@ -47,6 +47,10 @@ class Option(object):
...
@@ -47,6 +47,10 @@ class Option(object):
def
convert
(
self
,
value
):
def
convert
(
self
,
value
):
if
self
.
type
and
(
self
.
type
.
__name__
==
self
.
dtype
):
if
self
.
type
and
(
self
.
type
.
__name__
==
self
.
dtype
):
# Be sure to specify a base of 0 for int() so that the base is auto-detected
if
self
.
type
==
int
:
return
self
.
type
(
value
,
0
)
else
:
return
self
.
type
(
value
)
return
self
.
type
(
value
)
else
:
else
:
return
value
return
value
...
...
src/binwalk/magic/binwalk
View file @
e289cf73
...
@@ -1263,10 +1263,16 @@
...
@@ -1263,10 +1263,16 @@
>>20 beshort >4 \binvalid,
>>20 beshort >4 \binvalid,
>28 beshort <3
>28 beshort <3
>>8 belong x size: %d bytes,
>>8 belong x size: %d bytes,
>>8 belong x \b{jump-to-offset:%d}
>>8 belong x \b{file-size:%d}
>28 beshort 3
>28 beshort 3
>>63 bequad x size: %lld bytes,
>>63 bequad x size: %lld bytes,
>>63 bequad x \b{jump-to-offset:%lld}
>>63 bequad x \b{file-size:%lld}
>28 beshort >3
>28 beshort >3
>>40 bequad x size: %lld bytes,
>>40 bequad x size: %lld bytes,
>>40 bequad x \b{jump-to-offset:%lld}
>>40 bequad x \b{file-size:%lld}
>4 belong x %d inodes,
>4 belong x %d inodes,
>28 beshort >3
>28 beshort >3
>>12 belong blocksize: %d bytes,
>>12 belong blocksize: %d bytes,
...
@@ -1282,12 +1288,6 @@
...
@@ -1282,12 +1288,6 @@
>>39 bedate x created: %s
>>39 bedate x created: %s
>28 beshort >3
>28 beshort >3
>>8 bedate x created: %s
>>8 bedate x created: %s
>28 beshort <3
>>8 belong x {jump-to-offset:%d}
>28 beshort 3
>>63 bequad x {jump-to-offset:%lld}
>28 beshort >3
>>40 bequad x {jump-to-offset:%lld}
# Squashfs, little endian
# Squashfs, little endian
0 string hsqs Squashfs filesystem, little endian,
0 string hsqs Squashfs filesystem, little endian,
...
...
src/magic/filesystems
View file @
e289cf73
...
@@ -156,10 +156,16 @@
...
@@ -156,10 +156,16 @@
>>20 beshort >4 \binvalid,
>>20 beshort >4 \binvalid,
>28 beshort <3
>28 beshort <3
>>8 belong x size: %d bytes,
>>8 belong x size: %d bytes,
>>8 belong x \b{jump-to-offset:%d}
>>8 belong x \b{file-size:%d}
>28 beshort 3
>28 beshort 3
>>63 bequad x size: %lld bytes,
>>63 bequad x size: %lld bytes,
>>63 bequad x \b{jump-to-offset:%lld}
>>63 bequad x \b{file-size:%lld}
>28 beshort >3
>28 beshort >3
>>40 bequad x size: %lld bytes,
>>40 bequad x size: %lld bytes,
>>40 bequad x \b{jump-to-offset:%lld}
>>40 bequad x \b{file-size:%lld}
>4 belong x %d inodes,
>4 belong x %d inodes,
>28 beshort >3
>28 beshort >3
>>12 belong blocksize: %d bytes,
>>12 belong blocksize: %d bytes,
...
@@ -175,12 +181,6 @@
...
@@ -175,12 +181,6 @@
>>39 bedate x created: %s
>>39 bedate x created: %s
>28 beshort >3
>28 beshort >3
>>8 bedate x created: %s
>>8 bedate x created: %s
>28 beshort <3
>>8 belong x {jump-to-offset:%d}
>28 beshort 3
>>63 bequad x {jump-to-offset:%lld}
>28 beshort >3
>>40 bequad x {jump-to-offset:%lld}
# Squashfs, little endian
# Squashfs, little endian
0 string hsqs Squashfs filesystem, little endian,
0 string hsqs Squashfs filesystem, little endian,
...
...
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