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
fd55d7f7
Commit
fd55d7f7
authored
Oct 22, 2018
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for an {end} signature tag
parent
5b359c62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
magic.py
src/binwalk/core/magic.py
+1
-0
efi
src/binwalk/magic/efi
+1
-2
signature.py
src/binwalk/modules/signature.py
+4
-2
No files found.
src/binwalk/core/magic.py
View file @
fd55d7f7
...
...
@@ -30,6 +30,7 @@ class SignatureResult(binwalk.core.module.Result):
self
.
invalid
=
False
self
.
once
=
False
self
.
overlap
=
False
self
.
end
=
False
# These are set by code internally
self
.
id
=
0
...
...
src/binwalk/magic/efi
View file @
fd55d7f7
# http://blogs.phoenix.com/phoenix_technologies_bios/\
# 2007/02/uefi_pi_10_firm.html
# http://blogs.phoenix.com/phoenix_technologies_bios/2007/02/uefi_pi_10_firm.html
40 string _FVH UEFI PI Firmware Volume
>32 ulequad >0xFFFFFFFF {invalid} unrealistic size
...
...
src/binwalk/modules/signature.py
View file @
fd55d7f7
...
...
@@ -167,13 +167,15 @@ class Signature(Module):
# validation
self
.
result
(
r
=
r
)
# If a sigure specified the end tag, jump to the end of the file
if
r
.
end
==
True
:
r
.
jump
=
fp
.
size
# Is this a valid result and did it specify a jump-to-offset
# keyword, and are we doing a "smart" scan?
if
r
.
valid
and
r
.
jump
>
0
and
not
self
.
dumb_scan
:
absolute_jump_offset
=
r
.
offset
+
r
.
jump
current_block_offset
=
relative_offset
+
r
.
jump
# print ("Jumping to: 0x%X (0x%X)..." %
# (absolute_jump_offset, current_block_offset))
# If the jump-to-offset is beyond the confines of the current block, seek the file to
# that offset and quit processing this block of data.
...
...
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