Page 1 of 1

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

Posted: Tue Nov 05, 2019 7:29 am
by vmuser
How to add strongname signature(SNK) to protected .Net DLL?

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

Posted: Wed Nov 06, 2019 6:09 am
by Admin

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

Posted: Mon Nov 11, 2019 8:50 am
by vmuser
.Net dll after protected with VMProtect, can not resign strong name.

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

Posted: Mon Nov 11, 2019 9:15 am
by Admin
Why?

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

Posted: Tue Nov 12, 2019 1:53 am
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

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

Posted: Tue Nov 12, 2019 8:54 am
by Admin
Did you try to resign your binary with sn.exe?

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

Posted: Tue Nov 12, 2019 11:09 am
by vmuser
It's been tried, but can't resign with “sn.exe -R ”

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

Posted: Tue Nov 12, 2019 12:00 pm
by Admin
What does "sn.exe" show?

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

Posted: Wed Nov 13, 2019 2:24 am
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.

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

Posted: Wed Dec 04, 2019 4:27 pm
by Gambino
Hi,

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

Thanks!

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

Posted: Thu Dec 05, 2019 8:45 am
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!

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

Posted: Tue Dec 17, 2019 9:26 am
by Gambino
Hi,

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

Thanks!