Page 1 of 1

Manually generate a watermark

Posted: Sun Aug 05, 2018 3:23 pm
by nobrain90
Hello,

I use the VMProtect demo (v3.2) in command-line.

I would like to know how to manually generate a watermark ?
I have to go through the graphic version to generate it.

I haven't found a command line equivalent. So I get this error :
[Error] Watermark "test" not found in the watermark list

I thought about editing the "VMProtect.dat" file directly but I don't know what the watermark format should be.

Do you have any idea, please ?

Thank you

Re: Manually generate a watermark

Posted: Sun Aug 05, 2018 6:04 pm
by Admin
Here is an example for the section "Script":

Code: Select all

local watermark_name = vmprotect.core():watermarkName()
if (watermark_name ~= "" and not vmprotect.core():watermarks():itemByName(watermark_name)) then
	vmprotect.core():watermarks():add(watermark_name)
end