function OnBeforeCompilation()
local heap = vmprotect.core():outputArchitecture():streams()
local methods = heap:table(TokenType.MethodDef)
for i = 1, methods:count() do
local method = methods:item(i)
if method:declaringType():name() == CLASS_NAME then
method:setRenameMode(RenameMode.None)
end
end
end
function OnBeforeCompilation()
local header = vmprotect.core():outputArchitecture():segments():header()
if header ~= nil then
header:setExcludedFromMemoryProtection(true)
end
end
Hi, I have a beginner question. If I only use the GUI VMProtect and I protect the binary file with serial lock, could I write a script to make the protected file read the license key from a text file, like serial.txt?
thanks admin