Page 1 of 1

Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Sun Jan 22, 2023 3:52 am
by TomBarisano
Hello,

I try the VMProtect Demo with PDB file generate by Visual Studio 2022, compiling .NET 7.0 console application to Native single EXE file

I turned on debugging symbols for Publish and Release build, and try the PDB file in the Publish folder and Release folder

But it does not work

VMprotect imports the PDB file, but when going to use it, say invalid address on all methods

I use this process here: https://learn.microsoft.com/en-us/dotne ... ative-aot/

I also try to use DumpBin.exe to convert PDB file to MAP file (see below), but the syntax and formatting is not correct. it is similar to MAP file, but not close enough.

https://stackoverflow.com/questions/245 ... a-pdb-file

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Sun Jan 22, 2023 6:18 am
by TomBarisano
So the issue was answered here: https://github.com/dotnet/runtime/issues/80992

HOWEVER The compilation time takes so long between when the .MAP is generated and the EXE is spit out, that VMProtect is rejecting the time stamp

How do I fix this?

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Sun Jan 22, 2023 7:18 am
by TomBarisano
After spending some time on this, I think right now its safe to say VMprotect cannot support Native AOT compiled EXE binary, unless the MAP file is the problem

Every method I try to protect gives

"Command not supported"

OR

"Address is already used by function xxxxxxxx"


I know this is still early days for .NET Native AOT, but the potential is very exciting

But sadly, I guess not ready yet

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Sun Jan 22, 2023 12:00 pm
by Admin
Do you have a very simple example (EXE+ PDB + MAP + VMP files) that shows the following problems:
1.
VMprotect imports the PDB file, but when going to use it, say invalid address on all methods
2.
The compilation time takes so long between when the .MAP is generated and the EXE is spit out, that VMProtect is rejecting the time stamp
3.
Every method I try to protect gives

"Command not supported"

OR

"Address is already used by function xxxxxxxx"

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Mon Jan 23, 2023 5:53 am
by TomBarisano
Yes I have sample ZIP with unprotected EXE and VIsual Studio project. where to send it?

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Mon Jan 23, 2023 5:56 am
by Admin

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Mon Jan 23, 2023 11:39 pm
by TomBarisano
I try to email yesterday, email is not delivered, say timeout

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Wed Jan 25, 2023 4:20 pm
by TomBarisano
I try to email twice now, both emails bounced back.

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Wed Jan 25, 2023 4:45 pm
by Admin
It seems your mail server has problems too.

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Thu Jan 26, 2023 6:41 pm
by TomBarisano
Yesterday, the VMPsoft website had a https://www.1gb.ru/index.php error on it instead of home page

I just try to send email again

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Fri Jan 27, 2023 5:35 pm
by TomBarisano
I am still unable to email info@vmpsoft.com

I email plenty of other people just fine, and they email me back just fine (including Themida support)

If you want the sample program and VS project I am having problem with, maybe there is another way I can send it?

Re: Native AOT (.NET 7.0 compile to native) - PDB or MAP file support?

Posted: Fri Jan 27, 2023 5:48 pm
by Admin
We are happy for the themida's support.

The topic is closed.