
Originally Posted by
hejsan
[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]
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)