Objective-C Code Obfuscation

前端 未结 2 1007
我寻月下人不归
我寻月下人不归 2020-12-05 06:06

Is there any way to obfuscate Objective-C Code ?

Thanks

2条回答
  •  感情败类
    2020-12-05 06:28

    The selectors are still plaintext - otool -o will dump out all your objects and the methods they define. You can also dump out all internal and external selectors accessed in the code with a one-liner that follows. Obfuscating method and parameter names at the source level would probably be easiest, though doing it at the object level will also obfuscate in a language-independent way at the expense of some linker table manipulation.

    otool -s __TEXT __objc_methname yourapp.app/executable_file |expand -8 | cut -c17- | sed -n '3,$p' | perl -n -e 'print join("\n",split(/\x00/,scalar reverse (reverse unpack("(a4)*",pack("(H8)*",split(/\s/,$_))))))'|less
    

提交回复
热议问题