Hack Forums
[.NET] Embedding a DLL into a spesific exe in c# - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Embedding a DLL into a spesific exe in c# (/showthread.php?tid=5931355)



Embedding a DLL into a spesific exe in c# - HardStoN - Jan 19, 2019

how do i create a dll to spesific exe (I already have an injector) using c#

example: Injecting a dll into notepad. and when i press f then some form will popup.

Thanks for all the helpers


RE: Embedding a DLL into a spesific exe in c# - Fhack - Jan 30, 2019

(Jan 19, 2019 06:38 AM)HardStoN Wrote:  how do i create a dll to spesific exe (I already have an injector) using c#

example: Injecting a dll into notepad. and when i press f then some form will popup.

Thanks for all the helpers

If you inject a dll into notepad nothing will produce because the dll is never call by other program.


RE: Embedding a DLL into a spesific exe in c# - TheBigDamnGa - Jan 30, 2019

(Jan 19, 2019 06:38 AM)HardStoN Wrote:  how do i create a dll to spesific exe (I already have an injector) using c#

example: Injecting a dll into notepad. and when i press f then some form will popup.

Thanks for all the helpers

To do what you want you require c++, either the entire "f then some form will popup" code or a wrapper that initializes and runs the actual .NET code.


RE: Embedding a DLL into a spesific exe in c# - 0xDEAD10CC - Jan 30, 2019

(Jan 30, 2019 01:03 AM)Fhack Wrote:  If you inject a dll into notepad nothing will produce because the dll is never call by other program.

You don't know about code injection clearly.

(Jan 30, 2019 02:56 PM)TheBigDamnGa Wrote:  To do what you want you require c++, either the entire "f then some form will popup" code or a wrapper that initializes and runs the actual .NET code.

It does not require C++ (or C for that matter), those are just common languages for this type of thing because they are languages that traditionally compile down to native code. P/Invoke does exist, and there are blittable types.

I don't know why all these types of threads are seemingly always created by people that can't spell, and answered by people who don't know much on the topic.


RE: Embedding a DLL into a spesific exe in c# - Fhack - Jan 30, 2019

(Jan 30, 2019 08:21 PM)0xDEAD10CC Wrote:  You don't know about code injection clearly.

I'm french and by injection i have understand a binded dll.


RE: Embedding a DLL into a spesific exe in c# - 0xDEAD10CC - Jan 31, 2019

(Jan 30, 2019 10:55 PM)Fhack Wrote:  I'm french and by injection i have understand a binded dll.

It could be any number of things, injecting a call to LoadLibrary or something similar to it, or manually mapping the dll in memory. Either way you have no context to make this kind of statement:

Fhack Wrote:nothing will produce because the dll is never call by other program