Page 1 of 1

Is this safe?

Posted: Thu Oct 31, 2013 4:21 pm
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

Re: Is this safe?

Posted: Thu Oct 31, 2013 4:54 pm
by Admin
I can recommend to read this:
https://vmpsoft.com/vmprotect/user-manu ... cking-code

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