Пример #1
0
 def loadDlls(self, pe):
     dlls = pedata.getAllDllInstances(pe)
     
     idx = 0
     for dll in dlls:
         dll_name = dll.dll
         
         index = self.dllList.InsertStringItem(sys.maxint, str(idx))
         
         dllStruct = pedata.getDllStructInstance(dll)
         
         oft = dllStruct.OriginalFirstThunk
         tds = dllStruct.TimeDateStamp
         fc = dllStruct.ForwarderChain
         name = dllStruct.Name
         ft = dllStruct.FirstThunk
         
         self.dllList.SetStringItem(index, 0, dll_name)
         self.dllList.SetStringItem(index, 1, hex_up(oft))
         self.dllList.SetStringItem(index, 2, hex_up(tds))
         self.dllList.SetStringItem(index, 3, hex_up(fc))
         self.dllList.SetStringItem(index, 4, hex_up(name))
         self.dllList.SetStringItem(index, 5, hex_up(ft))
         self.dllList.SetItemData(index, idx)
         idx += 1
Пример #2
0
    def loadDlls(self, pe):
        dlls = pedata.getAllDllInstances(pe)

        idx = 0
        for dll in dlls:
            dll_name = dll.dll

            index = self.dllList.InsertStringItem(sys.maxint, str(idx))

            dllStruct = pedata.getDllStructInstance(dll)

            oft = dllStruct.OriginalFirstThunk
            tds = dllStruct.TimeDateStamp
            fc = dllStruct.ForwarderChain
            name = dllStruct.Name
            ft = dllStruct.FirstThunk

            self.dllList.SetStringItem(index, 0, dll_name)
            self.dllList.SetStringItem(index, 1, hex_up(oft))
            self.dllList.SetStringItem(index, 2, hex_up(tds))
            self.dllList.SetStringItem(index, 3, hex_up(fc))
            self.dllList.SetStringItem(index, 4, hex_up(name))
            self.dllList.SetStringItem(index, 5, hex_up(ft))
            self.dllList.SetItemData(index, idx)
            idx += 1
Пример #3
0
 def getNumberOfFunctions(self):
     j = 0
     for i in pedata.getAllDllInstances(self.__pe):
         j += len(i.imports)
     return j
Пример #4
0
 def getNumberOfDlls(self):
     return len(pedata.getAllDllInstances(self.__pe))
Пример #5
0
 def getNumberOfFunctions(self):
     j = 0
     for i in pedata.getAllDllInstances(self.__pe):
         j += len(i.imports)
     return j
Пример #6
0
 def getNumberOfDlls(self):
     return len(pedata.getAllDllInstances(self.__pe))