How to add strongname signature(SNK) to protected .Net DLL

Issues related to VMProtect
Post Reply
vmuser
Posts: 5
Joined: Tue Nov 05, 2019 7:19 am

How to add strongname signature(SNK) to protected .Net DLL

Post by vmuser »

How to add strongname signature(SNK) to protected .Net DLL?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by Admin »

vmuser
Posts: 5
Joined: Tue Nov 05, 2019 7:19 am

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by vmuser »

.Net dll after protected with VMProtect, can not resign strong name.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by Admin »

Why?
vmuser
Posts: 5
Joined: Tue Nov 05, 2019 7:19 am

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by vmuser »

After VMProtect protection, the DLL file that has been strongname signed will be invalid.

Adding a Strong Name to an existing DLL, need
ildasm SomeAssembly.dll /out:SomeAssembly.il
[and]
ilasm SomeAssembly.il /dll /key= keyPair.snk

But protected DLL cannot ildasm
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by Admin »

Did you try to resign your binary with sn.exe?
vmuser
Posts: 5
Joined: Tue Nov 05, 2019 7:19 am

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by vmuser »

It's been tried, but can't resign with “sn.exe -R ”
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by Admin »

What does "sn.exe" show?
vmuser
Posts: 5
Joined: Tue Nov 05, 2019 7:19 am

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by vmuser »

show “dll does not represent a strongly named assembly”

=====================================================
Comment:
1、When the dll file is protected by VMprotect, the strongname signature becomes invalid.
2、When using "SN.exe -R " to resign dll file, the original strongname signature is required to be the same and valid.
Gambino
Posts: 6
Joined: Wed Dec 04, 2019 3:47 pm

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by Gambino »

Hi,

I have the same issue, how did you solve it?

Thanks!
Gambino
Posts: 6
Joined: Wed Dec 04, 2019 3:47 pm

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by Gambino »

Hi,

After I resigned the dll using "SN.exe -R ", I used gacutil /IF "protected dll file" and got the following error:

"Failure adding assembly to the cache: Invalid file or assembly name. The name of the file must be the name of the assembly plus .dll or .exe""

Thanks!
Gambino
Posts: 6
Joined: Wed Dec 04, 2019 3:47 pm

Re: How to add strongname signature(SNK) to protected .Net DLL

Post by Gambino »

Hi,

I have the same issue, do you have any idea how to solve it?

Thanks!
Post Reply