def Entries(): """ Returns a list of entry points @return: List of tuples (index, ordinal, ea, name) """ n = idaapi.get_entry_qty() for i in xrange(0, n): ordinal = idaapi.get_entry_ordinal(i) ea = idaapi.get_entry(ordinal) name = idaapi.get_entry_name(ordinal) yield (i, ordinal, ea, name)
def find_entrypoint(self): ordinal = 0 number_entry = idaapi.get_entry_qty() print("Number of Entry point: " + str(number_entry)) ordinal = idaapi.get_entry_ordinal(number_entry - 1) print("Entry ordinals: " + str(ordinal)) self.entryaddress = idaapi.get_entry(ordinal) self.entryname = idaapi.get_entry_name(ordinal) print("Entry : " + self.entryname + " " + str(self.entryaddress))