Beispiel #1
0
 def __init__(self, title, items, icon, embedded=False):
     Choose2.__init__(self,
                      title,
                      [ ["Antivirus", 20], ["Result", 40] ],
                      embedded=embedded)
     self.items = items
     self.icon = icon
Beispiel #2
0
 def __init__(self, title, mynav=None):
     Choose2.__init__(self, title, [["Line", 8], ["Address", 10], ["Name", 30]])
     self.n = 0
     self.items = []
     self.item_relations = {}
     self.icon = 41
     self.mynav = mynav
    def __init__(self):
        Choose2.__init__(self,
                         "Patches",
                         [ ["Address",  10 | Choose2.CHCOL_HEX], 
                           ["Name",     18 | Choose2.CHCOL_PLAIN], 
                           ["Size",      4 | Choose2.CHCOL_DEC], 
                           ["Modified", 10 | Choose2.CHCOL_HEX],
                           ["Original", 10 | Choose2.CHCOL_HEX], 
                           ["Comment",  30 | Choose2.CHCOL_PLAIN]
                         ],
                         flags = Choose2.CH_MULTI_EDIT)

        self.popup_names = ["Insert", "Delete", "Edit", "Refresh"]
        
        self.icon = 47

        # Items for display and corresponding data
        # NOTE: Could become desynchronized, so to avoid this
        #       refresh the view after each change.
        self.items = []
        self.items_data  = []

        # Initialize/Refresh the view
        self.refreshitems()

        # Data members
        self.patch_file = None
        self.restore = False

        # Command callbacks
        self.cmd_apply_patches = None
        self.cmd_restore_bytes = None
Beispiel #4
0
	def __init__(self, title, func_profile, color):
		Choose2.__init__(self, title, [ ["Address", 10 | Choose2.CHCOL_HEX], ["Name", 15 | Choose2.CHCOL_PLAIN] ])
		self.n = 0
		self.icon = 41
		self.functions = func_profile
		self.color = color
		self.PopulateItems()
	def __init__(self):
		Choose2.__init__(self,
			"Bundled Assembly Manager",
			[
				["Index",                      6 | Choose2.CHCOL_DEC], 
				["FileItemStructOffset",      18 | Choose2.CHCOL_HEX], 
				["FileNameOffset",            18 | Choose2.CHCOL_HEX], 
				["FileDataOffset",            18 | Choose2.CHCOL_HEX], 
				["FileSize",                  18 | Choose2.CHCOL_HEX], 
				["FileSizeOffset",            18 | Choose2.CHCOL_HEX], 
				["FileCompressedSizeOffset",  18 | Choose2.CHCOL_HEX], 
				["FileCompressedSize",        18 | Choose2.CHCOL_HEX], 
				["IsCompressed",              4  | Choose2.CHCOL_PLAIN], 
				["IsGZip",                    4  | Choose2.CHCOL_PLAIN], 
				["IsME",                      4  | Choose2.CHCOL_PLAIN], 
				["FileName",                  18 | Choose2.CHCOL_PLAIN]
			])
		#self.popup_names = ["Insert", "Delete", "Edit", "Refresh"]

		self.icon = 47

		self.tool = None
		
		self.items = []
		self.items_data = []

		# Command callbacks
		self.cmd_Items_SaveAs = None
		self.cmd_Item_SaveAs = None
		self.cmd_Item_ReplaceBy = None
	def __init__(self):
		Choose2.__init__(self,
			"Bundled Assembly Manager",
			[["Index",                      4 | Choose2.CHCOL_DEC], 
				["FileItemStructOffset",      10 | Choose2.CHCOL_HEX], 
				["FileNameOffset",            10 | Choose2.CHCOL_HEX], 
				["FileDataOffset",            10 | Choose2.CHCOL_HEX], 
				["FileSize",                  10 | Choose2.CHCOL_HEX], 
				["FileSizeOffset",            10 | Choose2.CHCOL_HEX], 
				["FileCompressedSizeOffset",  10 | Choose2.CHCOL_HEX], 
				["FileCompressedSize",        10 | Choose2.CHCOL_HEX], 
				["IsGZip",                    18 | Choose2.CHCOL_PLAIN], 
				["FileName",                  18 | Choose2.CHCOL_PLAIN]])
		#self.popup_names = ["Insert", "Delete", "Edit", "Refresh"]
		
		self.icon = 47
		
		self.items = []
		self.items_data = []

		# Command callbacks
		self.cmd_Items_SaveAs = None
		self.cmd_Item_SaveAs = None
		self.cmd_Item_ReplaceBy = None

		try:
			self.tool = MKBundleTool()
			# Initialize/Refresh the view
			self.refreshitems()
		except:
			traceback.print_exc()
Beispiel #7
0
 def __init__(self, title, items):
     Choose2.__init__(self,
                      title,
                      [["Name", 60], ["Address", 10], ["Ordinal", 10], ["Original Name", 60]],
                      embedded=False)
     self.items = items
     self.icon = 135
 def __init__(self, title, flags=0):
     Choose2.__init__(self,
                      title,
                      [ ["Address", 12 | Choose2.CHCOL_DEC],
                        ["Function Name", 20 | Choose2.CHCOL_PLAIN] ],
                      embedded=True, width=35, height=10,  flags=flags)
     self.PopulateItems()
 def __init__(self, title, icon):
     Choose2.__init__(self,
                      title,
                      [ ["Item", 10] ],
                      icon=icon,
                      flags=Choose2.CH_NOIDB,
                      embedded=True, width=30, height=20)
