vmp3 randomize or hide section names
Posted: Mon Sep 17, 2018 6:21 pm
hi, ive tried a script i had for 2.x but doesnt work, i see in 3 its changed to lua but this doesn't work either;
function GetRandomSectionName()
local res = ""
for i = 1, 8 do
res = res .. string.char(32 + math.random(string.byte("z") - 32))
end
return res
end
function OnAfterSaveFile()
local file = vmprotect.core():outputFile()
for i = 1, file:segments():count() do
file:segments():item(i):setName(GetRandomSectionName())
end
end
whats the script to hide section names or randomize them (both examples would be good)
thanks
function GetRandomSectionName()
local res = ""
for i = 1, 8 do
res = res .. string.char(32 + math.random(string.byte("z") - 32))
end
return res
end
function OnAfterSaveFile()
local file = vmprotect.core():outputFile()
for i = 1, file:segments():count() do
file:segments():item(i):setName(GetRandomSectionName())
end
end
whats the script to hide section names or randomize them (both examples would be good)
thanks