[HELP] List box won't work?
Ok my loader has a listbox obviously and I've gotten help on streaming the hacks before the download code is the 1 I got from J-Deezy there is a problem the dll gets added to the listbox BUT its just acting like its added but its really not yeah it will add the file path and name etc. but it doesn't inject the actual dll it just acts like it does and moves along with its business >.> Check my code please there might be a problem I dunno yet.
Here is the download code
Oh here is my timer
Code:
Private Sub Inject()
On Error GoTo 1 ' If error occurs, app will close without any error messages
Timer1.Stop()
Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
TargetBufferSize = 1 + Len(filename)
Dim Rtn As Integer
Dim LoadLibParamAdr As Integer
LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, filename, TargetBufferSize, 0)
CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
CloseHandle(TargetProcessHandle)
1: Me.Show()
End Sub
Code:
Private Sub DownloadSt (ByVal url As String, ByVal folder As String)
Dim client As Net.WebClient = WebClient1
Dim lio As Integer = url.LastIndexOf("/") + 1
filename = url.Substring(lio)
Dim location As String = folder
totalpath = location & "\" & filename ''
If Not IO.File.Exists(totalpath) Then
client.DownloadFile(url, totalpath)
Dlls.Items.Add(filename)
End If
End Sub
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If CheckBox1.Checked = True Then
Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
If TargetProcess.Length = 0 Then
Me.Label1.Text = ("Waiting for " + TextBox1.Text + ".exe...")
Else
Timer1.Stop()
Me.Label1.Text = "Successfully Injected!"
Call Inject()
If CheckBox1.Checked = True Then
Me.Close()
Else
End If
End If
End If
End Sub
Win 