Contact: Instagram: 0x.ans
___ __ __ ____ _ __ _
/ _ \/ / / / ____/ _/__ (_)__ ____/ /_(_)__ ___
/ // / /__/ /_/___// // _ \ / / -_) __/ __/ / _ \/ _ \
/____/____/____/ /___/_//_/_/ /\__/\__/\__/_/\___/_//_/
|___/ @0xans
This Rust tool is designed for injecting DLLs into processes on Windows. It includes an example project for creating a DLL that pops up a MessageBox, which can then be injected into any target process.
- Rust (stable toolchain)
- Windows environment
cargo
package manager
-
Clone the repository:
git clone https://github.com/0xans/DLLinjection.git
-
Go to the project directory:
cd DLLinjection
-
Creating the DLL: There is a tool included in this project to help you create the DLL using the
messagebox.rs
example provided. This example generates a simple DLL that triggers a MessageBox in the target process.To build the DLL:
cargo build --release --target x86_64-pc-windows-gnu
The resulting DLL file (
messagebox.dll
) will be in thetarget/release/
directory. -
Building the injector: Go to the injector directory and build the injector tool:
cd injector cargo build --release --target x86_64-pc-windows-gnu
Run the injector by specifying the target process and the path to the DLL file:
./injector.exe -p <PID> -d <dll_file>
-p
,--pid
: The target PID for injection.-d
,--dll
: The path to the DLL file (must be a compiled Windows DLL).
To inject a DLL into a target process with PID 5678
:
./injector.exe -p 5678 -d ./target/release/messagebox.dll
For any questions or issues, feel free to reach out on Instagram: 0x.ans.