https://github.com/rdbo/rust-injector
Shared Library Injector for Linux written in Rust
https://github.com/rdbo/rust-injector
Last synced: about 1 year ago
JSON representation
Shared Library Injector for Linux written in Rust
- Host: GitHub
- URL: https://github.com/rdbo/rust-injector
- Owner: rdbo
- License: agpl-3.0
- Created: 2022-02-06T20:38:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-09T22:07:34.000Z (over 4 years ago)
- Last Synced: 2025-04-10T01:15:15.353Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 36.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Injector
Shared library injector for Linux written in Rust
## License
Read the file `LICENSE`
## Usage
Requires root access
```
[ Rust Injector ] by rdbo
====================
usage: ./rust-injector [-n NAME][-f FILENAME][-p PID] SHARED_LIB
```
## Building
The output binary will be located at: `target/release/rust-injector`
```
cargo build --release
```
## Status
- x86_64: Working
- x86_32: Not fully working
## Notes
This is my first Rust project, so don't expect best quality code
Everything was written from scratch in pure Rust
Requires the `nix` and `regex` packages
## PoC
Terminal Logs:
```
$ cargo build && sudo ./target/debug/rust-injector -f test ~/Documents/Repos/libtest/libtest.so
[ Rust Injector ] by rdbo
====================
```
...
```
Library handle: 0x55db721be6f0
====================
Injected successfully!
```
Target Process:
```
$ ./test
Waiting...
Waiting...
Waiting...
Injected!
Waiting...
Waiting...
```