
LLVM 17 के साथ एक GPL-मुक्त, व्हाइटलिस्ट-संचालित 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] सूचना केवल HimitsuShell पर लागू होती है, HimitsuObfuscator पर नहीं।