Manually generate a watermark

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

Manually generate a watermark

Post 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
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Manually generate a watermark

Post 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
Post Reply