永发信息网

如何用llvm-obfuscator混淆代码

答案:2  悬赏:0  手机版
解决时间 2021-01-23 06:03
如何用llvm-obfuscator混淆代码
最佳答案
1. 混淆方法一: InstructionsSubstitution


[html] view plain copy
-mllvm -sub: activate instructions substitution  
-mllvm -funcSUB="func1,func2,func3": if instructions substitution is activated, apply it only on functions func1, func2 and func3  
-mllvm -perSUB=20: if instructions substitution is activated, apply it with a probability of 20% on each function  
2. 混淆方法二: BogusControlFlow



[html] view plain copy
-mllvm -bcf: activates the bogus control flow pass  
-mllvm -funcBCF="func1,func2,func3": if the pass is activated, applies it only on functions func1, func2, func3  
-mllvm -perBCF=20: if the pass is activated, applies it on all functions with a probability of 20%. Default: 100  
-mllvm -boguscf-loop=3: if the pass is activated, applies it 3 times on a function. Default: 1  
-mllvm -boguscf-prob=40: if the pass is activated, a basic bloc will be obfuscated with a probability of 40%. Default: 30  


3. 混淆方法三: ControlFlow Flattening

[html] view plain copy
-mllvm -fla: activates control flow flattening  
-mllvm -funcFLA="func1,func2,func3": if control flow flattening is activated, apply it only on functions func1, func2 and func3  
-mllvm -perFLA=20: if control flow flattening is activated, apply it with a probability of 20% on each function  


4. 如何用开源 source code 编译出混淆器O-LLVM ?
[cpp] view plain copy
$ git clone -b llvm-3.5 https://github.com/obfuscator-llvm/obfuscator.git  
$ mkdir build  
$ cd build  
$ cmake -DCMAKE_BUILD_TYPE:String=Release ../obfuscator/  
$ make -j5  
编译后的结果只有bin 和 lib 是有用的,其余的都可以删除:
全部回答
同问。。。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
单选题________,sheknowsagreatdeal.A.
2000年,我国政府决定停止对“北大荒”的开垦
投之无所往,死且不北什么意思
跑步机会让腿变粗吗
用5,4,3和三个0写成六位数,只读出两个零的
lc检测含量和nmr检测含量有什么区别
上哪可以看到别人发表的需要借款的信息
单选题体循环和肺循环进行的时间是A.先肺循环
填上适当的分数 24cm²=()dm² ,1
米色或白色短靴怎样搭配衣服?
变什么的成语
苹果i pad自己在说话
幽居春思的古文释义
有2亩地想开一个桶装矿泉水厂
甲乙两地距离是120千米,甲乙两地之间有一个
推荐资讯
判断题推拉门窗是平移现象.
吉林良伟律师事务所地址有知道的么?有点事想
3月份因qq现金贷逾期还款3天导致现金贷内部人
仕途坎坷什么意思
中国流通硬币,2016年,2017年;1角(1毛),
停车场(和平路)(解放路37号附近停车场)地址在
关羽为何只对刘备一人心悦臣服
天溢宾馆(丹阳东路)地址在哪,我要去那里办事
千人场酒吧(南京西路店)地址在什么地方,我要
百信母婴健康生活馆地址在哪,我要去那里办事
微表情是持续时间很短的瞬间表情吗
上海市邦信阳律师事务所地址在什么地方,我要
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?