wolf5x / cppobfuscator Goto Github PK
View Code? Open in Web Editor NEWc/c++ obfuscator with clang lib
c/c++ obfuscator with clang lib
struct option {
char a[32];
int b;
unsigned c;
char d;
};
int main() {
option haha = {"aa", 1, 2, '3'}; // error
return 0;
}
C99标准的初始化,应该支持。
type const* 将const限定符去掉。
const type*不用改变。
QualType clang::PointerType::getPointeeType ( ) const
综上,只需将isConstant(ASTContext &)的类型removeConst()
switch(T t=x) {
}
==>
T t=(x);
switch(t) {
}
因为 x有可能含逗号表达式。
现在短选项不支持。(目前能用就行,妹的……)
全部都输出到mainfile里了,没有分文件输出。
ret_type class_name::func_name(){}
会变成
ret_type func_name(){}
create a bool var to record whether the static var has been initialized.
create a if stmt with the bool var as cond var, to decide whether to execute the new assign code.
可能是LocalVarMover中对IfStmt预处理的问题。
见_badcase.cpp
可考虑用watashi大神的C++代码……
if(a || (b && c)) {
//...
}
在3.1中的流图与3.2中不同。
3.2中统一将bool条件分支中的条件跳转放进CFGTerminator,如3.2中关于&&表达示的CFGBlock形如:
[B1]
1. b
T [B1.1] && ...
而3.1中是将1和T拆分成2个CFGBlock的:
[B1]
1. b
[B2]
T [B1.1] && ...
因此3.2中的缩点处理应当修改。
x = func();
会转化成
func();
x = func();
可能是CFGBElement类型判断有误。在构建CaseStmt的语句移植时判断条件不完善。
为了保证语义不变,变量定义应拆分成声明和placement new,确保是调用构造函数而不是拷贝函数。
要根据变量是否为POD(?)类型决定。如:
int a = 1;
ClassTy b(initlist);
转换为
int a;
a = 1;
ClassTy b;
b.~ClassTy();
new (&b) ClassTy(initlist);
可能是VarDecl::Create中DeclContext直接传了TranslationUnitDecl。
改成FunctionDecl?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.