
مُشوّه شيفرة c/c++ خالٍ من gpl ومدفوع بقائمة بيضاء مع llvm 17
مُشوِّه شيفرة c/c++ خالٍ من GPL (قائم على 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
-g عند استخدام -bcf (معلومات التصحيح تتخطى التشويش).[HimitsuShell CE] على HimitsuShell فقط، وليس على HimitsuObfuscator.