Skip to content

Command line utility to inject and eject DLLs

License

Notifications You must be signed in to change notification settings

nefarius/Injector

Repository files navigation

Injector

DLL injection/ejection command-line utility.

MSBuild GitHub All Releases

About

Inject any DLL into any running process with ease! Injector is a command line tool abstracting the messy injection process away from you. It can't be more simple:

Injector.exe --process-name notepad.exe --inject C:\Temp\myHooks.dll C:\Temp\myOverlay.dll

You may use it in you post-build events in Visual Studio to save time and take away complexity of code by "outsourcing" the injection process. You may of course use it for any othe scenario which comes on your mind. Check out the possible command line arguments:

  • -n|--process-name identifies the target process by its module name
    • -c|--case-sensitive makes -n case-sensitive.
  • -w|--window-name identifies the target process by its main windows name
  • -p|--process-id identifies the target process by its PID
  • -i|--inject or -e|--eject specifies the action to perform (inject or eject the DLL)

Then simply append one or more absolute (or relative) path(s) of the DLL to be in-/ejected.

Invoke Injector.exe -h for help.

Credits

Many thanks to Joshua "Cypher" Boyce who initially wrote the injection-classes and shared them with the world.

Argh! by Adi Shavit is used to parse the command-line arguments.

Downloads

Head over to Releases to download x86, x64 and ARM64 binaries.