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 › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Spammers, Injectors and Multi Tools › [Open Source] Injection Library - C#

[Open Source] Injection Library - C#

Posts 1–15 of 84 · Page 1 of 6
…
Jason
Jason
[Open Source] Injection Library - C#
Wazzzuuuup.

Been working on this for a while now. It's a .NET library with various injection methods which make it very straightforward to make your own injectors/loaders. It even includes a public Manual Map injection method.

Although the source is in C#, the compiled library is usable in both VB.NET and C#, depending on your language preferences. I have included both the raw binary as well as the project folder in the attachments to this post.

The source is fairly documented, but I get lazy so there may be sections that you'll need to work out for yourself when looking into the source. The project targets .NET 2.0, so there should be no compatibility issues with projects you want to make.

To use the library, simply create a new .NET project and add the library as a project reference. (Project >> Add Reference >> Browse >> Locate DLL)

I've implemented this library using a factory pattern, so using the various different injection methods are very straightforward. All the various types of injection inherit from the base "InjectionMethod" class, which implements two different methods for injecting.

Code:
Inject(...)           // inject a single module
or
InjectAll(...)        // inject a range of modules
Both of these methods have various overloads but the key point is that each method can either inject from a PortableExecutable object, or from a file location. A PortableExecutable object can be created in-memory, or from a file location. This means that when using ManualMap injection, it's possible to inject a DLL without it ever touching the harddisk during the injection process. Standard/ThreadHijack methods both call LoadLibrary, so even if you pass a PortableExecutable object to these injection methods, the module will be written to disk in a random location.

The two main namespaces you'll likely refer to are going to be
Code:
C#
using InjectionLibrary;
using JLibrary.PortableExecutable;

VB.NET
Imports InjectionLibrary
Imports JLibrary.PortableExecutable
Example 1: Using the creation factory to make an injection method
Code:
C# -
InjectionMethod injector = InjectionMethod.Create(InjectionMethodType.ManualMap);

VB.NET -
Dim injector As InjectionMethod = InjectionMethod.Create(InjectionMethodType.ManualMap)
Example 2: Super-stealthy injection from resources.
Code:
C# -
var injector = InjectionMethod.Create(InjectionMethodType.ManualMap);
var processId = Process.GetProcessesByName("engine")[0].Id;
var hModule = IntPtr.Zero;

using (var img = new PortableExecutable(Properties.Resources.TestDll))
    hModule = injector.Inject(img, processId);

if (hModule != IntPtr.Zero)
{
    // injection was successful
}
else
{
    // injection failed
    if (injector.GetLastError() != null)
        MessageBox.Show(injector.GetLastError().Message);
}




VB.NET -
Dim injector As InjectionMethod = InjectionMethod.Create(InjectionMethodType.ManualMap)
Dim processId As Integer = Process.GetProcessesByName("engine")(0).Id
Dim hModule As IntPtr = IntPtr.Zero

Using img As New PortableExecutable(My.Resources.TestDll)
    hModule = injector.Inject(img, processId)
End Using

If hModule <> IntPtr.Zero
    ' injection successful
Else
    ' injection failed
    If injector.GetLastError() IsNot Nothing
        MessageBox.Show(injector.GetLastError().Message)
    End If
End If
Virus Scans
Binary:
[x][x]
Source:
[x][x]

That's about the crux of it, the injector is on x86 compatible, meaning you won't be able to inject into x64 processes, but that shouldn't be too much of an issue. If you have any other questions about using the library, just ask in the thread.
The library is released under the GNU GPL, so you're free to use the library however you wish, I'm not responsible for whatever you make with it though, and I ask for a mention if you release an injector/loader using my library, nothing fancy just an acknowledgement of my work.

Cheers,
Jason
InjectionLibrary - Binary_mpgh.net.zip InjectionLibrary - Source_mpgh.net.zip
#1 · edited 12y ago · 13y ago
BACKD00R
[MPGH]BACKD00R
Approved!!
#2 · 13y ago
lolzinho25
lolzinho25
Nice job..
#3 · 13y ago
LI
LilGho$t
very nice, looks good. Thanks for manual mapping btw
#4 · 13y ago
Broderick
Broderick
Looks amazeballs. I bet you have a massive penis.
#5 · 13y ago
Hell_Demon
Hell_Demon
Finally, you lazy ass
#6 · 13y ago
Nightmare
Nightmare
Great job dude.
#7 · 13y ago
master131
[MPGH]master131
Lub you Jason, I already added the Manual Map to my injector before you released this.
#8 · 13y ago
Jason
Jason
Quote Originally Posted by master131 View Post
Lub you Jason, I already added the Manual Map to my injector before you released this.
So did I :3

http://www.mpgh.net/forum/292-combat...injection.html
#9 · 13y ago
DA
DawgiiStylz
@Jason and @master131

I always acknowledge ya's work.
I'm a fan
#10 · 13y ago
SL
Slendyy
Nice work man!!
#11 · 13y ago
Jason
Jason
Quote Originally Posted by master131 View Post
Lub you Jason, I already added the Manual Map to my injector before you released this.
Only because I gave you the source before I released this
#12 · 13y ago
saqib31
saqib31
Well Done but which code works with C++ ?
#13 · 13y ago
Flengo
[MPGH]Flengo
Thanks a lot Jason! I only know C# and C++ and I was having tough time finding some help on injection. This will help me out and understand.

Going to be using this in a loader for my new hack
#14 · 13y ago
DA
DawgiiStylz
Not 64 bit compatible
#15 · 13y ago
Posts 1–15 of 84 · Page 1 of 6
…

Post a Reply

Similar Threads

  • Pokemon Cyrus (Open Source Server and Client) But Need Encryption Lock HelpBy valadon in General Hacking
    0Last post 18y ago
  • Combat Arms Utilities Open Source ProjectBy User1 in Combat Arms Hacks & Cheats
    28Last post 16y ago
  • Open Source Release. Semi-Useless Timer Source Code!By User1 in Visual Basic Programming
    6Last post 16y ago
  • [Tutorial] Finding Source Code of Not Open Source ProgramsBy treeham in C++/C Programming
    21Last post 16y ago

Tags for this Thread

None