Step #8: Put serial number to “black” list
Blocked serial numbers should not be accepted by the licensing module. While the next protection VMProtect will store hashes for blocked numbers to the application and licensing module will not accept such numbers anymore.
Let’s create a very short main() function:
int main(int argc, char **argv)
{
char *serial = "Xserialnumber";
int res = VMProtectSetSerialNumber(serial);
print_state(res);
return 0;
}
Run the application and make sure that it accepts the serial number:
state = 0
Now let’s block our serial number. To do that add the following line to INI-file:
BlackListedSerialNumber=Xserialnumber
And run the application again:
state = SERIAL_STATE_FLAG_BLACKLISTED
It is up to you what to do when serial number is blacklisted. The licensing module just informs you about it and treats
the serial number as “invalid”.