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
b3cff800
Commit
b3cff800
authored
Jan 22, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'binwalk-2.0' of
https://github.com/devttys0/binwalk
into binwalk-2.0
parents
98bd3b0e
eb5a1c7b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
smart.py
src/binwalk/core/smart.py
+5
-5
binwalk
src/binwalk/magic/binwalk
+9
-0
filesystems
src/magic/filesystems
+9
-0
No files found.
src/binwalk/core/smart.py
View file @
b3cff800
...
@@ -226,11 +226,11 @@ class Signature(object):
...
@@ -226,11 +226,11 @@ class Signature(object):
Returns the modified string result data.
Returns the modified string result data.
'''
'''
while
tag
.
keyword
in
data
:
while
tag
.
tag
in
self
.
safe_string
(
data
)
:
(
data
,
arg
)
=
self
.
get_keyword_arg
(
data
,
tag
.
name
)
(
data
,
arg
)
=
self
.
get_keyword_arg
(
data
,
tag
)
v
=
'
%
s
%
s
%
s'
%
(
tag
.
keyword
,
arg
,
self
.
TAG_DELIM_END
)
v
=
'
%
s
%
s
%
s'
%
(
tag
.
tag
,
arg
,
tag
.
TAG_DELIM_END
)
math_value
=
"
%
d"
%
self
.
get_math_arg
(
data
,
tag
.
name
)
(
data
,
math_value
)
=
self
.
get_math_arg
(
data
,
tag
)
data
=
data
.
replace
(
v
,
math_value
)
data
=
data
.
replace
(
v
,
"
%
d"
%
math_value
)
return
(
data
,
None
)
return
(
data
,
None
)
...
...
src/binwalk/magic/binwalk
View file @
b3cff800
...
@@ -1674,6 +1674,15 @@
...
@@ -1674,6 +1674,15 @@
>980 byte !0
>980 byte !0
>>980 string x \b, last mounted on: "%s"
>>980 string x \b, last mounted on: "%s"
# Simple file system found in Foscam camera firmware
0 beshort 0xbd9a Foscam WebUI filesystem,
>2 leshort x checksum: 0x%X,
>16 lelong <1 invalid first file name length,
>20 byte 0 invalid first file name,
>20 byte x first file name: {raw-replace}
>16 lelong x {raw-string-length:%d}
>20 string x {raw-string:%s}
#--------------------------Firmware Formats---------------------------
#--------------------------Firmware Formats---------------------------
...
...
src/magic/filesystems
View file @
b3cff800
...
@@ -569,3 +569,12 @@
...
@@ -569,3 +569,12 @@
>980 byte !0
>980 byte !0
>>980 string x \b, last mounted on: "%s"
>>980 string x \b, last mounted on: "%s"
# Simple file system found in Foscam camera firmware
0 beshort 0xbd9a Foscam WebUI filesystem,
>2 leshort x checksum: 0x%X,
>16 lelong <1 invalid first file name length,
>20 byte 0 invalid first file name,
>20 byte x first file name: {raw-replace}
>16 lelong x {raw-string-length:%d}
>20 string x {raw-string:%s}
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