LoadLibrary DLL Injector

This is a simple DLL Injector that I wrote, that uses the WinAPI LoadLibrary function to load DLLs into running processes. The program is console based, takes in the mod DLL, and the target process name.

It works by getting the process ID of the target, getting a handle to the process, find the base address of the target, writing enough memory to the process to hold the DLL, and then calling LoadLibraryA to load the DLL at the starting address of the newly allocated memory.

Injecting a DLL into a game can be useful, as it allows us to edit game memory, without having access to the target's source code. For example, we could find the memory address of a player's health, and use our DLL to change it's value.

Example

Below is an example showing the program being used to inject a small mod I created, into AssaultCube.