目标C和类转储保护 [英] Obj C and class-dump protection

查看:55
本文介绍了目标C和类转储保护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道很容易破解Mach-O可执行文件,我只是想对类转储"工具进行简单的保护.是否有任何工具或XCode插件可以将所有类名和类函数更改为不太可读的内容(例如符号和数字的随机组合)?

I understand that it is easy to hack Mach-O executable, I just want simple protection against "class-dump" tool. Is there any tool or XCode plugin that can change all classes names and class functions to something not very readable (like random combination of symbols and numbers)?

坦率地说,这就是我所需要的全部保护.

Frankly that's all protection I need.

推荐答案

我在此博客文章中对此做了一些介绍,但总而言之:您可以通过在运行时注册方法或将其保留为函数来避免方法出现在class-dump中.

I wrote a bit about this in this blog post, but to summarise: you can avoid having methods appearing in class-dump by registering them at runtime, or just keeping them as functions.

如果您真正想做的全部是重命名类/方法,则可以

If really all you want to do is rename the classes/methods, you can use the tops command-line tool or Xcode's refactoring feature.

这篇关于目标C和类转储保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