Python idaapi.PluginForm.Show() Examples

The following are 21 code examples for showing how to use idaapi.PluginForm.Show(). 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.PluginForm , or try the search function .

Example 1
Project: grap   Author: AirbusCyber   File: IDAgrapForm.py    License: MIT License 6 votes vote down vote up
def Show(self):
        """
        Creates the form and brings it to the front.
        """
        
        try:
            input_md5 = idc.retrieve_input_file_md5()
        except:
            input_md5 = idc.GetInputMD5()
        
        if input_md5 is None:
            return
        else:
            name = "{}".format(config['name'])
			
            try:
                options = PluginForm.WCLS_CLOSE_LATER |\
                        PluginForm.WCLS_SAVE |\
                        PluginForm.WOPN_RESTORE
            except:
                options = PluginForm.FORM_CLOSE_LATER |\
                          PluginForm.FORM_SAVE |\
                          PluginForm.FORM_RESTORE

            return PluginForm.Show(self, name, options=options) 
Example 2
Project: DIE   Author: ynvb   File: FunctionViewEx.py    License: MIT License 6 votes vote down vote up
def on_show_callgraph(self, function_context):

        if not isinstance(function_context, DIE.Lib.DIEDb.dbFunction_Context):
            if function_context is not None:
                raise ValueError("Wrong value sent to 'on_show_callgraph': %s. excpected dbFunction_Context" % function_context.__class__)
            else:
                raise ValueError("Wrong value sent to 'on_show_callgraph'")

        graph = nx.DiGraph()

        call_graph = self.die_db.get_call_graph_to(function_context)
        if not call_graph:
            idaapi.msg("No Execution Graph")
            return

        for ctxt_node in call_graph:
            (from_address, to_address) = ctxt_node
            graph.add_edge(from_address, to_address)

        function_name = self.die_db.get_function_name(function_context.function)
        viewer = sark.ui.NXGraph(graph, "Callgraph for {}".format(function_name), handler=sark.ui.AddressNodeHandler())
        viewer.Show()

        return 
Example 3
Project: DROP-IDA-plugin   Author: Riscure   File: gui.py    License: GNU General Public License v3.0 6 votes vote down vote up
def chooser_selection_changed(self):
        self.custom_edit.setText("")
        sel_sp = AddHookDialog.list_simprocedures[self.chooser_sim_procedure.currentText()]
        if sel_sp == "constant":
            # Show editbox for the value
            self.custom_label.setText("Specify the integer value to return: ")
            self.custom_edit.setText("42")
            self.custom_label.setVisible(True)
            self.custom_edit.setVisible(True)
        elif sel_sp == "redirect":
            # Show editbox for address
            self.custom_label.setText("Specify the address to redirect to: ")
            self.custom_edit.setText("0xDEADBEEF")
            self.custom_label.setVisible(True)
            self.custom_edit.setVisible(True)
        else:
            # Hide editbox
            self.custom_label.setVisible(False)
            self.custom_edit.setVisible(False) 
Example 4
Project: VMAttack   Author: anatolikalysch   File: PluginViewer.py    License: MIT License 5 votes vote down vote up
def Show(self, **kwargs):
        return PluginForm.Show(self, self.title, options=PluginForm.FORM_PERSIST) 
Example 5
Project: idasec   Author: RobinDavid   File: idasec.py    License: GNU Lesser General Public License v2.1 5 votes vote down vote up
def run(self, arg=0):
        print "Run IDASec"
        f = IDASecForm()
        f.Show()
        return 
Example 6
Project: idasec   Author: RobinDavid   File: idasec.py    License: GNU Lesser General Public License v2.1 5 votes vote down vote up
def main():
    idaapi.msg("Loading IDASEC\n")
    global IDASEC
    try:
        IDASEC
        IDASEC.OnClose(IDASEC)
        idaapi.msg("reloading IDASec\n")
        IDASEC = IDASecForm()
        return
    except Exception:
        IDASEC = IDASecForm()
    IDASEC.Show("Idasec") 
Example 7
Project: IDAngr   Author: andreafioraldi   File: main_gui.py    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
def Show(self):
        """Creates the form is not created or focuses it if it was"""
        return PluginForm.Show(self,
                               "IDAngr Panel",
                               options = (PluginForm.FORM_TAB | PluginForm.FORM_CLOSE_LATER)) 
Example 8
Project: IDAngr   Author: andreafioraldi   File: main_gui.py    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
def idangr_panel_show():
    global _idangr_panel
    _idangr_panel.Show() 
