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.
Download the latest release · Getting started · Techniques deep-dive · FAQ
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 NativeLdrLoadDllbootstrapping - ⚗️ 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
Grab TrueInjector.exe from the releases page — a single portable binary, no installer, no runtime hunt beyond the .NET Desktop Runtime 10.
git clone https://github.com/ZygoteCode/TrueInjector.git
cd TrueInjector
dotnet build TrueInjector.sln -c ReleaseOpen TrueInjector.sln in Visual Studio if you also want to rebuild the native companions (ManualMapper.dll, ThreadHijacker.dll) from their C++ sources.
- Inject → pick a process from the live list (tip:
notepadis the classic hello-world) - Drag a
.dllonto the payload panel — architecture validation happens instantly - Watch the hint under the button turn green: Ready ✓
- 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.
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.
| Stage | Choices | Notes for experts |
|---|---|---|
| 🔓 Process handle | OpenProcess + CloseHandleNtOpenProcess + NtClose | The ntdll pair skips the kernel32 thunk layer and gives cleaner handle auditing. |
| 💾 Memory allocation | VirtualAllocExNtAllocateVirtualMemoryNtCreateSectionCreateFileMappingVirtualAlloc2 | 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 write | WriteProcessMemoryNtWriteVirtualMemoryZwWriteVirtualMemoryNtCreateSection + NtMapViewOfSectionCreateFileMapping + MapViewOfFile + NtMapViewOfSection | Both transfer modes map the payload through shared sections: zero WriteProcessMemory-family events for EDRs that hook them. |
CreateRemoteThreadRtlCreateUserThreadNtCreateThreadExNtQueueApcThreadNtQueueApcThreadEx | APC modes re-use the target's own threads — the Ex variant reserves a dedicated user-APC, the quietest option in the family. |
| 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 |
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.
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)
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.
Issues and PRs are welcome! Good first targets: DPI polish, arm/disarm persistence, a light-theme selector, more exotic pipelines (instrumentation callbacks, anyone?).
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




