def Create(self, sn=None, use_colors=True): # Form the title title = "Simple custom view test" if sn: title += " %d" % sn self.use_colors = use_colors # Create the customviewer if not simplecustviewer_t.Create(self, title): return False for i in xrange(0, 100): prefix, bg = idaapi.COLOR_DEFAULT, None # make every 10th line a bit special if i % 10 == 0: prefix = idaapi.COLOR_DNAME # i.e., dark yellow... bg = 0xFFFF00 # ...on cyan pfx = idaapi.COLSTR("%3d" % i, idaapi.SCOLOR_PREFIX) if self.use_colors: self.AddLine("%s: Line %d" % (pfx, i), fgcolor=prefix, bgcolor=bg) else: self.AddLine("%s: Line %d" % (pfx, i)) return True
def Create(self, title): if not simplecustviewer_t.Create(self, title): return False self.menu_clear = self.AddPopupMenu("Clear") return True
def Create(self, title): if not simplecustviewer_t.Create(self, title): return False self.menu_fetch = self.AddPopupMenu("Fetch") return True
def Create (self): global ph # FIXME: ugly self.menu_loadfromfile = None self.menu_savetofile = None self.menu_copyitem = None self.menu_cutitem = None self.menu_pasteitem = None self.menu_insertitem = None self.menu_jumpto = None self.menu_toggle = None self.menu_deleteitem = None self.menu_edititem = None self.menu_reset = None self.menu_autorec = None self.menu_autorec2 = None self.menu_disasm = None self.menu_findinsn = None self.item_clipboard = None if not simplecustviewer_t.Create (self, pluginname + " - payload"): return False if ph: self.refresh () else: self.ClearLines () return True
def Create(self, isim): self.isim = isim title = "Bookmarks" if not simplecustviewer_t.Create(self, title): print("failed create of bookmarks viewer") return False else: print("created bookmarkView") self.Show()
def Create(self, isim, title): self.isim = isim if not simplecustviewer_t.Create(self, title): print("failed create of stacktrace viewer") return False else: print("created stacktrace") self.Show() return True
def Create(self, title): if not simplecustviewer_t.Create(self, title): return False self.menu_cols1 = self.AddPopupMenu("1 Column") self.menu_cols2 = self.AddPopupMenu("2 Columns") self.menu_cols3 = self.AddPopupMenu("3 Columns") return True
def Create(self, isim, title): self.isim = isim if not simplecustviewer_t.Create(self, title): print("failed create of writeWatch viewer") return False else: print("created writeWatch") self.Show() return True
def Create(self, sn=None): title = "Code_Viewer" if not simplecustviewer_t.Create(self, title): return False for i in result_code: self.AddLine(i[0] + ": \t\t" + i[1]) return True
def Create(self, isim): self.isim = isim title = "data watch" if not simplecustviewer_t.Create(self, title): print("failed create of datawatch viewer") return False else: print("created datawatch") self.Show() return True
def Create(self, isim): self.isim = isim title = "BNT" if not simplecustviewer_t.Create(self, title): print("failed create of BNT viewer") return False else: print("created BNT") self.Show() return True
def Create(self): # Form the title title = "Debugger command window" # Create the customview if not simplecustviewer_t.Create(self, title): return False self.last_cmd = "" self.menu_clear = self.AddPopupMenu("Clear") self.menu_cmd = self.AddPopupMenu("New command") self.ResetOutput() return True
def Create (self): if not simplecustviewer_t.Create (self, pluginname + " - disassembly"): return False self.showData = True self.showRet = True self.popStrings = False self.strBase = 0 self.code = [] self.codetext = [] self.disasmToRopviewerLine = {} self.refresh () return True
def Create(self, sn=None): # Form the title title = "Simple custom view test" if sn: title += " %d" % sn # Create the customviewer if not simplecustviewer_t.Create(self, title): return False for i in xrange(0, 100): self.AddLine("Line %d" % i) # self.Jump(0) return True
def Create(self, sn=None): # Form the title title = "Simple custom view test" if sn: title += " %d" % sn # Create the customviewer if not simplecustviewer_t.Create(self, title): return False self.menu_hello = self.AddPopupMenu("Hello") self.menu_world = self.AddPopupMenu("World") for i in xrange(0, 100): self.AddLine("Line %d" % i) # self.Jump(0) return True
def Create(self, sn=None): # Form the title title = "Simple custom view test" if sn: title += " %d" % sn # Create the customviewer if not simplecustviewer_t.Create(self, title): return False for i in xrange(0, 100): fg, bg = idaapi.COLOR_PREFIX, None # make every 10th line a bit special if i % 10 == 0: fg = idaapi.COLOR_DEFAULT # i.e., white... bg = 0xFFFF00 # ...on cyan pfx = idaapi.COLSTR("%3d" % i, idaapi.SCOLOR_PREFIX) self.AddLine("%s: Line %d" % (pfx, i), fgcolor=fg, bgcolor=bg) return True
def Create(self, sn=None): # Form the title title = "Stack Dump View" if sn: title += " %d" % sn # Create the customviewer if not simplecustviewer_t.Create(self, title): return False with open('C:/Users/workshopadmin/Desktop/vm_share/dumptxt/stackdump2018.04.19-01.29.41.log','r') as f: output=f.readlines() for i in output: self.AddLine(i) ''' for i in xrange(0, 100): fg, bg = idaapi.COLOR_PREFIX, None # make every 10th line a bit special if i % 10 == 0: fg = idaapi.COLOR_DEFAULT # i.e., white... bg = 0xFFFF00 # ...on cyan pfx = idaapi.COLSTR("%3d" % i, idaapi.SCOLOR_PREFIX) self.AddLine("%s: Line %d" % (pfx, i), fgcolor=fg, bgcolor=bg) ''' return True
def __init__(self): simplecustviewer_t.Create(self, "Assertion View") self.AddLine("HAHAHHAH") self.AddLine("HAHAHHAH")