kam800 / MachObfuscator

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

Fatal Error: Reverse Mangler Clash #21

Open lukaspetrik opened 5 years ago

lukaspetrik commented 5 years ago

When using caesar mode, MachObfuscator crashes:

Fatal error: ReverseMangler clashed on symbol 'A': file /Users/lukas/Downloads/MachObfuscator-master/MachObfuscator/SymbolMangling/CaesarMangler/CaesarMangler.swift, line 30

./BuildPhases/obfuscation: line 30: 9155 Illegal instruction: 4 MachObfuscator -v -m caesar //Users/lukas/Library/Developer/Xcode/DerivedData/Wakanda-fuikddtnfvllirgvhznhqqfaeofh/Build/Products/Debug-iphoneos/{REMOVED}.app

Using XCode 10.2.1 and the newest sources of MachObfuscator from master branch. realWords mode works fine.

kam800 commented 5 years ago

Thanks for reporting this issue. Caesar mangler was initially created for debug, when the project was born. It is very easy to demangle, so I would not recommend using this on production. I think I will remove Caesar mangler from MachObfuscator. I also have some ideas for other manglers (Chinese mangler, external dictionary mangler, etc.).