-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathidangr_plugin.py
37 lines (27 loc) · 1.1 KB
/
idangr_plugin.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
######################################################
# Author: Andrea Fioraldi <[email protected]> #
# License: BSD 2-Clause #
######################################################
class IDAngrPlugin(idaapi.plugin_t):
flags = idaapi.PLUGIN_KEEP
comment = ""
help = "IDAngr plugin: Use angr in the IDA Pro debugger generating a state from the current debug session"
wanted_name = "IDAngr"
wanted_hotkey = "Ctrl-Alt-I"
def init(self):
idaapi.msg("\n########### IDAngr plugin ###########\n")
r = idaapi.attach_action_to_menu('View/Open subviews/', 'IDAngr Panel', idaapi.SETMENU_APP)
if r is None:
idaapi.msg("IDAngr plugin: add menu failed!\n")
idaapi.msg("IDAngr plugin: shortcut key is Ctrl-Alt-I\n\n")
return idaapi.PLUGIN_KEEP
def run(self, arg):
self.openPanel()
def term(self):
idaapi.msg("IDAngr plugin: terminated\n")
def openPanel(self):
import idangr
import idangr.gui
idangr.gui.show()
def PLUGIN_ENTRY():
return IDAngrPlugin()