Is this safe?

Issues related to VMProtect
Post Reply
bitman2112
Posts: 75
Joined: Wed Oct 30, 2013 5:24 pm

Is this safe?

Post by bitman2112 »

I don't want to be bothered by VMProtect when I am just debugging my code so I put a res = 0 surrounded by
#ifdef _DEBUG / #endif preprocessor conditions. It it dangerous to have this code in the exe in the wild?
I have put it inside the protected code area using a marker.

char *serial = read_serial((char*)"c:\\serial.txt");
int res = VMProtectSetSerialNumber(serial);
delete [] serial;

VMProtectBegin("Create");

#ifdef _DEBUG
res = 0;
#endif

if (res)

{
........

Thanks in advance
:Ron
Admin
Site Admin
Posts: 2686
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Is this safe?

Post by Admin »

I can recommend to read this:
https://vmpsoft.com/vmprotect/user-manu ... cking-code

Start with:
Define “correct” serial number
...
Post Reply