Advertisement
joxeankoret

Python script to force creating functions at positions where

Dec 4th, 2018
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. #
  2. # Simple IDA Python script to force creating functions at positions where an instruction was found
  3. # but no function was created by IDA. It works with any IDA supported processor.
  4. #
  5.  
  6. from idc import *
  7. from idaapi import *
  8.  
  9. seg = SegByName(".text")
  10. start_ea = SegByBase(seg)
  11. end_ea   = SegEnd(start_ea)
  12.  
  13. print("Forcing to create functions from 0x%08x to 0x%08x" % (start_ea, end_ea))
  14.  
  15. for head in Heads(start_ea, end_ea):
  16.   if get_func(head) is None:
  17.     MakeFunction(head)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement