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

通过GlobalEncryption混淆变量创建的函数,可以插入在该变量使用之前嘛? #62

Open
Dfault0 opened this issue Feb 23, 2024 · 4 comments

Comments

@Dfault0
Copy link

Dfault0 commented Feb 23, 2024

原本是将字符串解密的函数放在了init_array中,这样的话so一加载就能够自动解密了,
image
可以将这些解密的函数放在调用这个变量之前嘛?有没有大佬做到了呀?

@mrh929
Copy link
Contributor

mrh929 commented Feb 23, 2024

编译器很难准确预测一个变量在什么时候会被引用,比如我 int a,b; printf("%d", *(&a + 1)),编译器应该没有办法做到对 b 的预测(它只知道 a 变量被引用了)。还有很多 corner case,很难保证整体预测率达到 100%

@bluesadi
Copy link
Owner

之后可以试试,但corner case确实会比较多,比如间接引用之类的

@Dfault0
Copy link
Author

Dfault0 commented Feb 26, 2024

编译器很难准确预测一个变量在什么时候会被引用,比如我 int a,b; printf("%d", *(&a + 1)),编译器应该没有办法做到对 b 的预测(它只知道 a 变量被引用了)。还有很多 corner case,很难保证整体预测率达到 100%

感觉很难哇,尤其是您说的间接应用的情况

@Dfault0
Copy link
Author

Dfault0 commented Feb 26, 2024

之后可以试试,但corner case确实会比较多,比如间接引用之类的

期待~

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

3 participants