Originally Posted by
J-Deezy
Hey Blubb I'm nearly done my injector...here's a SS of the GUI atm
Anyways my main query is...
With the inject() sub i was wondering...is it possible to alter this code
Code:
For i = 0 To ListBox1.Items.Count - 1
If selected.Checked = True Then
pszLibFileRemote = ListBox1.SelectedItem
Else
pszLibFileRemote = ListBox1.Items.Item(i)
End If
TargetBufferSize = 1 + Len(pszLibFileRemote)
LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0)
CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
Next i
So that instead of having the option of either injecting one selected item or all of the listbox's content...you could make it so it injects all selected items of the listbox and set the listbox's selection mode to "MultiSimple" or "MultiExtended"
I think you'd have to somehow get the selected ones out of the listbox .dat file so they can be converted to string or something I dunno... Seems pretty hard to do personally but there might be an easier way... not sure haha. I'm not a very advanced coder
Still it'd be a 1337 feature for an injector to have rather than just one or all .DLLs being injected.
thoughts?
J-Deezy
This will inject all .dlls in the listbox to one process.
Code:
Private Sub inject()
Dim LoadLibParamAdr As Integer
Dim Rtn As Integer
Dim TargetProcess As Process() = Process.GetProcessesByName(txtprocess.Text)
On Error GoTo 1 ' If error occurs, app will go below to "1:"
TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
'count each listbox item
For i = 0 To ListBox1.Items.Count - 1
pszLibFileRemote = ListBox1.Items.Item(i)
TargetBufferSize = 1 + Len(pszLibFileRemote)
LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0)
CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
Next i
CloseHandle(TargetProcessHandle)
1: labelx24.ForeColor = Color.Red
labelx24.Text = "Error occured" 'error
End Sub
//IDEA
About textbox with - don't include .exe...you do the following(just an idea):
Textbox_TextChanged
Code:
Dim exe as string = ProcessName.Text 'Textbox1.Text or whatever
If exe.contains(".exe") then
ProcessName.Text = exe.replace(".exe", "")
End if