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
95cb8080
Commit
95cb8080
authored
Jan 27, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with -R usage.
parent
b406691b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
signature.py
src/binwalk/modules/signature.py
+2
-2
No files found.
src/binwalk/modules/signature.py
View file @
95cb8080
...
@@ -15,7 +15,7 @@ class Signature(Module):
...
@@ -15,7 +15,7 @@ class Signature(Module):
description
=
'Scan target file(s) for common file signatures'
),
description
=
'Scan target file(s) for common file signatures'
),
Option
(
short
=
'R'
,
Option
(
short
=
'R'
,
long
=
'raw-bytes'
,
long
=
'raw-bytes'
,
kwargs
=
{
'
raw_bytes'
:
None
},
kwargs
=
{
'
enabled'
:
True
,
'raw_bytes'
:
''
},
type
=
str
,
type
=
str
,
description
=
'Scan target file(s) for the specified sequence of bytes'
),
description
=
'Scan target file(s) for the specified sequence of bytes'
),
Option
(
short
=
'A'
,
Option
(
short
=
'A'
,
...
@@ -57,7 +57,7 @@ class Signature(Module):
...
@@ -57,7 +57,7 @@ class Signature(Module):
# If a raw byte sequence was specified, build a magic file from that instead of using the default magic files
# If a raw byte sequence was specified, build a magic file from that instead of using the default magic files
if
self
.
raw_bytes
is
not
None
:
if
self
.
raw_bytes
is
not
None
:
self
.
magic_files
.
append
(
self
.
parser
.
file_from_string
(
self
.
raw_bytes
))
self
.
magic_files
=
[
self
.
parser
.
file_from_string
(
self
.
raw_bytes
)]
# Append the user's magic file first so that those signatures take precedence
# Append the user's magic file first so that those signatures take precedence
if
self
.
search_for_opcodes
:
if
self
.
search_for_opcodes
:
...
...
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