Created
January 23, 2017 01:18
-
-
Save darkarnium/5b77b28cd11e75ab46aabd861270fc11 to your computer and use it in GitHub Desktop.
A trivial IDAPy script to dump and demangle all C++ functions
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
import idautils | |
for mangled in idautils.Functions(): | |
demangled = idc.Demangle( | |
str(idaapi.get_func_name(mangled)), | |
idc.GetLongPrm(idc.INF_SHORT_DN) | |
) | |
if demangled is not None: | |
print "{} => {}".format(mangled, demangled) |
import idautils
for mangled in idautils.Functions():
demangled = idc.demangle_name(idaapi.get_func_name(mangled), idc.INF_SHORT_DN)
if demangled is not None:
print("{} => {}".format(mangled, demangled))
Updated for IDA 7+ and Python 3+
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good. how to propagate these symbols in IDA?