
LLVM 17 기반의 GPL-free, 화이트리스트 기반 C/C++ 난독화 도구
GPL이 없는 C/C++ 난독화 도구 (LLVM 17 기반, 화이트리스트 주도)
모든 난독화 패스는 화이트리스트를 사용합니다. 안전한 것으로 알려진 명령어만 난독화되어 빌드와 프로그램의 안정성을 유지하는 데 도움을 줍니다.
이 프로젝트는 GPL, AGPL 또는 상업적 사용을 제한할 수 있는 기타 라이선스를 사용하지 않고 개발되었습니다.

블록 흐름 그래프 (Ghidra)
# download obfuscator
curl -LO https://github.com/HimitsuShell/HimitsuObfuscator/releases/download/v2.1.0/himitsu_obfuscator.tar
tar -xvf himitsu_obfuscator.tar
# create sample source
vim main.c
-----------------------------
#include <stdio.h>
int main() {
printf("Hello World!\n");
return 0;
}
-----------------------------
# build and run (x86_64-linux-gnu)
apt install -y build-essential
./bin/clang --target=x86_64-linux-gnu -mllvm -sobf main.c -o main
./main
# supported targets: x86_64-linux-musl, aarch64-linux-gnu, aarch64-linux-musl, etc.
- fla # control flow flattening
- bcf # bogus control flow (slow build, larger binary)
- bcf_prob # probability (1–100, default: 30)
- bcf_loop # number of iterations (default: 1)
- sub # instruction substitution (add/and/sub/or/xor)
- sub_loop # number of iterations (default: 1)
- sobf # string encryption
- split # basic block splitting
- split_num # number of splits (default: 2)
# selective obfuscation ('no' prefix disables)
void test1() __attribute__((annotate("sobf"), annotate("nobcf")));
void test1() { printf("Hello World!"); }
# planned options: indirect branches, indirect calls, indirect global variable
-bcf을 사용할 때는 -g로 컴파일하지 마십시오 (디버그 정보는 난독화를 건너뜁니다).[HimitsuShell CE] 고지는 HimitsuObfuscator가 아닌 HimitsuShell에만 적용됩니다.