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 › Code for Injector; Importing DLL into Listbox

Code for Injector; Importing DLL into Listbox

Posts 1–6 of 6 · Page 1 of 1
Invidus
Invidus
Code for Injector; Importing DLL into Listbox
Hey all
I'm currently working on an injector at the mo', and i need the code for adding the dll to a listbox. I'm Importing the dll from there like this, tell me if its correct;

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

If IO.File.Exists(Application.StartupPath & "\" + ListBox1.Text + ".dll") Then
Dim TargetProcess As Process() = Process.GetProcessesByName("HSUpdate")
If TargetProcess.Length = 0 Then

Else
Timer1.Stop()
Call Inject()
#1 · 16y ago
LE
LegendaryAbbo
Moved to Visual Basic section.
#2 · 16y ago
NextGen1
NextGen1
On Form Load Or Button Click
Code:
  Dim fl() As String
        Dim fn As String
        Dim fp As String
        Dim I As Integer
        fp = "directory for dlls"

        fn = Dir(fp & "*.dll") ' You can change this to a specific file if you only need one dll (as opposed to *.dll it will be filename.dll
        While fn <> ""
            I = I + 1
            ReDim Preserve fl(0 To I)
            fl(I) = fn
            fn = Dir()
        End While

        If I = 0 Then
            MsgBox("Error Control here")
            Exit Sub
        End If
        For I = 1 To UBound(fl)
            ListBox1.Items.Add(fl(I))
        Next
#3 · 16y ago
|-|3|_][({}PT3R12
|-|3|_][({}PT3R12
Nextgen your always so confusing lol. Plain and simple


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
#4 · 16y ago
NextGen1
NextGen1
Off topic

I go off my head as far as answering questions to the best I can udnerstand the question, So If I am Always confusing you or you find my answers confusing, feel free to PM me and I will Clear it up.

I don't take advantage to the luxury of copying and pasting answers found on the net or in others code examples here, so it makes it slightly more "complex" for me.

On Topic, He wanted to import a single DLL, not a list of dll's, my answer solves importing all dll's so "Yours" may be optimum here.
#5 · 16y ago
hopefordope
hopefordope
wut r u tlkin NG1 is clear as possible
#6 · 16y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • Can someone put this DLL into a tanitum injector?By zmansquared in Battlefield 2 Hacks & Cheats
    2Last post 17y ago
  • DLL Files for injectorBy asassinx1 in Combat Arms Europe Hacks
    5Last post 16y ago
  • [Help] Code for ListBoxBy Invidus in Visual Basic Programming
    5Last post 16y ago
  • [Help] How to pack a .DLL into Injector?By Invidus in Visual Basic Programming
    2Last post 16y ago
  • [Request]code for manual injectorBy /b/oss in Visual Basic Programming
    3Last post 16y ago

Tags for this Thread

None