I want to obfuscate a C++ application using movfuscator, but movfuscator currently uses C as the source language and not C++.
I tried to do the followings (as they recommended, but with no success):
# Compile c++ to llvm bytecode clang++ -S -emit-llvm -o bytecode.ll $1 # Convert bytecode to C llc -march=c -o code.c bytecode.ll # 'fix' static inline. This is a workaround for a bug # in one of the parsers, I think. sed -i 's/static inline.*//' code.c # hack sed -i 's/extern unsigned char \*__dso_handle;/unsigned char \*__dso_handle=0;/' code.c # Compile the resulting C as usual (but with the c++ stdlib) movcc code.c -lstdc++
What is the "secure" way of obfuscating C++ with movfuscator?