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 › ~ DLL Injector Source Code ~

~ DLL Injector Source Code ~

Posts 1–15 of 33 · Page 1 of 3
Silk[H4x]
Silk[H4x]
~ DLL Injector Source Code ~
I saw many people asking how to do a DLL Injector, so i diceded to post a source that i made for myself...

NOTE: It is in Visual Basic 6 (VB6) You can't open it with VB.net...

You can start doing your first DLL Injector from that source...
I Hope you understand everything i made, and please don't do sh*t with it!

Have fun (The file is Attached)
#1 · edited 18y ago · 18y ago
gbitz
gbitz
Doesn't work for me, tried compiling multiple times and using it and it doesn't work.
#2 · 18y ago
Silk[H4x]
Silk[H4x]
Edit: I found an error, i fixed it, it should work now...
#3 · edited 18y ago · 18y ago
PU
punkbuster!123
thanks for the source
#4 · 18y ago
MU
MulleDK19
Thank you very much.

I'm trying to convert this to VB.NET, and works fine except one line.

(ProsH renamed to ProcessHandle)
Code:
CreateThread = CreateRemoteThread(ProcessHandle, vbNull, 0, LibAddress, DLLVirtLoc, 0, ThreadID)

The error:
Code:
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at WindowsApplication1.Form1.CreateRemoteThread(IntPtr ProcessHandle, Int64 lpThreadAttributes, IntPtr dwStackSize, IntPtr lpStartAddress, String lpParameter, Int64 dwCreationFlags, IntPtr lpThreadID)
   at WindowsApplication1.Form1.InjectDll(String DllPath, IntPtr ProcessHandle)
   at WindowsApplication1.Form1.Injection()
   at WindowsApplication1.Form1.cmdInject_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.PerformClick()
   at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
Any help is highly appreciated.
Thanks in advance.
#5 · 18y ago
RO
rotodi1234
what does it do?
#6 · 18y ago
Silk[H4x]
Silk[H4x]
Mulle, i will try to convert it to VB.net if i got any idea how to fix it, i will tell u ..
#7 · edited 18y ago · 18y ago
SC
scapecoolioboy
thanks bro help me with trying to make my first hack
#8 · 18y ago
AltF5
AltF5
Ah yes, this code I found over at PSCode.com and it is what inspired me to write my own Module(DLL/Exe) injector and ejector (Similar to unlocker)

As for the .Net problem the error appears to be "Attempted to read or write protected memory. " it probably is due to a problem with VirtualAllocEx. Ensure it is succeeded (proper return value according to MSDN) and you could try perhaps using PAGE_READWRITEEXECUTE.

I would check to ensure that all your API calls are succeeding, and if not go from there.

PS -->
Private Const MEM_RELEASE = &H8000 needs to be changed to Private Const MEM_RELEASE = &H8000& (Add "&" at the end) because we need the number to be unsigned. If it is signed it will = -32768 instead of 32768 which is what we want. (If you dont know about signed numbers google it)
Because the declaration of how it is now VirtualFreeEx is failing. (See MSDN documentation to see the proper return value that it should have for success)


Hopefully this helps.
#9 · 17y ago
SP
Spadez47
sweet, thanks. i'll check it out.
#10 · 17y ago
CA
Canada6999
Thanks silk... and just to let you know, you can update your sig thing and mark down 50 posts.
#11 · 17y ago
DE
deve48
what exactly does it do ?
#12 · 17y ago
XI
Ximbuca
Thank´s
This is very usefull
#13 · 17y ago
CA
Calster
Thanks man... Really useful
#14 · 17y ago
AD
adz0rd
hi m8 everytime i try to compile it, it comes up with this error Method or Data Member not found and it highlights this part

Code:
Private Sub Command2_Click()
  Dim sTemp As String
  CommonDialog1.FileName = "*.dll"
  CommonDialog1.ShowOpen
  Text1.Text = CommonDialog1.FileName
End Sub
it highlights
Code:
FileName
any ideas?
#15 · 17y ago
Posts 1–15 of 33 · Page 1 of 3

Post a Reply

Similar Threads

  • Combat Arms Injector Source CodeBy Melikepie in Combat Arms Discussions
    6Last post 16y ago
  • [RELEASE] FULL WORKING INJECTOR SOURCE CODEBy flameswor10 in Combat Arms Hack Coding / Programming / Source Code
    37Last post 16y ago
  • [RELEASE] FULL WORKING INJECTOR SOURCE CODEBy flameswor10 in Visual Basic Programming
    34Last post 16y ago
  • Can i Request a Good Injector Source Code?By InCapacitated in CrossFire Hack Coding / Programming / Source Code
    9Last post 15y ago
  • Injector Source CodeBy SteamAss in CrossFire Hack Coding / Programming / Source Code
    11Last post 15y ago

Tags for this Thread

#code#dll#injector#source