Python idaapi.action_handler_t() Examples

The following are 30 code examples of idaapi.action_handler_t(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module idaapi , or try the search function .
Example #1
Source File: ida_fuzzy.py    From IDAFuzzy with MIT License 5 votes vote down vote up
def __init__(self):
        idaapi.action_handler_t.__init__(self) 
Example #2
Source File: DIE.py    From DIE with MIT License 5 votes vote down vote up
def __init__(self, outer_instance):
            idaapi.action_handler_t.__init__(self)
            self.outer_instance = outer_instance 
Example #3
Source File: DIE.py    From DIE with MIT License 5 votes vote down vote up
def __init__(self, outer_instance):
            idaapi.action_handler_t.__init__(self)
            self.outer_instance = outer_instance 
Example #4
Source File: DIE.py    From DIE with MIT License 5 votes vote down vote up
def __init__(self, outer_instance):
            idaapi.action_handler_t.__init__(self)
            self.outer_instance = outer_instance 
Example #5
Source File: DIE.py    From DIE with MIT License 5 votes vote down vote up
def __init__(self, outer_instance):
            idaapi.action_handler_t.__init__(self)
            self.outer_instance = outer_instance 
Example #6
Source File: DIE.py    From DIE with MIT License 5 votes vote down vote up
def __init__(self, outer_instance):
            idaapi.action_handler_t.__init__(self)
            self.outer_instance = outer_instance 
Example #7
Source File: ui.py    From Sark with MIT License 5 votes vote down vote up
def __init__(self):
        idaapi.action_handler_t.__init__(self) 
Example #8
Source File: highlight_calls.py    From Sark with MIT License 5 votes vote down vote up
def __init__(self, state=False):
        idaapi.action_handler_t.__init__(self)

        self._state = state 
Example #9
Source File: highlight_calls.py    From Sark with MIT License 5 votes vote down vote up
def __init__(self, set_color):
        idaapi.action_handler_t.__init__(self)
        self._set_color = set_color 
Example #10
Source File: ida_prefix.py    From prefix with MIT License 5 votes vote down vote up
def __init__(self, action_function):
        idaapi.action_handler_t.__init__(self)
        self.action_function = action_function 
Example #11
Source File: ida_integration.py    From lighthouse with MIT License 5 votes vote down vote up
def __init__(self, action_function):
        idaapi.action_handler_t.__init__(self)
        self.action_function = action_function 
Example #12
Source File: idamagnum_plugin.py    From idamagnum with MIT License 5 votes vote down vote up
def __init__(self, manager):
        idaapi.action_handler_t.__init__(self)
        self._manager = manager 
Example #13
Source File: idamagnum_plugin.py    From idamagnum with MIT License 5 votes vote down vote up
def __init__(self, manager):
        idaapi.action_handler_t.__init__(self)
        self._manager = manager 
Example #14
Source File: mkyara_plugin.py    From mkYARA with GNU General Public License v3.0 5 votes vote down vote up
def generic_handler(callback):
    class Handler(idaapi.action_handler_t):
            def __init__(self):
                idaapi.action_handler_t.__init__(self)

            def activate(self, ctx):
                callback()
                return 1

            def update(self, ctx):
                return idaapi.AST_ENABLE_ALWAYS
    return Handler() 
Example #15
Source File: DIE.py    From DIE with MIT License 5 votes vote down vote up
def __init__(self, outer_instance):
            idaapi.action_handler_t.__init__(self)
            self.outer_instance = outer_instance 
Example #16
Source File: LazyIDA.py    From LazyIDA with MIT License 5 votes vote down vote up
def __init__(self, action):
        idaapi.action_handler_t.__init__(self)
        self.action = action 
Example #17
Source File: LazyIDA.py    From LazyIDA with MIT License 5 votes vote down vote up
def __init__(self, action):
        idaapi.action_handler_t.__init__(self)
        self.action = action 
Example #18
Source File: LazyIDA.py    From LazyIDA with MIT License 5 votes vote down vote up
def __init__(self, action):
        idaapi.action_handler_t.__init__(self)
        self.action = action
        self.ret_type = {} 
Example #19
Source File: ida_batch_decompile.py    From ida-batch_decompile with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, caller):
            idaapi.action_handler_t.__init__(self)
            self.caller = caller 
Example #20
Source File: prot_explorer.py    From UEFI_RETool with MIT License 5 votes vote down vote up
def __init__(self, thing):
        idaapi.action_handler_t.__init__(self)
        self.thing = thing 
Example #21
Source File: dep_browser.py    From UEFI_RETool with MIT License 5 votes vote down vote up
def __init__(self, thing):
        idaapi.action_handler_t.__init__(self)
        self.thing = thing 
Example #22
Source File: uefi_analyser.py    From UEFI_RETool with MIT License 5 votes vote down vote up
def __init__(self, plugin):
        idaapi.action_handler_t.__init__(self)
        self.plugin = plugin 
Example #23
Source File: util.py    From WatchDBG-IDA with MIT License 5 votes vote down vote up
def __init__(self, id, callback):
        idaapi.action_handler_t.__init__(self)
        self.callback = callback
        self.id = id 
Example #24
Source File: findcrypt3.py    From findcrypt-yara with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __init__(self):
            idaapi.action_handler_t.__init__(self) 
Example #25
Source File: hrdev.py    From hrdev with MIT License 5 votes vote down vote up
def __init__(self):
        idaapi.action_handler_t.__init__(self) 
Example #26
Source File: neo4ida.py    From ida-scripts with The Unlicense 5 votes vote down vote up
def __init__(self, id, name, tooltip, menuPath, callback, icon):
        idaapi.action_handler_t.__init__(self)
        self.id = id
        self.name = name
        self.tooltip = tooltip
        self.menuPath = menuPath
        self.callback = callback
        scriptPath = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
        self.icon = idaapi.load_custom_icon(
            scriptPath + "/" + "icon" + ".png"
        ) 
Example #27
Source File: dereferencing.py    From deREferencing with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, widget_title):
        idaapi.action_handler_t.__init__(self)
        self.widget_title = widget_title 
Example #28
Source File: apply_callee_type_plugin.py    From flare-ida with Apache License 2.0 5 votes vote down vote up
def installMenuIda7():
    class ApplyCalleeHandler(idaapi.action_handler_t):
        def activate(self, ctx):
            doApplyCallee()
            return 1

        def update(self, ctx):
            return idaapi.AST_ENABLE_FOR_WIDGET if ctx.widget_type == idaapi.BWN_DISASM else idaapi.AST_DISABLE_FOR_WIDGET

    ret = idaapi.register_action(idaapi.action_desc_t(
            ACTION_NAME,            # Name. Acts as an ID. Must be unique.
            PLUGIN_NAME,            # Label. That's what users see.
            ApplyCalleeHandler(),   # Handler. Called when activated, and for updating
            PREFERRED_SHORTCUT,     # Shortcut (optional)
            PLUGIN_COMMENT          # Tooltip (optional)
            ))
    if not ret:
        print('Failed to register action. Bailing out')
        return
    # Insert the action in the menu
    if idaapi.attach_action_to_menu(MENU_PATH, ACTION_NAME, idaapi.SETMENU_APP):
        print("Attached to menu.")
    else:
        print("Failed attaching to menu.")

    setattr(sys.modules['idaapi'], '_apply_callee_type_plugin_installFlag', True) 
Example #29
Source File: ghida.py    From GhIDA with Apache License 2.0 5 votes vote down vote up
def __init__(self, view):
        idaapi.action_handler_t.__init__(self)
        self.view = view

    # Say hello when invoked. 
Example #30
Source File: create_tab_table.py    From win_driver_plugin with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __init__(self):
        idaapi.action_handler_t.__init__(self)