Example 9
Project: DIE   Author: ynvb   File: BPView.py    License: MIT License 5 votes vote down vote up
def Show(self):
        return PluginForm.Show(self,
                               "Breakpoint View",
                               options=PluginForm.FORM_PERSIST) 
Example 10
Project: DIE   Author: ynvb   File: ParserView.py    License: MIT License 5 votes vote down vote up
def Show(self):

        return PluginForm.Show(self,
                               "Parser View",
                               options=PluginForm.FORM_PERSIST) 
Example 11
Project: DIE   Author: ynvb   File: FunctionViewEx.py    License: MIT License 5 votes vote down vote up
def Show(self):
        # Reset highlighted items
        self.highligthed_items = []

        return PluginForm.Show(self,
                               "Function View",
                               options=PluginForm.FORM_PERSIST) 
Example 12
Project: DIE   Author: ynvb   File: FunctionViewEx.py    License: MIT License 5 votes vote down vote up
def on_value_detail(self, value):
        if not self.value_view.isVisible():
            self.value_view.Show()

        self.value_view.find_value(value)
        return 
Example 13
Project: DIE   Author: ynvb   File: FunctionViewEx.py    License: MIT License 5 votes vote down vote up
def on_pluginsview_button(self):

        plugins_view = DIE.UI.ParserView.get_view()
        plugins_view.Show() 
Example 14
Project: DIE   Author: ynvb   File: FunctionViewEx.py    License: MIT License 5 votes vote down vote up
def on_bpview_button(self):

        bp_view = DIE.UI.BPView.get_view()
        bp_view.Show()

###############################################################################################
#  View Delegates. 
Example 15
Project: DIE   Author: ynvb   File: FunctionViewEx.py    License: MIT License 5 votes vote down vote up
def createEditor(self, parent, option, index):

        parsed_val_list = index.data(role=DIE.UI.ParsedValuesRole)

        # Show combobox only if parsed_value as two or more items.
        if parsed_val_list is not None and len(parsed_val_list) > 1:
            lines = []
            for parsed_val in parsed_val_list:
                line_txt = "%d, %s, %s" % (parsed_val.score, parsed_val.data, parsed_val.description)
                lines.append(line_txt)

            combo_box = QtWidgets.QComboBox(parent)
            combo_box.addItems(lines)

            return combo_box 
Example 16
Project: IDA-Function-Tagger   Author: alessandrogario   File: IDAFunctionTagger.py    License: GNU General Public License v2.0 5 votes vote down vote up
def Show(self):
        return PluginForm.Show(self, "Function Tags", options = PluginForm.FORM_TAB) 
Example 17
Project: IDA-Function-Tagger   Author: alessandrogario   File: IDAFunctionTagger.py    License: GNU General Public License v2.0 5 votes vote down vote up
def openTagViewer():
    global TagViewer
    TagViewer.Show() 
Example 18
Project: functions-plus   Author: ax330d   File: functions_plus.py    License: MIT License 5 votes vote down vote up
def Show(self):
        '''
        Creates the form is not created or focuses it if it was.
        '''
        return PluginForm.Show(self, 'Functions+') 
Example 19
Project: functions-plus   Author: ax330d   File: functions_plus.py    License: MIT License 5 votes vote down vote up
def main():
    funp = FunctionsPlus()
    funp.Show() 
Example 20
Project: DROP-IDA-plugin   Author: Riscure   File: gui.py    License: GNU General Public License v3.0 5 votes vote down vote up
def show(self):
        PluginForm.Show(self, WINDOW_NAME)

        # Set up the refresh timer
        self.timer = QtCore.QTimer(self.parent)
        self.timer.timeout.connect(self.timer_update)
        self.timer.start(250) # every quarter second
        self.current_function = None 
Example 21
Project: DROP-IDA-plugin   Author: Riscure   File: gui.py    License: GNU General Public License v3.0 5 votes vote down vote up
def btn_show_angr_graph_clicked(self):
        # Assume angr is loaded
        def mapping(node):
            b = self.plugin.angr_proj.factory.block(node.addr)
            return str(b.capstone)

        try:
            graph = self.plugin.cfg.functions[self.current_function].graph
            graph2 = networkx.relabel_nodes(graph, mapping)
            viewer = sark.ui.NXGraph(graph2, title="angr graph", padding=0)
            viewer.Show()
        except:
            print("ERROR: {}".format(sys.exc_info()))