def __searchGadgets(self, binary): gadgets = {} r = Ropper(binary) for section in binary.executableSections: vaddr = self.binary.manualImagebase + section.offset if self.binary.manualImagebase != None else section.virtualAddress self.__printInfo('Loading gadgets for section: ' + section.name) newGadgets = r.searchRopGadgets( section.bytes, section.offset,vaddr, badbytes=unhexlify(self.__options.badbytes), depth=self.__options.depth, section=section, gtype=GadgetType[self.__options.type.upper()], pprinter=self.__cprinter) gadgets[section] = (newGadgets) return gadgets
def __searchGadgets(self): gadgets = {} r = Ropper(self.__binary.arch) for section in self.__binary.executableSections: vaddr = self.__options.I + section.offset if self.__options.I != None else section.virtualAddress newGadgets = r.searchRopGadgets( section.bytes, section.offset,vaddr, badbytes=unhexlify(self.__options.badbytes), depth=self.__options.depth, gtype=GadgetType[self.__options.type.upper()]) gadgets[section] = (newGadgets) return gadgets
def __searchGadgets(self): gadgets = {} r = Ropper(self.__binary.arch) for section in self.__binary.executableSections: vaddr = self.__options.I + section.offset if self.__options.I != None else section.virtualAddress newGadgets = r.searchRopGadgets( section.bytes, section.offset, vaddr, badbytes=unhexlify(self.__options.badbytes), depth=self.__options.depth, gtype=GadgetType[self.__options.type.upper()]) gadgets[section] = (newGadgets) return gadgets
def __searchGadgets(self, binary): gadgets = {} r = Ropper(binary) for section in binary.executableSections: vaddr = self.binary.manualImagebase + section.offset if self.binary.manualImagebase != None else section.virtualAddress self.__printInfo('Loading gadgets for section: ' + section.name) newGadgets = r.searchRopGadgets( section.bytes, section.offset, vaddr, badbytes=unhexlify(self.__options.badbytes), depth=self.__options.depth, section=section, gtype=GadgetType[self.__options.type.upper()], pprinter=self.__cprinter) gadgets[section] = (newGadgets) return gadgets