Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

混淆不起作用 #10

Open
wanyijun opened this issue Jul 6, 2018 · 5 comments
Open

混淆不起作用 #10

wanyijun opened this issue Jul 6, 2018 · 5 comments

Comments

@wanyijun
Copy link

wanyijun commented Jul 6, 2018

STCDefination里有值~#ifndef ViewController
#define ViewController STCB8D9CC63982139C987E74954B9F4E4BA
#endif
#ifndef AppDelegate
#define AppDelegate STC31CD7117D188FA25D36B7A95B78E6771
#endif
#ifndef aaaaaa
#define aaaaaa STC5114205405B2108905EFA301C6B4F623
#endif
#ifndef four
#define four STCD6E08330948E51626287C55DACB50D28
#endif
#ifndef two
#define two STCE2F3AD4F81EC158F9F342DD99CD8503B
#endif
#ifndef andArr
#define andArr STCC733FC5835E3ADB01F5AB9AAA10598E3
#endif
#ifndef three
#define three STC6F8C896E3DF0B3F8B986911131582222
#endif

confuse.json里也有值
{
"STCE2F3AD4F81EC158F9F342DD99CD8503B" : "two",
"STC5114205405B2108905EFA301C6B4F623" : "aaaaaa",
"STCD6E08330948E51626287C55DACB50D28" : "four",
"STC6F8C896E3DF0B3F8B986911131582222" : "three",
"STC31CD7117D188FA25D36B7A95B78E6771" : "AppDelegate",
"STCC733FC5835E3ADB01F5AB9AAA10598E3" : "andArr"
}

但是用class-dump导出头文件还是没有加密的

@chenxiancai
Copy link
Owner

@wanyijun 是release环境吗?

@wanyijun
Copy link
Author

wanyijun commented Jul 7, 2018

Demo是OK的 但是集成到自己的项目 还是不行~步骤是一样的

@wanyijun
Copy link
Author

wanyijun commented Jul 7, 2018

下面时我class-dump出来的控制器头文件

  • (void)didReceiveMemoryWarning;
  • (void)cancel;
  • (void)STC6E41B327C0A5CA93CDD91DAC35CE012D:(id)arg1 array:(id)arg2;
  • (void)stop;
  • (void)viewDidLoad;

只有第二个人被加密了 stop和cancel方法都没有加密
我是没有设置哪些类和方法 不进行加密的,默认的按博客里来的 全部加密的

@wanyijun
Copy link
Author

wanyijun commented Jul 7, 2018

问题2:就是多参数方法只能加密第一个参数
加密前

  • (void)straaaa:(NSString *)str array:(NSArray *)arr
    {

}

加密后

  • (void)STC7617E3ED2DEFD219D07B9EDE778F31F2:(id)arg1 array:(id)arg2

@chenxiancai
Copy link
Owner

@wanyijun 你的第二个参数的名字和系统的一些方法同名了,不能混淆,混淆系统方法就报错了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants