def __init__(self, title, nb = 5): Choose.__init__( self, title, [ ["Bit", Choose.CHCOL_HEX | 10] ], flags = Choose.CH_MULTI) self.items = [ str(1 << x) for x in range(nb) ]
def __init__(self, title, nb=5, flags=0, modal=False, embedded=False, width=None, height=None): Choose.__init__(self, title, [["Address", 10], ["Name", 30]], flags=flags | Choose.CH_RESTORE | (Choose.CH_CAN_INS | Choose.CH_CAN_DEL | Choose.CH_CAN_EDIT | Choose.CH_CAN_REFRESH), embedded=embedded, width=width, height=height) self.n = 0 self.items = [self.make_item() for x in range(nb)] self.icon = 5 self.selcount = 0 self.modal = modal self.popup_names = ["Inzert", "Del leet", "Ehdeet", "Ree frech"] print("created %s" % str(self))
def __init__(self): Choose.__init__(self, 'PoSeidon dll and function hashes', [["Module Name", 30], ["Function Name", 30], ["Dll Hash", 10], ["Function Hash", 10]]) self.n = 0 self.items = self.load_items() self.n = len(self.items) self.icon = 5
def __init__(self, title, ea1, ea2): Choose.__init__(self, title, [["VA", 10], ["PTE attr", 30]]) self.ea1 = ea1 self.ea2 = ea2 self.icon = 5 self.items = [] self.Refresh()
def __init__(self, title): Choose.__init__( self, title, [ ["Address", 10 | Choose.CHCOL_HEX], ["Name", 30 | Choose.CHCOL_PLAIN] ]) self.items = [] self.icon = 41
def __init__(self, title, nb = 5, flags = 0): Choose.__init__(self, title, [ ["Address", 10], ["Name", 30] ], flags=flags, embedded=True, width=30, height=6) self.items = [ [str(x), "func_%04d" % x] for x in xrange(nb + 1) ] self.icon = 5
def __init__(self, archive, items): title = "Archive: " + archive Choose.__init__(self, title, [["File name", Choose.CHCOL_PATH | 60], ["Size", Choose.CHCOL_DEC | 10]], icon=-1, y1=-2, flags=Choose.CH_MODAL | Choose.CH_NOIDB) self.items = items
def __init__(self, title, items): headers = [] headers.append(["Base", 10]) headers.append(["RegionSize", 10]) headers.append(["State", 20]) headers.append(["Protect", 20]) headers.append(["Type", 20]) Choose.__init__(self, title, headers) self.items = items
def __init__(self, title, inline_repl, width=100, height=400): Choose.__init__( self, title, [["Macro", 10], ["Expression", 30], ["Description", 60]], flags=(Choose.CH_CAN_INS | Choose.CH_CAN_DEL | Choose.CH_CAN_EDIT | Choose.CH_RESTORE | Choose.CH_CAN_REFRESH), embedded=False, width=width, height=height) self.inline_repl = inline_repl # Load values and prepare all replacement REs self.populate_macros()
def __init__(self, title, items, flags=0, width=None, height=None, embedded=False, modal=False): Choose.__init__(self, title, [["Address", 5], ["Function", 5], ["Device", 15], ["Method", 15], ["Access", 30], ["C define", 100]], flags=flags, width=width, height=height, embedded=embedded) self.n = 0 self.items = items self.icon = 5 self.selcount = 0 self.modal = modal self.popup_names = ["Insert", "Delete", "Refresh"]
def __init__(self, title, items, icon, embedded=False): Choose.__init__(self, title, [["Antivirus", 20], ["Result", 40]], embedded=embedded) self.items = items self.icon = icon
def __init__(self, title): Choose.__init__(self, title, [["Address", 10 | Choose.CHCOL_HEX], ["Name", 30 | Choose.CHCOL_PLAIN]]) self.items = [] self.icon = 41
def __init__(self, title, items): Choose.__init__(self, title, [["Address", 16], ["Name", 250]]) self.items = items
def __init__(self, title, num): Choose.__init__(self, title, [["Function Name", 30 | Choose.CHCOL_PLAIN]]) self.items = [] self.icon = 41 self.num = num
def __init__(self, title, items): Choose.__init__(self, title, [["Caller", 16], ["Display", 250]]) self.items = items