Skip to content

Instantly share code, notes, and snippets.

@Zer0xFF
Created March 8, 2018 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zer0xFF/ad44a94d8b0f16f48d8f76002a70553d to your computer and use it in GitHub Desktop.
Save Zer0xFF/ad44a94d8b0f16f48d8f76002a70553d to your computer and use it in GitHub Desktop.
from idautils import *
from idaapi import *
from idc import *
file2 = open("/Users/USERNAME/Desktop/outfunctions.txt", "w")
for segea in Segments():
for funcea in Functions(segea, SegEnd(segea)):
functionName = GetFunctionName(funcea)
if not functionName.startswith("sub_") :
print "{\"" , functionName.strip() , "\" ," , "0x%06x"%(funcea - segea) , "},"
file2.write("{\"" + functionName.strip() + "\" ," + "0x%06x"%(funcea - segea) + "},\n")
file2.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment