def __new__(cls):
'''Returns a list of all of the functions in the current database (ripped from idautils).'''
left,right = range()
# find first function chunk
ch = idaapi.get_fchunk(left) or idaapi.get_next_fchunk(left)
while ch and ch.startEA < right and (ch.flags & idaapi.FUNC_TAIL) != 0:
ch = idaapi.get_next_fchunk(ch.startEA)
# iterate through the rest of the functions in the database
result = []
while ch and ch.startEA < right:
result.append(ch.startEA)
ch = idaapi.get_next_func(ch.startEA)
return result
评论列表
文章目录