本文整理汇总了Python中idaapi.PluginForm.Show方法的典型用法代码示例。如果您正苦于以下问题:Python PluginForm.Show方法的具体用法?Python PluginForm.Show怎么用?Python PluginForm.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类idaapi.PluginForm
的用法示例。
在下文中一共展示了PluginForm.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Show
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
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)
示例2: on_show_callgraph
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
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
示例3: chooser_selection_changed
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
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)
示例4: Show
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def Show(self, **kwargs):
return PluginForm.Show(self, self.title, options=PluginForm.FORM_PERSIST)
示例5: run
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def run(self, arg=0):
print "Run IDASec"
f = IDASecForm()
f.Show()
return
示例6: main
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
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")
示例7: Show
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
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))
示例8: idangr_panel_show
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def idangr_panel_show():
global _idangr_panel
_idangr_panel.Show()
示例9: Show
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def Show(self):
return PluginForm.Show(self,
"Breakpoint View",
options=PluginForm.FORM_PERSIST)
示例10: Show
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def Show(self):
return PluginForm.Show(self,
"Parser View",
options=PluginForm.FORM_PERSIST)
示例11: Show
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def Show(self):
# Reset highlighted items
self.highligthed_items = []
return PluginForm.Show(self,
"Function View",
options=PluginForm.FORM_PERSIST)
示例12: on_value_detail
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def on_value_detail(self, value):
if not self.value_view.isVisible():
self.value_view.Show()
self.value_view.find_value(value)
return
示例13: on_pluginsview_button
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def on_pluginsview_button(self):
plugins_view = DIE.UI.ParserView.get_view()
plugins_view.Show()
示例14: on_bpview_button
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
def on_bpview_button(self):
bp_view = DIE.UI.BPView.get_view()
bp_view.Show()
###############################################################################################
# View Delegates.
示例15: createEditor
# 需要导入模块: from idaapi import PluginForm [as 别名]
# 或者: from idaapi.PluginForm import Show [as 别名]
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