{"id":32719097,"url":"https://github.com/florararie/injectpy","last_synced_at":"2025-11-02T18:03:19.978Z","repository":{"id":319217260,"uuid":"1050153117","full_name":"Florararie/injectpy","owner":"Florararie","description":"A lightweight DLL injector for Windows written in Python.","archived":false,"fork":false,"pushed_at":"2025-10-17T06:42:38.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T07:36:43.272Z","etag":null,"topics":["dll","dll-hooking","dll-injection","dll-injector","python","python-3","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Florararie.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-09-04T03:01:36.000Z","updated_at":"2025-10-17T04:38:30.000Z","dependencies_parsed_at":"2025-10-18T13:31:07.895Z","dependency_job_id":"c9008540-df00-4247-bf8a-a6a032e1d58d","html_url":"https://github.com/Florararie/injectpy","commit_stats":null,"previous_names":["florararie/injectpy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Florararie/injectpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florararie%2Finjectpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florararie%2Finjectpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florararie%2Finjectpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florararie%2Finjectpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Florararie","download_url":"https://codeload.github.com/Florararie/injectpy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Florararie%2Finjectpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282332561,"owners_count":26652047,"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","status":"online","status_checked_at":"2025-11-02T02:00:06.609Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dll","dll-hooking","dll-injection","dll-injector","python","python-3","python3"],"created_at":"2025-11-02T18:02:31.958Z","updated_at":"2025-11-02T18:03:19.973Z","avatar_url":"https://github.com/Florararie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# injectpy\nA lightweight DLL injector for Windows written in Python.\n\n\u003e [!WARNING]\n\u003e To avoid a Windows Defender false positive, this module disables .pyc bytecode generation only for itself, so you can use it safely alongside other Python modules.\n\u003e \n\u003e You may still get a warning if globally installing the package for the first time though.\n\n## Features\n- Inject DLLs into processes by PID or process name\n- Automatic handling of multiple processes with the same name\n- Architecture check (x86/x64) before injection\n\n## Installation\nClone the repo and install:\n\n```cmd\ngit clone https://github.com/Florararie/injectpy.git\ncd injectpy\npip install .\n```\n\n## Usage\n\nCommand-Line\n\n```cmd\nusage: injectpy [-h] [--index INDEX] [--timeout TIMEOUT] [--verbose] (--inject | --eject | --status | --list) [--force] target [dll]\n\ninjectpy DLL injection tool\n\npositional arguments:\n  target             PID (int) or process name (str)\n  dll                Path to DLL to inject/eject\n\noptions:\n  -h, --help         show this help message and exit\n  --index INDEX      Which process index if multiple\n  --timeout TIMEOUT  Timeout in ms (default 5000)\n  --verbose          Enable verbose logging\n  --inject           Inject the DLL\n  --eject            Eject the DLL\n  --status           Check if the DLL is loaded\n  --list             List processes for the target name\n  --force            Force reinject by ejecting first if already loaded\n```\n\nExample\n\n```cmd\ninjectpy notepad.exe C:\\path\\to\\my.dll --verbose --inject --timeout 5000 --index 0\n```\n\nPython API\n\n```python\nfrom injectpy import Injector, InjectionResult\n\ninjector = Injector(verbose=True)\nresult = injector.inject(\"notepad.exe\", r\"C:\\path\\to\\my.dll\")\n\nif result == InjectionResult.SUCCESS:\n    print(\"DLL injected successfully!\")\nelse:\n    print(f\"Injection failed: {result.value}\")\n```\n\n## License\n\nMIT License - see [LICENSE](/LICENSE) for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorararie%2Finjectpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorararie%2Finjectpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorararie%2Finjectpy/lists"}