{"id":27072609,"url":"https://github.com/jiusanzhou/injrs","last_synced_at":"2025-04-05T23:18:43.227Z","repository":{"id":105866140,"uuid":"246044509","full_name":"jiusanzhou/injrs","owner":"jiusanzhou","description":":rainbow:  injrs is a DLL injector library and tool written in Rust. Rust 实现的DLL注入工具/库。","archived":false,"fork":false,"pushed_at":"2024-02-26T01:54:10.000Z","size":19,"stargazers_count":27,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-26T02:44:04.437Z","etag":null,"topics":["dll","dll-injection","dll-injector","hook","inject","injector","rust","windows","zoe-lab"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiusanzhou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-03-09T13:35:08.000Z","updated_at":"2024-02-26T02:44:08.220Z","dependencies_parsed_at":"2024-02-26T02:54:10.317Z","dependency_job_id":null,"html_url":"https://github.com/jiusanzhou/injrs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiusanzhou%2Finjrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiusanzhou%2Finjrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiusanzhou%2Finjrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiusanzhou%2Finjrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiusanzhou","download_url":"https://codeload.github.com/jiusanzhou/injrs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411579,"owners_count":20934708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dll","dll-injection","dll-injector","hook","inject","injector","rust","windows","zoe-lab"],"created_at":"2025-04-05T23:18:42.605Z","updated_at":"2025-04-05T23:18:43.220Z","avatar_url":"https://github.com/jiusanzhou.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg alt=\"Hello Box Demo\" src=\"./hello-box-demo.png\" width=\"100\"\u003e\n\n# `injrs`\n\n**DLL injector library and tool written in Rust. Rust 实现的DLL注入工具/库**\n\n[![CI](https://github.com/jiusanzhou/injrs/actions/workflows/ci.yml/badge.svg)](https://github.com/jiusanzhou/injrs/actions/workflows/ci.yml)\n[![crates.io](https://img.shields.io/crates/v/injrs.svg)](https://crates.io/crates/injrs)\n[![Documentation](https://docs.rs/injrs/badge.svg)](https://docs.rs/injrs)\n[![dependency status](https://deps.rs/repo/github/jiusanzhou/injrs/status.svg)](https://deps.rs/repo/github/jiusanzhou/injrs)\n[![Apache-2.0](https://img.shields.io/crates/l/injrs.svg)](https://github.com/jiusanzhou/injrs/blob/master/LICENSE)\n\n\u003c/div\u003e\n\n## Install\n\nGo to [releases page](releases) download the latest binary.\n\nOr if you have rust installed, use cargo to install:\n```bash\ncargo install injrs\n```\n\nInstall rust if you don't have.\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\n\n## Usage\n\nAt most time, you can use `injrs` as a simple tool.\n\n```bash\nUSAGE:\ninjrs PROCESS_NAME/PID [Libraies...]\n\nEXAMPLES:\n1. Inject test.dll to process Calc.exe\n    $ injrs Calc.exe test.dll\n\n2. Inject test.dll and demo.dll to process with PID: 1888\n    $ injrs 1888 test.dll demo.dll\n```\n\n## DLL Demo\n\nThe code in [examples/hellobox](./examples/hellobox) is a simple message box dll for testing injector.\n\nYou can build with command:\n```bash\ncargo build --release --example hellobox\n```\n\nBuild target will locate in:\n```bash\ntarget/i686-pc-windows-msvc/release/examples/hellobox.dll\n```\n\nTry to inject the demo dll to your target process:\n```bash\ninjrs PID/PNAME target/i686-pc-windows-msvc/release/examples/hellobox.dll\n```\n\n## Usage as library\n\nYou also can write a injector project using `injrs` as a library.\n\n```rust\nuse injrs::process_windows::*;\nuse injrs::inject_windows::*;\n\nfn main() {\n    let name = \"Calc.exe\";\n    let dll = \"./my-demo-dll.dll\";\n    let process = Process::find_first_by_name(name).unwrap();\n\n    print!(\"inject dll to process =\u003e \");\n    match process.inject(dll) {\n        Err(e) =\u003e {\n            println!(\"error: {}\", e);\n        },\n        Ok(_) =\u003e {\n            println!(\"success\");\n        }\n    }\n}\n```\n\nfor more detail you can check [src/main.rs](./src/main.rs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiusanzhou%2Finjrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiusanzhou%2Finjrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiusanzhou%2Finjrs/lists"}