def __init__(self, filename): Disassembler.__init__(self, filename) PAPA_ROP.__init__(self, filename) Format_String.__init__(self, filename) Process.__init__(self, filename) Misc.__init__(self, filename) context.log_level = 'INFO' context.delete_corefiles = True
def __init__(self, binary): Disassembler.__init__(self, binary) self.__init_resolver() # initial build of graph self.__build_graph(self.get_blocks()) self.__mark_signature_blocks() # simplify graph self.graph.simplify(self.__signature_blocks, self.resolver) # build again because we need the indirect jumps self.__build_graph(self.graph.get_blocks()) self.__create_external_functions() self.__create_fallback_function()