Beispiel #10
0
 def __init__(self, title, nb=5, mynav=None):
     Choose2.__init__(self, title, [["Session Name", 10]])
     self.n = 0
     self.items = []
     self.icon = 5
     self.selcount = 0
     self.mynav = mynav
     print "created", str(self)
 def __init__(self, manager, flags=0):
     Choose2.__init__(self,
                      "cnns",
                      [
                        ["Connection Identifier", 30 | Choose2.CHCOL_PLAIN] ],
                      embedded=True, width=25, height=6,  flags=flags)
     self.manager = manager
     self.UpdateItems()
Beispiel #12
0
 def __init__(self, title, ea1, ea2):
     Choose2.__init__(self, title, [ ["VA", 10], ["PTE attr", 30] ])
     self.ea1 = ea1
     self.ea2 = ea2
     self.n = 0
     self.icon = 5
     self.items = []
     self.Refresh()
     self.selcount = 0
Beispiel #13
0
 def __init__(self, title, nb = 5, deflt=1):
     Choose2.__init__(self, title, [ ["Address", 10], ["Name", 30] ])
     self.n = 0
     self.items = [ self.make_item() for x in xrange(0, nb+1) ]
     self.icon = 5
     self.selcount = 0
     self.deflt = deflt
     self.popup_names = ["Inzert", "Del leet", "Ehdeet", "Ree frech"]
     print("created %s" % str(self))
Beispiel #14
0
	def __init__(self, title, func_chooser, first_prof_name, second_prof_name):
		Choose2.__init__(self, title, [ ["Address", 10 | Choose2.CHCOL_HEX], ["Name", 15 | Choose2.CHCOL_PLAIN] ])
		self.n = 0
		self.icon = 41
		self.first_flist = func_chooser['first']
		self.second_flist = func_chooser['second']
		self.comm_flist = func_chooser['comm']
		self.first_prof_name = first_prof_name
		self.second_prof_name = second_prof_name
		self.PopulateItems()
    def __init__(self, form, funcs, embedded = False):

        Choose2.__init__(self,
                         "Progress",
                         [ ["Function",     10 | Choose2.CHCOL_PLAIN],
                           ["Status", 10 | Choose2.CHCOL_PLAIN],
                           ["Progress", 20 | Choose2.CHCOL_PLAIN],
                         ],
                         embedded = embedded)
        self.icon = 47
        self.items = []
        self.items.append(["%s funcs" % len(funcs), "in progress", "see console"])
        self.form = form
        self.query = Query(form=self.form, funcs=funcs)
        self.query.start()
Beispiel #16
0
    def __init__(self, title, nb = 5, flags=0, width=None, height=None, embedded=False, modal=False):
        Choose2.__init__(
            self,
            title,
            [ ["Address", 10], ["Name", 30] ],
            flags = flags,
            width = width,
            height = height,
            embedded = embedded)
        self.n = 0
        self.items = [ self.make_item() for x in xrange(0, nb+1) ]
        self.icon = 5
        self.selcount = 0
        self.modal = modal
        self.popup_names = ["Inzert", "Del leet", "Ehdeet", "Ree frech"]

        print("created %s" % str(self))
Beispiel #17
0
    def __init__(self, pomidor, embedded = False):

        self.pomidor = pomidor

        Choose2.__init__(self,
                         "IDA Pomidor",
                         [ ["Time",     14 | Choose2.CHCOL_PLAIN],
                           ["Duration",  5 | Choose2.CHCOL_PLAIN], 
                           ["Activity", 10 | Choose2.CHCOL_PLAIN], 
                         ],
                         embedded = embedded)

        self.icon = 47

        # Items for display and corresponding data
        # NOTE: Could become desynchronized, so to avoid this
        #       refresh the view after each change.
        self.items = []

        # Initialize/Refresh the view
        self.refreshitems()
Beispiel #18
0
    def __init__(self,
                 title,
                 nb=5,
                 flags=0,
                 width=None,
                 height=None,
                 embedded=False,
                 modal=False):
        Choose2.__init__(self,
                         title, [["Address", 10], ["Name", 30]],
                         flags=flags,
                         width=width,
                         height=height,
                         embedded=embedded)
        self.n = 0
        self.items = [self.make_item() for x in xrange(0, nb + 1)]
        self.icon = 5
        self.selcount = 0
        self.modal = modal
        self.popup_names = ["Inzert", "Del leet", "Ehdeet", "Ree frech"]

        print("created %s" % str(self))
Beispiel #19
0
 def __init__(self,
              title,
              items,
              flags=0,
              width=None,
              height=None,
              embedded=False,
              modal=False):
     Choose2.__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"]
Beispiel #20
0
 def __init__(self, title, items, icon, embedded=False):
     Choose2.__init__(self,
                      title, [["Antivirus", 20], ["Result", 40]],
                      embedded=embedded)
     self.items = items
     self.icon = icon
 def __init__(self, title):
     Choose2.__init__(self, title, [ ["Segment", 9], ["Function name", 20], ["Address", 9], ["Opty name", 20], ["Address", 9] ])
     self.n = 0
     self.items = self.populate_items()
     self.popup_names = ["", "Delete", "Delete Segment", "Refresh"]