A CLI DLL injector written in C++ for x86 and x64 architectures. Works only on Windows. The solution also contains a basic DLL project template.
After installing the program (see Installation) you can invoke the following command from anywhere in the command line:
dlli [process name] [dll path]
Paramaters:
[process name]
- Process name of the currently running process you want to inject.[dll path]
- Filepath of the DLL file.
Example:
dlli Notepad.exe C:\DLLs\example.dll
You can either download the .exe
files from the releases page, or you can build the binaries yourself in Visual Studio (see Building).
After obtaining the files, you can add the binaries to the PATH so you can use them from anywhere in the command line.
To add the binaries to the path, you can:
- Right click the start button.
- In the search bar enter "path".
- Open "Edit the system environment variables".
- Click on "Environment Variables..." button.
- Under "System variables" section look for a variable called "Path", double click it.
- Press the "New" button and enter the folder path to your
.exe
file. (Example of the path:C:\DLL-Injector\Bin\
) - Press "Ok" and restart any open terminal windows.
After this you should be able to invoke the dlli
command from anywhere in the terminal.
To build the binaries in Visual Studio, you'll have to download the respository, open the .sln
file, choose either x86 or x64 architecture and select Build > Build Solution
.
The built binaries should be located at $(SolutionDir)Bin\$(ProjectName)\$(Configuration)-$(Platform)\
.
I don't condone any malicious use of this software. This project is something I wanted to make for learning purposes and then decided to publish it.