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
3550ce17
Commit
3550ce17
authored
Jul 28, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added binwalk IDA plugin
parent
dc7c28c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
+29
-1
general.py
src/binwalk/modules/general.py
+3
-1
binida.py
src/scripts/binida.py
+26
-0
No files found.
src/binwalk/modules/general.py
View file @
3550ce17
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
import
os
import
os
import
sys
import
sys
import
argparse
import
argparse
import
binwalk.core.idb
import
binwalk.core.filter
import
binwalk.core.filter
import
binwalk.core.common
import
binwalk.core.common
import
binwalk.core.display
import
binwalk.core.display
...
@@ -130,7 +131,8 @@ class General(Module):
...
@@ -130,7 +131,8 @@ class General(Module):
if
self
.
show_help
:
if
self
.
show_help
:
show_help
()
show_help
()
sys
.
exit
(
0
)
if
not
binwalk
.
core
.
idb
.
LOADED_IN_IDA
:
sys
.
exit
(
0
)
def
reset
(
self
):
def
reset
(
self
):
for
fp
in
self
.
target_files
:
for
fp
in
self
.
target_files
:
...
...
src/scripts/binida.py
0 → 100755
View file @
3550ce17
import
idc
import
idaapi
import
binwalk
class
binwalk_t
(
idaapi
.
plugin_t
):
flags
=
0
comment
=
"Binwalk IDA Plugin"
help
=
""
wanted_name
=
"Binwalk IDA Plugin"
wanted_hotkey
=
""
def
init
(
self
):
self
.
binwalk
=
binwalk
.
Modules
(
idc
.
GetIdbPath
(),
signature
=
True
)
self
.
menu_context
=
idaapi
.
add_menu_item
(
"Search/"
,
"binwalk scan"
,
"Alt-9"
,
0
,
self
.
run
,
(
None
,))
return
idaapi
.
PLUGIN_KEEP
def
term
(
self
):
idaapi
.
del_menu_item
(
self
.
menu_context
)
return
None
def
run
(
self
,
arg
):
self
.
binwalk
.
execute
()
def
PLUGIN_ENTRY
():
return
binwalk_t
()
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