So go ahead and do so.
Add your .dlls to your resources.
hey I want to make a tab on my injector that says .dlls and you can go in there and click witch one you want and the .dlls will download with the injector and they wont be able to manual inject it
So go ahead and do so.
Add your .dlls to your resources.
Under InjectButton_Click and open file dialog stuff, add this:
[php]If OpenFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
Try
ListBox1.Items.Add(OpenFileDialog1.FileName)
ListBox1.Select()
Catch Ex As Exception
MessageBox.Show("Cannot read file from disk. Original error: " & Ex.Message)
End Try
End If[/php]
Under Private Sub Inject(), to injcet selected make it
[php]pszLibFileRemote = ListBox1.SelectedItems[/php] so that it injects selected.
[php]ListBox1.SelectedItems[/php] This will ONLY inject the selected items. Im not sure if it works..
To get it work and inject every dll you need something like this:
[php]For i = 0 to listbox1.items.count
dim Itemss as integer = 0
pszLibFileRemote = ListBox1.Items(itemss).ToString
itemss = itemss + 1
next[/php]
-Rest in peace leechers-
Your PM box is 100% full.
Off topic and spam removed.
Stay on topic please ;D
I don't know why I'm posting this, but here is the up-to-date Inject Sub, this will inject all the items in box, 100% WOrking:
[php]For i = 0 To ListBox1.Items.Count - 1
pszLibFileRemote = ListBox1.Items.Item(i)
TargetBufferSize = 1 + Len(pszLibFileRemote)
Dim Rtn2 As Integer
Dim Listbox1item As String
Dim LoadLibParamAdr1 As Integer
LoadLibParamAdr1 = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
Rtn2 = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr1, pszLibFileRemote, TargetBufferSize, 0)
CreateRemoteThread(TargetProcessHandle, 0, 0, GetProcAddress(GetModuleHandle("Kernel32.dll"), "LoadLibraryA"), LoadLibParamAdr1, 0, 0)
Next i[/php]
This is after TargetProcessHandle and before CloseHandle.
Press Thanks if you use this and be sure to give me credit (I will know >=P)
Why are we playing around with different ways to do it? Just go with Blubb's, its simple and easy enough.
I am okay with numerous versions (unless the thread starter says solved or it is marked solved) the reason for that is it gives a user a chance to see 2-3 different versions, determine which one is best, plus compare and learn
Yes thats true =D, but i meant to try Blubb's first, since it's only one line of code. You'd be better off trying 1 line first, and if it works it works, if it works it doesn't.
If you try the big pile of code, you need to understand it if you're going to properly learn it. And then if it doesn't work, all your effort is wasted.
Get my drift?
I'm going to release an injector OS in a few minutes IMO. Just need some small fixxing...what was the code to ONLY get the filename from the openfiledialog again?
I forgot xD
nvm got it...
Last edited by Blubb1337; 04-27-2010 at 03:30 AM.
i added it to my resorses now what
Did you follow his instructions?
Youshould change the file in the code to My.Resources.DLLfilenamehere