Manually generate a watermark

Issues related to VMProtect
nobrain90
Posts: 3
Joined: Sat Aug 04, 2018 8:49 pm

Manually generate a watermark

Postby nobrain90 » Sun Aug 05, 2018 3:23 pm

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

Admin
Site Admin
Posts: 1504
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Manually generate a watermark

Postby Admin » Sun Aug 05, 2018 6:04 pm

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