An educational sample for teaching DLL injection with .NET
This repository contains four C# projects with two example batch scripts that tie it all together.
- Injector: The main project, a heavily commented sample of a basic DLL injector.
- Payload: An sample library to inject that can display a "Hello world" message to the user.
The final two projects are primarily intended to simplify the BuildAndRunSample
scripts:
- RvaDumper: A utility program for calculating the relative virtual address of a function export.
- ProcessRunner: A utility program for launching another program and returning its process ID.
The BuildAndRunSample
scripts exist to illustrate the process of injecting Payload
into Notepad and calling a function in it using Injector
.
This is free and unencumbered software released into the public domain.