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
33860a19
Commit
33860a19
authored
Nov 11, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor documentation changes; updated example scripts; improved binida.py IDA plugin.
parent
65b0739b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
INSTALL.md
INSTALL.md
+1
-1
README.md
README.md
+0
-1
binida.py
src/scripts/binida.py
+11
-4
binwalk_simple.py
src/scripts/examples/binwalk_simple.py
+1
-1
signature_scan.py
src/scripts/examples/signature_scan.py
+1
-1
No files found.
INSTALL.md
View file @
33860a19
...
@@ -87,4 +87,4 @@ $ sudo python setup.py uninstall
...
@@ -87,4 +87,4 @@ $ sudo python setup.py uninstall
$
sudo
python3 setup.py uninstall
$
sudo
python3 setup.py uninstall
```
```
Note that this does _not_ remove any of the installed dependencies.
Note that this does _not_ remove any of the
manually
installed dependencies.
README.md
View file @
33860a19
...
@@ -20,7 +20,6 @@ $ sudo apt-get install python-lzma
...
@@ -20,7 +20,6 @@ $ sudo apt-get install python-lzma
For instructions on installing optional dependencies, see
[
INSTALL.md
](
https://github.com/devttys0/binwalk/blob/master/INSTALL.md
)
.
For instructions on installing optional dependencies, see
[
INSTALL.md
](
https://github.com/devttys0/binwalk/blob/master/INSTALL.md
)
.
For advanced installation options, see
[
INSTALL.md
](
https://github.com/devttys0/binwalk/blob/master/INSTALL.md
)
.
Usage
Usage
=====
=====
...
...
src/scripts/binida.py
View file @
33860a19
...
@@ -10,16 +10,23 @@ class binwalk_t(idaapi.plugin_t):
...
@@ -10,16 +10,23 @@ class binwalk_t(idaapi.plugin_t):
wanted_hotkey
=
""
wanted_hotkey
=
""
def
init
(
self
):
def
init
(
self
):
self
.
binwalk
=
binwalk
.
Modules
(
idc
.
GetIdbPath
(),
signature
=
True
)
self
.
menu_context_1
=
idaapi
.
add_menu_item
(
"Search/"
,
"executable opcodes"
,
""
,
0
,
self
.
opcode_scan
,
(
None
,)
)
self
.
menu_context
=
idaapi
.
add_menu_item
(
"Search/"
,
"binwalk scan"
,
"Alt-9"
,
0
,
self
.
ru
n
,
(
None
,))
self
.
menu_context
_2
=
idaapi
.
add_menu_item
(
"Search/"
,
"file signatures"
,
""
,
0
,
self
.
signature_sca
n
,
(
None
,))
return
idaapi
.
PLUGIN_KEEP
return
idaapi
.
PLUGIN_KEEP
def
term
(
self
):
def
term
(
self
):
idaapi
.
del_menu_item
(
self
.
menu_context
)
idaapi
.
del_menu_item
(
self
.
menu_context_1
)
idaapi
.
del_menu_item
(
self
.
menu_context_2
)
return
None
return
None
def
run
(
self
,
arg
):
def
run
(
self
,
arg
):
self
.
binwalk
.
execute
()
return
None
def
signature_scan
(
self
,
arg
):
binwalk
.
scan
(
idc
.
GetIdbPath
(),
signature
=
True
)
def
opcode_scan
(
self
,
arg
):
binwalk
.
scan
(
idc
.
GetIdbPath
(),
opcode
=
True
)
def
PLUGIN_ENTRY
():
def
PLUGIN_ENTRY
():
return
binwalk_t
()
return
binwalk_t
()
...
...
src/scripts/examples/binwalk_simple.py
View file @
33860a19
...
@@ -4,4 +4,4 @@ import binwalk
...
@@ -4,4 +4,4 @@ import binwalk
# Since no options are specified, they are by default taken from sys.argv.
# Since no options are specified, they are by default taken from sys.argv.
# Effecitvely, this duplicates the functionality of the normal binwalk script.
# Effecitvely, this duplicates the functionality of the normal binwalk script.
binwalk
.
execute
()
binwalk
.
scan
()
src/scripts/examples/signature_scan.py
View file @
33860a19
...
@@ -5,7 +5,7 @@ import binwalk
...
@@ -5,7 +5,7 @@ import binwalk
try
:
try
:
# Perform a signature scan against the files specified on the command line and suppress the usual binwalk output.
# Perform a signature scan against the files specified on the command line and suppress the usual binwalk output.
for
module
in
binwalk
.
execute
(
*
sys
.
argv
[
1
:],
signature
=
True
,
quiet
=
True
):
for
module
in
binwalk
.
scan
(
*
sys
.
argv
[
1
:],
signature
=
True
,
quiet
=
True
):
print
(
"
%
s Results:"
%
module
.
name
)
print
(
"
%
s Results:"
%
module
.
name
)
for
result
in
module
.
results
:
for
result
in
module
.
results
:
print
(
"
\t
%
s 0x
%.8
X
%
s"
%
(
result
.
file
.
name
,
result
.
offset
,
result
.
description
))
print
(
"
\t
%
s 0x
%.8
X
%
s"
%
(
result
.
file
.
name
,
result
.
offset
,
result
.
description
))
...
...
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