An open API service indexing awesome lists of open source software.

https://github.com/nefarius/injector

Command line utility to inject and eject DLLs
https://github.com/nefarius/injector

api-hook api-hooking dll dll-injection

Last synced: 2 months ago
JSON representation

Command line utility to inject and eject DLLs

Awesome Lists containing this project

README

        

# Injector

DLL injection/ejection command-line utility.

[![MSBuild](https://github.com/nefarius/Injector/actions/workflows/msbuild.yml/badge.svg)](https://github.com/nefarius/Injector/actions/workflows/msbuild.yml) [![GitHub All Releases](https://img.shields.io/github/downloads/nefarius/Injector/total)](https://somsubhra.github.io/github-release-stats/?username=nefarius&repository=Injector)

## 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](https://web.archive.org/web/20160316200123/http://www.raptorfactor.com/) who initially wrote the injection-classes and shared them with the world.

[Argh! by Adi Shavit](https://github.com/adishavit/argh) is used to parse the command-line arguments.

## Downloads

Head over to [Releases](https://github.com/nefarius/Injector/releases/latest) to download x86, x64 and ARM64 binaries.