Just write the dll to a temp path and then inject it.
i am making an injector in vb for combat arms. i would like to hide the .dll in the injector and make it inject it when the injector opens. could anyone please help me ( i know how to hide it in the injector but not how to let users be able to inject it without having to get it somewhere in their computer else than within the injector... )
sorry for maybe being a noob but well... im not very good to make injectors and i want to make that for my friends because they dont know how to do all the injecting and all and so i taught i could make it so it injects and close as soon as it injects the hack. if someone could help me it would be very appreciated
Just write the dll to a temp path and then inject it.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
thats kind of what i need help with... i know how to add it to be in the .exe but then idk how to copy it somewhere nor anything... deleting it will be easy... but copy from .exe to lets say "C:/" will be a little harder cause i know how to add it as resource or anything but not how to copy it or inject it from there
Then what I said IS what you need help with. Add the .dll to resources then:
[highlight=vb.net]
Private Sub WriteThenInject(ByVal file As Byte(), Byval proc As Process)
Dim tempPath As String = IO.Path.GetTempFileName()
IO.File.WriteAllBytes(tempPath, file)
'call your injection function now, tempPath is the path of the dll.
End Sub
'use the function like this:
WriteThenInject(My.Resources.Hack, Process.GetProcessesByName("lalala")(0))
[/highlight]
Last edited by Jason; 08-30-2011 at 07:20 AM.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
You can do what jason says. Or write the dll to memory as a byte array.
"I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov