Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
1) spawning is slow, so spawning for each symbol is killing the process
2) you can quickly detect which symbols are mangled by just checking the first 2 chars of the symbol, this reduces the time A LOT
3) swift-demangle can be used to demangle more than one symbol at the time
4) swift is opensource, there's no need to spawn anything
5) the swift demangling apis are accessible (not in last release, but yes in git)
6) there's a swift reimplemenation of the c++ one, just google for it
7) i wrote my own demangler in C (totally incomplete, but enough for most needs)
8) spawning is a process that can be done in paralel. but that's something only Node developers know (ssssh!)
9) python is slow
10) opening any real application with this script will kill your machine
11) it is possible to execute code in your machine by adding custom symbol strings in there (pipes and such)
12) r2 supports native demangling for C++, Java and Swift, improving over time with no external dependencies
13) i have better things to do now

This comment has been minimized.

Copy link

@ronyfadel ronyfadel commented Mar 16, 2018

You might want to check out for a web based version of the demangler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment