Skip to content

About

Advanced DLL Injector for x86/x64 processes entirely written in C# & C++, which can switch to different native functions in realtime, with also Thread Hijacking + Manual Mapping!

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Repository files navigation

💉 TrueInjector

The precision DLL injector for Windows x64 — rebuilt from scratch on WPF

Load, map, hijack or natively inject any DLL into any running process in three clicks.

Release .NET Windows 10 | 11 Arch License UI

Download the latest release · Getting started · Techniques deep-dive · FAQ


TrueInjector main window: live process list with real application icons, payload drop zone and one-click injection


🙂 Why TrueInjector?

Most injectors are gray WinForms boxes written in 2015. TrueInjector pairs a battle-tested injection core — every API path hand-ported and verified 1:1 — with a modern, animated WPF interface that respects your eyes and your CPU:

  • 🎯 Four proven methods — Standard LoadLibrary, Manual Mapping, Thread Hijacking and Native LdrLoadDll bootstrapping
  • ⚗️ 100+ API permutations — mix and match allocation, write, execution and handle primitives freely
  • 👁️ Live process insight — real icons extracted from executables, instant filtering, automatic architecture checks before you fire
  • ⏰ Startup Watchdog — arm it once and the payload lands the millisecond a process appears
  • 🕵️ Payload cloaking — randomized on-disk copies and hidden attributes with one toggle
  • 📻 Activity console — every operation timestamped and color-coded, forensics-grade
  • 🕊 Feather-light — pure Win32 P/Invoke under the hood. No Guna, no MahApps, no DevExpress. Zero third-party UI runtime
  • 💎 Genuinely beautiful — custom-window chrome, sliding nav pill, page transitions, toasts, spring-eased switches

Techniques page with method cards and pipeline knobs
🎛️ Techniques — assemble your own loader chain, resolved pipeline previewed live
Watchdog page with arm toggle and payload cloaking switches
⏰ Watchdog — patrol the system and auto-fire at process birth
Activity console with timestamped injection log
📡 Activity — a forensic-grade log of every operation
Built-in beginner guide with numbered walkthrough
📖 Guide — a full beginner course ships inside the app

🚀 Getting Started

📥 Download

Grab TrueInjector.exe from the releases page — a single portable binary, no installer, no runtime hunt beyond the .NET Desktop Runtime 10.

🔧 From source

git clone https://github.com/ZygoteCode/TrueInjector.git
cd TrueInjector
dotnet build TrueInjector.sln -c Release

Open TrueInjector.sln in Visual Studio if you also want to rebuild the native companions (ManualMapper.dll, ThreadHijacker.dll) from their C++ sources.

▶️ First run — 60 seconds to your first injection

  1. Inject → pick a process from the live list (tip: notepad is the classic hello-world)
  2. Drag a .dll onto the payload panel — architecture validation happens instantly
  3. Watch the hint under the button turn green: Ready ✓
  4. Click Inject payload (or Ctrl+I). Done. 🎉

💡 Verify it worked: run Process Explorer — your DLL shows up in the target's module list, colors and all.


🧪 Injection Techniques Deep-Dive

Every Standard-method pipeline is assembled left-to-right from these building blocks. All of them are original API surface — no wrappers hiding the interesting parts.

StageChoicesNotes for experts
🔓 Process handleOpenProcess + CloseHandle
NtOpenProcess + NtClose
The ntdll pair skips the kernel32 thunk layer and gives cleaner handle auditing.
💾 Memory allocationVirtualAllocEx
NtAllocateVirtualMemory
NtCreateSection
CreateFileMapping
VirtualAlloc2
Section-backed allocation pre-commits with a shared view — paired with the section-transfer write, the target never sees a write call at all.
🖋️ Memory writeWriteProcessMemory
NtWriteVirtualMemory
ZwWriteVirtualMemory
NtCreateSection + NtMapViewOfSection
CreateFileMapping + MapViewOfFile + NtMapViewOfSection
Both transfer modes map the payload through shared sections: zero WriteProcessMemory-family events for EDRs that hook them.
▶️ Remote executionCreateRemoteThread
RtlCreateUserThread
NtCreateThreadEx
NtQueueApcThread
NtQueueApcThreadEx
APC modes re-use the target's own threads — the Ex variant reserves a dedicated user-APC, the quietest option in the family.

🧭 The exotic three

Method Mechanism Trade-offs
🗺️ Manual Mapping ManualMapper.dll re-implements the loader: PE parse, import resolution, relocations, TLS callbacks, SEH — then jumps to the entry point via hand-crafted x64 shellcode. The DLL never joins the target's module list. Stealthiest; needs a C++ companion DLL
🪃 Thread Hijacking Suspends a victim thread the process already owns, swaps its context to shellcode, resumes it. No new-thread events; slightly more fragile
🧬 Native Loading ntdll's LdrLoadDll driven by a ~50-byte stub (mov r8, &UNICODE_STRING; call rax; SleepEx), planted through section mapping and NtCreateThreadEx. Middle path: no kernel32 thread creation, still system-loader-clean

🐇 Performance

Measured on a mid-range laptop (Ryzen 5, NVMe, Windows 11):

Operation Cost
Cold start → interactive < 700 ms
Full process scan (≈250 processes, icons resolved lazily) ~120 ms, debounced on a 4 s heartbeat
Injection (Standard, section transfer + APC) single-digit ms of user-mode work
Idle RAM footprint ~60 MB working set
Steady-state CPU when idle ≈ 0% (two cheap timers, no busy loops)

Engineering choices that make it fast: pixel-unit list virtualization with deferred caching, in-place scan merging (selection and scroll survive refreshes), per-name icon caching across processes, debounced search, and stackalloc-based PE header parsing.


🏗 Architecture

TrueInjector/
├── Core/                     ← the engine room (pure C#, zero deps)
│   ├── InjectionEngine       ← every allocation/write/exec/handle path, hand-ported
│   ├── NativeLoader          ← LdrLoadDll bootstrap with custom x64 stub
│   ├── PortableExecutable    ← stackalloc PE reader (machine, DLL flag, entry point)
│   ├── ProcessScanner        ← live enumeration + Wow64 checks
│   └── ProcessIconProvider   ← cached SHDefExtractIcon plumbing
├── Models/                   ← domain types, readiness states, activity events
├── Theme/                    ← hand-written design system: palette, glyphs, controls
├── UI/
│   ├── MainWindow            ← custom chrome, nav-pill animation, toasts
│   └── Pages/                ← Inject · Techniques · Watchdog · Activity · Guide · About
└── ManualMapper/, ThreadHijacker/   ← native C++ companions (loaded on demand)

❓ FAQ

Is a 32-bit flavor supported?
TrueInjector itself is a 64-bit process and speaks to 64-bit targets. A 32-bit payload is rejected up-front by the readiness checker — rebuild your DLL for x64.
Does it need administrator rights?
Only to touch elevated or protected processes. For regular user processes, asInvoker is enough.
Will antivirus complain?
Injection tooling looks offensive by nature, so heuristic engines may raise eyebrows. The full source is here — audit every line before you trust any binary, ours included.
Where do ManualMapper.dll and ThreadHijacker.dll come from?
They ship in the releases and build from the C++ projects in this very solution. Without them, Standard and Native Loading remain fully functional.
Can I inject into games with anti-cheat?
Technically the mechanics work everywhere, but anti-cheat vendors ban first and ask later. Check the target's terms — and use the safest pipeline (Native Loading, APC execution) when permitted.

🤝 Contributing

Issues and PRs are welcome! Good first targets: DPI polish, arm/disarm persistence, a light-theme selector, more exotic pipelines (instrumentation callbacks, anyone?).

📄 License

MIT — see LICENSE. Built by ZygoteCode and friends.

People who find this useful also search for: DLL injector for Windows 10 · DLL injection x64 · manual mapping C# · thread hijacking tutorial · LoadLibraryW example · LdrLoadDll injection · NtCreateThreadEx APC injection · modern WPF dark UI · open-source DLL injector · game modding tools · reverse engineering utilities · PE manual mapper · remote thread injection

About

Advanced DLL Injector for x86/x64 processes entirely written in C# & C++, which can switch to different native functions in realtime, with also Thread Hijacking + Manual Mapping!

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages