Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_tails(func):
- return [ida_funcs.get_fchunk(t.start_ea) for t in func.tails]
- #print(get_tails(ida_funcs.get_func(get_screen_ea())))
- shared_chunks = {}
- for ea in idautils.Functions():
- f = ida_funcs.get_func(ea)
- f_tails = get_tails(f)
- for c in f_tails:
- if c in shared_chunks:
- shared_chunks[c].append(f)
- else:
- shared_chunks[c] = [f]
- for k in shared_chunks:
- if len(shared_chunks[k]) > 1:
- print("chunk {} in {}".format(k, shared_chunks[k]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement