Created
March 8, 2018 17:34
-
-
Save Zer0xFF/ad44a94d8b0f16f48d8f76002a70553d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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