kam800 / MachObfuscator

MachObfuscator is a programming-language-agnostic Mach-O apps obfuscator for Apple platforms.
MIT License
521 stars 78 forks source link

Erase assert/fatalError file paths #45

Closed kjamroz-bt closed 5 years ago

kjamroz-bt commented 5 years ago

__cstring section contain filenames that are generated by #file (in Swift) or __FILE__ (C/C++/ObjC) In particular they appear when using fatalError in Swift. They are stored in binary near class names, so they should be deleted to not give original class name this way.

It is hard to detect them, so patten (prefix) to recognize them must be given as parameter.

kam800 commented 5 years ago

Great use case! I will be very happy to merge that:)