Python idaapi.PLUGIN_SKIP Examples

The following are 3 code examples for showing how to use idaapi.PLUGIN_SKIP(). These examples are extracted from open source projects. 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 check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module idaapi , or try the search function .

Example 1
Project: GhIDA   Author: Cisco-Talos   File:    License: Apache License 2.0 5 votes vote down vote up
def init(self):
        # Print header
        print("=" * 60)
        print("GhIDA Decompiler v{0}".format(gl.ghida_vv))
        print("Andrea Marcelli <>")
        print("Cisco Talos, June 2019")
        print("GhIDA Decompiler shortcut key is Ctrl-Alt-D")
        print("=" * 60)

        self.__uihooks = None
        self.__seh = None

            import pygments
        except Exception:
            print("GhIDA:: [!] pygments library is missing")
            print("pip2 install pygments")
            return idaapi.PLUGIN_SKIP

            import requests
        except Exception:
            print("GhIDA:: [!] requests library is missing")
            print("pip2 install requests")
            return idaapi.PLUGIN_SKIP


        # Avoid displaying Running python script dialog
        # Otherwise, it breaks the UI and Cancel button

        # Hooking
        self.__uihooks = DisasmsHooks()

        self.__seh = ScreenEAHook()
        return idaapi.PLUGIN_KEEP 
Example 2
Project: bap-ida-python   Author: BinaryAnalysisPlatform   File:    License: MIT License 5 votes vote down vote up
def init(self):
        Ensure plugin's line modification function is called whenever needed.

        If Hex-Rays is not installed, or is not initialized yet, then plugin
        will not load. To ensure that the plugin loads after Hex-Rays, please
        name your plugin's .py file with a name that starts lexicographically
        after "hexx86f"
            if idaapi.init_hexrays_plugin():
                def hexrays_event_callback(event, *args):
                    if event == idaapi.hxe_refresh_pseudocode:
                        # We use this event instead of hxe_text_ready because
                        #   MacOSX doesn't seem to work well with it
                        # TODO: Look into this
                        vu, = args
                    return 0
                return idaapi.PLUGIN_SKIP
        except AttributeError:
            idc.Warning('''init_hexrays_plugin() not found.
            Skipping Hex-Rays plugin.''')
        return idaapi.PLUGIN_KEEP 
Example 3
Project: deREferencing   Author: danigargu   File:    License: GNU General Public License v3.0 5 votes vote down vote up
def init(self):
        if not dbg.supported_cpu():
            return idaapi.PLUGIN_SKIP


        return idaapi.PLUGIN_KEEP