A simple dll injector which uses VirtualAllocEx and CreateRemoteThread to launch dll in target process. Dll Injector is a simple to use command line tool which efficiently injects dll's into almost any program:
============
Dll Injector
============
Usage:
Dllinject.exe [DLL path] [Process name]
Dllinject.exe [DLL path]
#include "injector.h"
#include <iostream> // For input / output and exceptions
int main()
{
try
{
Injector injector;
injector.attach(processName);
injector.inject(dllPath);
}
catch(const std::runtime_error& e) // To catch any exceptions
{
std::cerr << e.what() << '\n';
return 1;
}
return 0;
}