joxeankoret icon

Python script to force creating functions at positions where

joxeankoret | PRO | 12/04/18 03:18:04 PM UTC | 0 ⭐ | 703 👁️ | Never ⏰ | []
Python |

480 B

|

None

|

0 👍

/

0 👎

#
# Simple IDA Python script to force creating functions at positions where an instruction was found
# but no function was created by IDA. It works with any IDA supported processor.
#
 
from idc import *
from idaapi import *
 
seg = SegByName(".text")
start_ea = SegByBase(seg)
end_ea   = SegEnd(start_ea)
 
print("Forcing to create functions from 0x%08x to 0x%08x" % (start_ea, end_ea))
 
for head in Heads(start_ea, end_ea):
  if get_func(head) is None:
    MakeFunction(head)

Comments