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] Loader don't Inject

[Help] Loader don't Inject

Posts 1–13 of 13 · Page 1 of 1
GO
Goku_SSJ3
[Help] Loader don't Inject
My Code:

Code:
    Private Sub Inject()
        On Error GoTo 1
        Timer1.Stop()
        Dim TargetProcess As Process() = Process.GetProcessesByName("Engine")
        TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
        pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
        pszLibFileRemote = "Hack.dll"
        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)
1:      Me.Close()
    End Sub
Code:
        Dim appdata As String = Environment.SpecialFolder.ApplicationData

        Dim extractpath As String = appdata & "Hack.dll"

        IO.File.WriteAllBytes(extractpath, My.Resources.Hack)

        If System.IO.File.Exists(extractpath) = True Then

            Dim TargetProcess As Process() = Process.GetProcessesByName("Engine")
            If TargetProcess.Length = 0 Then
                Me.Label1.Text = ("Waiting for PROCESS.exe")
            Else
                Timer1.Stop()
                Me.Label1.Text = "Done..."
                Call Inject()
            End If
        Else
            Me.Label1.Text = ("" + ExeName + ".dll not found")
        End If
    End Sub
PS: Hack.dll in Resources!

But don't Injet...
#1 · 15y ago
master131
[MPGH]master131
How does your Inject code even inject the DLL when there is no full path or anything there, just 'Hack.dll'?
Learn to code before copying and pasting. If you observe your code properly you can see that it extracts to ApplicationData!
#2 · edited 15y ago · 15y ago
GO
Goku_SSJ3
Error is here:

Code:
pszLibFileRemote = "Hack.dll"
#3 · 15y ago
LY
Lyoto Machida
Put the Hack.dll on the .exe folder then do this:

Code:
pszLibFileRemote = Application.StartupPath & "\" & "Hack.dll"

But if you want on resources try this:
Code:
pszLibFileRemote = My.Resources.Hack_dll
Something like that
#4 · edited 15y ago · 15y ago
master131
[MPGH]master131
Code:
Dim extractpath As String = appdata & "Hack.dll"
should be:
Code:
Dim extractpath As String = appdata & "\Hack.dll"
Code:
pszLibFileRemote = "Hack.dll"
should be:
Code:
pszLibFileRemote = Environment.SpecialFolder.ApplicationData & "\Hack.dll"
#5 · 15y ago
Jason
Jason
master, putting "Hack.dll" will simply make the application look for a file named "Hack.dll" in the startup path.

@ topic. If you have the .dll in resources simply do this:
[highlight=vb.net]
IO.File.WriteAllBytes("Hack.dll", My.Resources.Hack)
[/highlight]

THEN call Inject()
#6 · 15y ago
GO
Goku_SSJ3
I Try, and don't work :S

Code:
pszLibFileRemote = System.Text.Encoding.ASCII.GetString(My.Resources.Hack)
Code:
        IO.File.WriteAllBytes("Hack.dll", My.Resources.Hack)

        Dim TargetProcess As Process() = Process.GetProcessesByName("HSUpdate")

        If TargetProcess.Length = 0 Then
            Me.Label1.Text = ("Waiting for PROCESS.exe")
        Else
            Timer1.Stop()
            Me.Label1.Text = "Done..."
            Call Inject()
        End If

    End Sub
Print dll in Resource
\/
#7 · edited 15y ago · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Jason View Post
master, putting "Hack.dll" will simply make the application look for a file named "Hack.dll" in the startup path.

@ topic. If you have the .dll in resources simply do this:
[highlight=vb.net]
IO.File.WriteAllBytes("Hack.dll", My.Resources.Hack)
[/highlight]

THEN call Inject()
yea ^^
Finally, I were thinking to answer this, but I saw ur post Jason, and urr!!!! Fuck is it possible to beat you on post an answer?
Marked as solved?
#8 · 15y ago
GO
Goku_SSJ3
Quote Originally Posted by 3Li0 View Post
yea ^^
Finally, I were thinking to answer this, but I saw ur post Jason, and urr!!!! Fuck is it possible to beat you on post an answer?
Marked as solved?
Hei.. i need fix it: pszLibFileRemote
#9 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Goku_SSJ3 View Post
Hei.. i need fix it: pszLibFileRemote
what's wrong with it?
#10 · 15y ago
Alessandro10
Alessandro10
pszLibFileRemote = Environment.SpecialFolder.ApplicationData & "\Hack.dll" is Wrong, i tested and not inject.

Correct is: pszLibFileRemote == Resouces (Dll)

Its declarated String:
Code:
 Private pszLibFileRemote As String
And Dll is Byte lol
#11 · edited 15y ago · 15y ago
Jason
Jason
Read my post Goku. The pszLibFileRemote is the location so change you code to this:

[highlight=vb.net]
IO.File.WriteAllBytes("hack.dll", My.Resources.Hack)
pszLibFileRemote = "hack.dll"
[/highlight]

pl0x l2vb before leeching injectors.
#12 · 15y ago
IA
Iamazn1
Quote Originally Posted by Alessandro10 View Post
pszLibFileRemote = Environment.SpecialFolder.ApplicationData & "\Hack.dll" is Wrong, i tested and not inject.

Correct is: pszLibFileRemote == Resouces (Dll)

Its declarated String:
Code:
 Private pszLibFileRemote As String
And Dll is Byte lol
1) If you knew how the code actually worked, you'd know why it's a string and not a byte array.
2) A DLL is an array of bytes, not a single byte.
#13 · 15y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Tags for this Thread

None