Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help] Code for ListBox

[Help] Code for ListBox

Posts 1–6 of 6 · Page 1 of 1
Invidus
Invidus
[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
#1 · 16y ago
|-|3|_][({}PT3R12
|-|3|_][({}PT3R12
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
#2 · 16y ago
HaX4LiFe!
HaX4LiFe!
oh nice |-|3|_][({}PT3R12 ty
#3 · 16y ago
Invidus
Invidus
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
#4 · edited 16y ago · 16y ago
LE
LegendaryAbbo
VB section is there for a reason.

And don't double post mang

Moved.
#5 · 16y ago
NextGen1
NextGen1
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
#6 · 16y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help] Code for Reconnecting your internet at a certain time? [Tapper]By deathninjak0 in Visual Basic Programming
    4Last post 16y ago
  • [Help]Code for MultiToolBy ~J8y~ in Visual Basic Programming
    21Last post 16y ago
  • [Help] Codes for adding sites to be blocked in Host File [Solved]By karldeovbnet in Visual Basic Programming
    7Last post 15y ago
  • [Help] Codes for Downloading Progress[Solved]By karldeovbnet in Visual Basic Programming
    5Last post 15y ago
  • Help with Request Code for Adobe IllustratorBy Groover111 in General Game Hacking
    1Last post 18y ago

Tags for this Thread

None