Sinisterly
[VB.Net] - Merge DLLs - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: [VB.Net] - Merge DLLs (/Thread-VB-Net-Merge-DLLs)

Pages: 1 2


[VB.Net] - Merge DLLs - Madara-Uchiha - 07-06-2013

Hey,

I've a VB program which needs a specific dll to work.
In my RAT server i like to include the dll.
How can I use the dll when adding to ressources is that possible?
Because I don't like to use ILMerge...


RE: [VB.Net] - Merge DLLs - Anizeb - 07-06-2013

A self-extracting executable running in silent mode might be worth looking into if you can't find another way.


RE: [VB.Net] - Merge DLLs - Helroos - 07-06-2013

If the program runs without the dll you can add it to resources then extract.
Else use .net reactor to do it..


RE: [VB.Net] - Merge DLLs - Madara-Uchiha - 07-06-2013

What do you mean: "Use .net reactor"?


RE: [VB.Net] - Merge DLLs - Helroos - 07-06-2013

.Net Reactor is an obfuscator for .net assemblies.
Has embed and merged assemblies feature.


RE: [VB.Net] - Merge DLLs - Electroalek - 07-06-2013

Here is a tutorial on how to do it. http://stackoverflow.com/questions/10137937/merge-dll-into-exe


RE: [VB.Net] - Merge DLLs - Madara-Uchiha - 07-07-2013

(07-06-2013, 11:44 PM)Electroalek Wrote: Here is a tutorial on how to do it. http://stackoverflow.com/questions/10137937/merge-dll-into-exe

Can you show me the embed ressource method in VB.Net?
I like to use it in the webcam program where you helped me with.Smile


RE: [VB.Net] - Merge DLLs - Electroalek - 07-07-2013

Here is how you do it:

Code:
ILMerge.exe /target:winexe /targetplatform:"v4,C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /out:finish.exe insert1.exe insert2.dll
Steps:

Open CMD and cd to your directory. Let's say: cd C:\test
Insert the above code.
/out:finish.exe | replace finish.exe with any filename you want.
Behind the /out:finish.exe you have to give the files you want to be combined.
???
PROFIT!


RE: [VB.Net] - Merge DLLs - Shebang - 07-07-2013

This still utilizes ILMerge to do the assembly merging. However, I'm not sure of another way you could do it. Depending on the DLL, you may be able to use a .NET reflector and get the functions from the assembly, and just include them in the program.


RE: [VB.Net] - Merge DLLs - Madara-Uchiha - 07-07-2013

Can you maybe a tutorial/video for that? That would be cool Smile