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
6e00b561
Commit
6e00b561
authored
Mar 13, 2017
by
Craig Heffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added record type outputs for intel hex and motorola s-record signatures
parent
b54c893a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
magic.py
src/binwalk/core/magic.py
+1
-1
firmware
src/binwalk/magic/firmware
+20
-2
No files found.
src/binwalk/core/magic.py
View file @
6e00b561
...
...
@@ -210,7 +210,7 @@ class SignatureLine(object):
elif
self
.
type
==
'quad'
:
self
.
fmt
=
'q'
self
.
size
=
8
# Assume 4 byte length for all other data types
# Assume 4 byte length for all other
supported
data types
elif
self
.
type
in
[
'long'
,
'date'
]:
self
.
fmt
=
'i'
self
.
size
=
4
...
...
src/binwalk/magic/firmware
View file @
6e00b561
...
...
@@ -261,7 +261,17 @@
#
# Motorola S-Records, from Gerd Truschinski <gt@freebsd.first.gmd.de>
# Improved by Martin Sundhaug <martinsundhaug@gmail.com>
0 regex (S[0-35-9]([0-9A-F]{4})([0-9A-F]{2})+\n)+ Motorola S-Record; binary data in text format
0 regex (S[0-35-9]([0-9A-F]{4})([0-9A-F]{2})+\n)+ Motorola S-Record{many}; binary data in text format, record type:
>1 string 0 header
>1 string 1 data (16-bit)
>1 string 2 data (24-bit)
>1 string 3 data (32-bit)
>1 string 4 reserved
>1 string 5 count (16-bit)
>1 string 6 count (24-bit)
>1 string 7 start address (32-bit)
>1 string 8 start address (24-bit)
>1 string 9 start address (16-bit)
#Windows CE Binary Image Data Format aka B000FF
#More information on the format:
...
...
@@ -756,4 +766,12 @@
# Intel HEX
0 regex (\:([0-9A-F]{2}){5,}\n)+ Intel HEX
0 regex (\:([0-9A-F]{2}){5,}\n)+ Intel HEX data{many}, record type:
>7 string 00 data
>7 string 01 end of file
>7 string 02 extended segment address
>7 string 03 start segment address
>7 string 04 extended linear address
>7 string 05 start linear address
>7 ubeshort >0x3035 unknown {invalid}
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