bluesadi / Pluto

Obfuscator based on LLVM 14.0.6
823 stars 182 forks source link

GlobalEncryption exposing my cpp names #18

Closed ghost closed 2 years ago

ghost commented 2 years ago

Why does GlobalEncryption turn some functions as EXPORT and expose my cpp names, even though i did aggressively strip functions? Is there any fix?

image

Ylarod commented 2 years ago

Related Code: llvm/lib/IR/Module.cpp#L149

This may be solved by hashing the generated function name.

bluesadi commented 2 years ago

I have been very busy recently. Gonna fix it later on.

ghost commented 2 years ago

Ok thanks

bluesadi commented 2 years ago

This flaw has been fixed in the dev branch. Prior suggestion by @Ylarod was adopted. For what changed, see: https://github.com/bluesadi/Pluto-Obfuscator/commit/2cc7c9155e7983ca94286b8898cea8c8f2440680

Will merge it into the main branch later.