Skip to content

Instantly share code, notes, and snippets.

@CKCat
Created August 5, 2024 06:11
Show Gist options
  • Select an option

  • Save CKCat/25a9aaa2dd150844e3def0cdd63a0f0d to your computer and use it in GitHub Desktop.

Select an option

Save CKCat/25a9aaa2dd150844e3def0cdd63a0f0d to your computer and use it in GitHub Desktop.

Fast make everywhere as function in specified region

def make_all_func(start,end):
    cur = start
    while True:
        print "Making %x" % cur
        idc.MakeFunction(cur)
        endchunk = idc.get_fchunk_attr(cur, FUNCATTR_END)
        cur = endchunk if endchunk != BADADDR else NextAddr(cur)
        if cur > end:
            break
            
make_all_func(0x828001148, 0x828007D84)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment