"Excluded from memory protection" not working properly

Issues related to VMProtect
Post Reply
marcelxmar
Posts: 6
Joined: Tue Nov 20, 2018 9:06 pm

"Excluded from memory protection" not working properly

Post by marcelxmar »

Hi,
my executable (windows) is creating a section like this:

Code: Select all

#pragma section(".hdata", read)
#pragma data_seg(".hdata$1")
#pragma data_seg()
__declspec (allocate(".hdata$1"))
After that I allocate a variable which is going to hold a HWID.

Now if I enable "Excluded from memory protection" and "Excluded from Packing", only "Exclude from Packing" is going to work, after changing the variable in .hdata it's going to throw the "File corrupted! This program has been manipulated and maybe it's infected by a Virus or cracked. This file won't work anymore." error.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: "Excluded from memory protection" not working properly

Post by Admin »

Please notice that the "Excluded from memory protection" feature works at the runtime only. VMProtect checks whole file on a disk while starting even some sections were excluded from the memory protection. So you can't change anything in your file after protection.
marcelxmar
Posts: 6
Joined: Tue Nov 20, 2018 9:06 pm

Re: "Excluded from memory protection" not working properly

Post by marcelxmar »

Oh ok I see, so I would have to completely disable Memory Protection in order to modify binary without problems?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: "Excluded from memory protection" not working properly

Post by Admin »

Yeah.
Post Reply