{"id":45704912,"url":"https://github.com/jokelbaf/proton-injector","last_synced_at":"2026-03-03T01:16:29.068Z","repository":{"id":329198671,"uuid":"1118549575","full_name":"jokelbaf/proton-injector","owner":"jokelbaf","description":"A DLL injector for Windows executables running under Proton with support for multiple injection methods.","archived":false,"fork":false,"pushed_at":"2026-02-24T22:43:11.000Z","size":82,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-25T03:16:41.324Z","etag":null,"topics":["c","dll-injection","linux"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jokelbaf.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T23:41:03.000Z","updated_at":"2026-02-24T22:40:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jokelbaf/proton-injector","commit_stats":null,"previous_names":["jokelbaf/proton-injector"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jokelbaf/proton-injector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokelbaf%2Fproton-injector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokelbaf%2Fproton-injector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokelbaf%2Fproton-injector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokelbaf%2Fproton-injector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jokelbaf","download_url":"https://codeload.github.com/jokelbaf/proton-injector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokelbaf%2Fproton-injector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30028630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T00:31:48.536Z","status":"ssl_error","status_checked_at":"2026-03-03T00:30:56.176Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","dll-injection","linux"],"created_at":"2026-02-25T00:08:46.800Z","updated_at":"2026-03-03T01:16:29.040Z","avatar_url":"https://github.com/jokelbaf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proton DLL Injector\n\n[![Build](https://github.com/jokelbaf/proton-injector/actions/workflows/build.yml/badge.svg)](https://github.com/jokelbaf/proton-injector/actions/workflows/build.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA DLL injector for Windows executables running under Proton/Wine on Linux. Supports both 32-bit and 64-bit targets, multiple injection methods, and Steam runtime integration for games that use the Steam API.\n\n## Download\n\n[Latest automated build](https://nightly.link/jokelbaf/proton-injector/workflows/build/master/proton-injector.zip)\n\n## Features\n\n- 32-bit and 64-bit injection\n- Four injection methods: Standard, APC, NT, Hook\n- Multi-step injection with automatic fallbacks (PEB walk, VM query, toolhelp)\n- Steam runtime integration (reaper/launch wrapper) for Steam API authentication\n- umu-run support for non-Steam games\n- Zenity-based GUI for both Steam and non-Steam workflows\n- Process suspension during injection for reliability\n- Detailed logging\n\n## Injection Methods\n\n| Method | Function | Stealth | Compatibility |\n|--------|----------|---------|---------------|\n| `standard` | CreateRemoteThread | Low | Highest |\n| `apc` | QueueUserAPC | Medium | High |\n| `nt` | NtCreateThreadEx | High | High |\n| `hook` | SetWindowsHookExA | High | Medium |\n\nAll methods use `LoadLibraryA` from `kernel32.dll`. The address of `LoadLibraryA` is resolved in the target process rather than assumed from the injector's own address space; module resolution goes through three stages: PEB walk, virtual memory query (`NtQueryVirtualMemory`), and toolhelp snapshot, falling back automatically if earlier methods fail.\n\n## Building\n\nRequires MinGW-w64 cross-compilers and `make`.\n\n```bash\n# Ubuntu/Debian\nsudo apt install mingw-w64 make\n\n# Arch Linux\nsudo pacman -S mingw-w64-gcc make\n```\n\n```bash\nmake\n```\n\nProduces `bin/injector32.exe` and `bin/injector64.exe`. The correct binary is selected automatically by the helper scripts based on the target executable.\n\n## Usage\n\n### GUI\n\nThe GUI requires [Zenity](https://gitlab.gnome.org/GNOME/zenity). It auto-detects Steam libraries, installed games, and available Proton versions.\n\n```bash\n./scripts/gui.sh\n```\n\nSelect \"Steam Game\" for games with Steam API, or \"Non-steam Game\" for anything else (requires [umu-run](https://github.com/Open-Wine-Components/umu-launcher)).\n\n### Steam Games (`inject.sh`)\n\nFor games installed through Steam. Handles compatdata detection across multiple Steam library folders, sets up Steam environment variables, and wraps the launch with Steam's `reaper` for proper API authentication.\n\n```bash\nAPPID=945360 ./scripts/inject.sh \\\n    \"$HOME/.local/share/Steam/steamapps/common/Among Us/Among Us.exe\" \\\n    /path/to/your.dll\n\n# With custom Proton path and injection method\nAPPID=945360 PROTON_PATH=/path/to/GE-Proton/proton ./scripts/inject.sh \\\n    /path/to/game.exe /path/to/mod.dll --method apc\n```\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `APPID` | Steam App ID | `0` |\n| `PROTON_PATH` | Path to Proton executable | `proton-ge` |\n| `STEAM_COMPAT_CLIENT_INSTALL_PATH` | Steam installation path | Auto-detected |\n| `STEAM_COMPAT_DATA_PATH` | Proton compatdata path | Auto-detected from `APPID` |\n| `SLEEP` | Delay before injection in ms | `0` |\n\n### Non-Steam Games (`umu.sh`)\n\nFor games outside of Steam, [umu-run](https://github.com/Open-Wine-Components/umu-launcher) is used to manage the Proton runtime.\n\n```bash\nPROTONPATH=/path/to/GE-Proton ./scripts/umu.sh \\\n    /path/to/game.exe /path/to/mod.dll\n\n# With custom Wine prefix\nPROTONPATH=/path/to/GE-Proton WINEPREFIX=~/.my-prefix ./scripts/umu.sh \\\n    /path/to/game.exe /path/to/mod.dll --method nt\n```\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `PROTONPATH` | Path to Proton directory (required) | - |\n| `WINEPREFIX` | Wine prefix path | `~/.proton-injector/pfx` |\n| `GAMEID` | Game ID for umu-run | `0` |\n| `SLEEP` | Delay before injection in ms | `0` |\n\n### Direct Usage\n\n```bash\n# Inside a Proton/Wine environment\ninjector64.exe \"Z:\\path\\to\\game.exe\" \"Z:\\path\\to\\mod.dll\" --method apc --log-file \"Z:\\path\\to\\injector.log\"\n```\n\nOptions:\n- `--method \u003ctype\u003e` -- Injection method: `standard`, `apc`, `nt`, `hook` (default: `standard`)\n- `--log-file \u003cpath\u003e` -- Log file path (Windows-style Z: paths when under Proton)\n- `--sleep \u003cms\u003e` -- Delay in milliseconds before injection (default: `0`)\n\n## How It Works\n\n1. Creates the target process in a suspended state\n2. Waits for `kernel32.dll` to load in the target (PEB polling)\n3. Resolves `LoadLibraryA` in the remote `kernel32.dll` via multi-step module lookup (PEB walk -\u003e VM query -\u003e toolhelp)\n4. Writes the DLL path into the target process's memory\n5. Executes injection using the selected method\n6. Resumes the process and waits for exit\n\n## Acknowledgements\n\nSpecial thanks to the following people for their contributions:\n- [CrayzyEyezz](https://github.com/CrayzyEyezz) for the GUI design and help with testing.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n## Disclaimer\n\nThis tool is intended for educational purposes and legitimate modding. Use responsibly and only with software you have the right to modify.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjokelbaf%2Fproton-injector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjokelbaf%2Fproton-injector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjokelbaf%2Fproton-injector/lists"}