
Originally Posted by
NitroForgetsHisPassword
What do you mean by trash code. And by "protect file" do you mean using an obfusculator like Confuserx.
A) Trashcode
Trashcode insertion just means, that you insert useless code (or code that does not alter the functions result) into your Program.
This will modify the signature of that Module.
Example Trashcode: (C#)
Before:
Code:
//Just a simple function to return an Integer Increased by one
private static int add_one(int inp){
inp++;
return inp:
}
After (Example 1 Insertion only):
Code:
//Just a simple function to return an Integer Increased by one
private static int add_one(int inp){
int x = 7564;
x = x*inp%20;
inp++;
return inp:
}
After (Example 2 Modifying the function):
Code:
//Just a simple function to return an Integer Increased by one
private static int add_one(int inp){
int inp_m = inp % 20;
inp_m++;
int int_d = inp / 20;
return inp_m+int_d*20;
}
I would recommend you to write a tool for this, since you should change your trashcode (in the best case) every time before you run your Program.
B) File Protection/Obfuscation
Well ConfuserEX does a decent job in obfuscating C# Code, but you could also use a Virtualizer to protect your Code against Decompilation.
Tho i can't tell you if it is really worth when just fighting against VAC.
But if you wan't to make your Software paid one day, be sure to have some kind of leak protection