Hi!
I had this idea a while ago. Let me explain myself.
You all know that we can decompile (even if the application is packed/obfuscated) and get the source of any Visual Basic or .NET managed applications. More or less easily, depends on which packer/obfuscator/technic you used.
The problem for VB/.NET developers is: protect the application to prevent it from a decompilation.
Also, maybe you know that the native C++ (or C or any other native language) is very harder (almost impossible?) to decompile than VB/.NET.
Ok.. Do you see where I want to drive you?
What do you think about it?
I think I'll try to code it during the holidays (in France: at the end of the week).
I had this idea a while ago. Let me explain myself.
You all know that we can decompile (even if the application is packed/obfuscated) and get the source of any Visual Basic or .NET managed applications. More or less easily, depends on which packer/obfuscator/technic you used.
The problem for VB/.NET developers is: protect the application to prevent it from a decompilation.
Also, maybe you know that the native C++ (or C or any other native language) is very harder (almost impossible?) to decompile than VB/.NET.
Ok.. Do you see where I want to drive you?
- You create a native (not .NET) C++ project
- You make a .NET program which will run the protected program (I'll explain below), and put it as resource in the C++ program. WE CALL THIS PROGRAM 'A'
- Still in a resource file, put the encrypted program (the one you want to protect) (like Convert.ToBase64String(IO.File.ReadAllBytes("MyFileToProtect.exe"))). WE CALL THIS PROGRAM 'B'
- The C++ exe will drop the program 'A' and run it with passing in arguments the 'B' program (encrypted program, the one you want to protect)
- The 'A' program will decrypt the 'B' program (like Convert.FromBase64String(Environment.GetCommandLineArgs(1)))
- Now, the 'A' program will use reflection to run the program you want to protect (like Spoiler (Click to View))
What do you think about it?
I think I'll try to code it during the holidays (in France: at the end of the week).


![[Image: uzpE9zW.jpg]](https://i.imgur.com/uzpE9zW.jpg)