Results 1 to 6 of 6
  1. #1
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored

    [Help] Code for ListBox

    Hi I'm currently making an Injector.
    I was wondering if anyone could help me out with the code for Importing .dll into the listbox

  2. The Following User Says Thank You to Invidus For This Useful Post:

    technologicpunk (04-10-2010)

  3. #2
    |-|3|_][({}PT3R12's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Location
    UnkwOwnS
    Posts
    449
    Reputation
    12
    Thanks
    472
    My Mood
    Twisted
    Here ya go
    (Don't C+P, make it your own)

    To Load Items
    Code:
    Dim open As New OpenFileDialog
            open.Multiselect = True
            open.Filter = "DLL Files(*.dll) |*.dll"
            open.CheckFileExists = True
            open.ShowDialog()
    
            If (open.FileName = "") Then
            Else
                For Each item As String In open.FileNames
                    Dim listItem As New ListViewItem
                    listItem.Text = item
                    Dim subItem As New ListViewItem.ListViewSubItem()
                    subItem.Text = My.Computer.FileSystem.GetName(item)
                    listItem.SubItems.Add(subItem)
                    ListView1.Items.Add(listItem)
                Next
            End If

    To Delete Items
    Code:
            For Each lrow As ListViewItem In ListView1.SelectedItems
                ListView1.Items.Remove(lrow)
            Next
    To Inject The Current Items
    Code:
    Private Sub Inject()
            Try
                For Each lrow As ListViewItem In ListView1.Items
                    Timer1.Stop()
                    Dim TargetProcess As Process() = Process.GetProcessesByName(ComboBox1.Text) 'Change to your .exe
                    TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
                    pszLibFileRemote = lrow.Text
                    pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
                    TargetBufferSize = 1 + Len(pszLibFileRemote)
                    Dim Rtn As Integer
                    Dim LoadLibParamAdr As Integer
                    LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
                    Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0)
                    CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
                    CloseHandle(TargetProcessHandle)
                    Success(1)
                    Me.Close()
                Next
            Catch es As Exception
                Success(2)
                Me.Close()
            End Try

    Credits to.... Someone


    Hope this helps

  4. The Following User Says Thank You to |-|3|_][({}PT3R12 For This Useful Post:

    HaX4LiFe! (02-20-2010)

  5. #3
    HaX4LiFe!'s Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    1,639
    Reputation
    22
    Thanks
    1,420
    oh nice |-|3|_][({}PT3R12 ty

  6. #4
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Gah. I got your code and edited it a bit, but no luck. Look I'll post a screenie.



    See?
    Everytime i try to inject, it comes up with an error that i put in. Uhm, Shall i put in the whole code? I'm not sure how to pm. You got MSN heli?

    Heli HELP PLEASE lol
    Last edited by LegendaryAbbo; 02-21-2010 at 04:28 AM. Reason: double post

  7. The Following User Says Thank You to Invidus For This Useful Post:

    technologicpunk (04-10-2010)

  8. #5
    LegendaryAbbo's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    5,243
    Reputation
    23
    Thanks
    546
    My Mood
    Relaxed
    VB section is there for a reason.

    And don't double post mang

    Moved.

  9. #6
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    He slightly modified someone else's code, PM me your code, I will fix it for you.

    And tell you what the issue was so you know for the future


     


     


     



    The Most complete application MPGH will ever offer - 68%




Similar Threads

  1. [Help] Codes for Downloading Progress[Solved]
    By karldeovbnet in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-27-2011, 04:50 AM
  2. [Help] Codes for adding sites to be blocked in Host File [Solved]
    By karldeovbnet in forum Visual Basic Programming
    Replies: 7
    Last Post: 02-26-2011, 09:30 AM
  3. [Help]Code for MultiTool
    By ~J8y~ in forum Visual Basic Programming
    Replies: 21
    Last Post: 05-03-2010, 02:20 PM
  4. [Help] Code for Reconnecting your internet at a certain time? [Tapper]
    By deathninjak0 in forum Visual Basic Programming
    Replies: 4
    Last Post: 12-13-2009, 10:31 PM
  5. Help with Request Code for Adobe Illustrator
    By Groover111 in forum General Game Hacking
    Replies: 1
    Last Post: 02-27-2008, 08:46 AM