def __iterate__(cls):
'''Iterates through 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
while ch and ch.startEA < right:
yield ch.startEA
ch = idaapi.get_next_func(ch.startEA)
return
评论列表
文章目录