{"id":13827104,"url":"https://github.com/jondonym/peinjector","last_synced_at":"2025-07-09T03:31:04.719Z","repository":{"id":144325762,"uuid":"42329478","full_name":"JonDoNym/peinjector","owner":"JonDoNym","description":"peinjector - MITM PE file infector","archived":false,"fork":false,"pushed_at":"2016-05-11T14:22:47.000Z","size":12953,"stargazers_count":598,"open_issues_count":0,"forks_count":120,"subscribers_count":63,"default_branch":"master","last_synced_at":"2024-11-20T06:34:15.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonDoNym.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}},"created_at":"2015-09-11T20:00:32.000Z","updated_at":"2024-10-31T21:03:39.000Z","dependencies_parsed_at":"2024-01-07T22:50:10.692Z","dependency_job_id":"be0baf5e-1d36-4dcd-959e-c32a139c6dd6","html_url":"https://github.com/JonDoNym/peinjector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/JonDoNym/peinjector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonDoNym%2Fpeinjector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonDoNym%2Fpeinjector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonDoNym%2Fpeinjector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonDoNym%2Fpeinjector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonDoNym","download_url":"https://codeload.github.com/JonDoNym/peinjector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonDoNym%2Fpeinjector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264386258,"owners_count":23599964,"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":[],"created_at":"2024-08-04T09:01:50.160Z","updated_at":"2025-07-09T03:31:01.917Z","avatar_url":"https://github.com/JonDoNym.png","language":"C","funding_links":[],"categories":["\u003ca id=\"42f9e068b6511bcbb47d6b2b273097da\"\u003e\u003c/a\u003e未分类"],"sub_categories":["\u003ca id=\"3bd67ee9f322e2c85854991c85ed6da0\"\u003e\u003c/a\u003e投毒\u0026\u0026Poisoning"],"readme":"# peinjector\n\n_Visit us at https://peinjector.eu/_\n\n## Description\nThe executable file format on the Windows platform is PE COFF. The peinjector provides different ways to infect these files with custom payloads without changing the original functionality. It creates patches, which are then applied **seamlessly during file transfer**. It is very performant, lightweight, modular and can be **[operated on embedded hardware](https://github.com/JonDoNym/peinjector/wiki/Guide:-Raspberry-Pi-image)**.\t\n\n## Features\n-\tFull x86 and x64 PE file support.\n-\tOpen Source\n-\tFully working on Windows and Linux, including automated installation scripts.\n-\tCan be  operated on embedded hardware, tested on a [Rasperberry Pi 2](https://github.com/JonDoNym/peinjector/wiki/Guide:-Raspberry-Pi-image).\n-\tOn Linux, all servers will be automatically integrated as service, no manual configuration required.\n-\tPlain C, no external libraries required (peinjector). \n-\tMITM integration is available in C, Python and Java. A sample Python MITM implementation is included.\n-\tFoolproof, mobile-ready web interface. Anyone who can configure a home router can configure the injector server.\n-\tEasy to use integrated shellcode factory, including reverse shells, meterpreter, ... or own shellcode. Everything is available in 32 and 64 bit with optional automated encryption. Custom shellcode can be injected directly or as a new thread. \n-\tAn awesome about page and much more, check it out.\n\n## Installation\n[Installation Guide](https://github.com/JonDoNym/peinjector/wiki/Guide:-full-installation)\n\n## Screenshots\n[Screenshots](https://github.com/JonDoNym/peinjector/wiki/Screenshots)\n\n## Contact the developers on\n```\nanon.zMisc@gmail.com\n```\n\n## peinjector\n                                      + configuration                  \n                                      | payload                        \n                                      | ...                            \n                          +-----------v------------+                   \n          +-------+       |                        |                   \n          | PATCH \u003c-------+      libpeinfect       \u003c--+                \n          +-------+       |                        |  |                \n                          +-----------+------------+  |                \n                                      |               |                \n                          +-----------v------------+  |                \n                          |                        |  |                \n          +---------------\u003e       libpetool        |  |                \n          | change values |                        |  |                \n          | add sections  +-----------^------------+  |                \n          | resize sect.              |               |                \n          + ...                  +----v----+          |                \n                                 | PEFILE  +----------+                \n                                 +----^----+                           \n                                      |                                \n                          +-----------v------------+                   \n          PE File data    |                        |    PE File data   \n          +---------------\u003e       libpefile        +---------------\u003e   \n                          |                        |                   \n                          +------------------------+   \n\n\n### libpefile\nProvides PE file parsing, modification and reassembling capabilities, based on PE COFF specification. Also works with many non-compliant and deliberately malformed files which the Windows Loader accepts.\n\n### libpetool\nProvides more complex modifications (adding/resizing sections). Keeps header values PE COFF compliant.\n\n### libpeinfect\nProvides different infection methods, removes integrity checks, certificates, etc. It can fully infect a file (statically, e.g. from disk) or generate a patch (for MITM infection. Connectors which work with these patches are available in C, Python and Java). The infected file keeps its original functionality.\n\n## servers\n                                          +-----------------+-+\n                                          |   web browser   |X|\n                +-------------+           +-----------------+-+\n                | peinjector- |           |       _____       |\n        -------\u003e+ interceptor +---------\u003e |      /     \\      |\n        -orig.-\u003e+   (MITM)    +-patched-\u003e |     | () () |     |\n        -data--\u003e+             +-data----\u003e |      \\  ^  /      |\n        -------\u003e+ +---------+ +---------\u003e |       |||||       |\n                | |connector| |           |                   |\n                +-+-+-----^-+-+           +-----+------^------+\n             raw    |     |              send   |      | get   \n             header |     | patch        config |      | status\n                    |     |                     |      |       \n                +-+-v-----+-+-+           +-+---v------+---+-+ \n                | |data port| |           | |http(s) server| | \n                | +---------+ |           | +--------------+ | \n                | peinjector  |           |                  | \n                | (core   +---+ crtl      +---+ peinjector-  | \n                | engine) |c p| protocol  |c p| control      | \n                |         |r o+-----------\u003er r| (user        | \n                |         |t r\u003c-----------+t o| interface)   | \n                |         |l t|           |l .|              | \n                +---------+---+           +---+--------------+ \n\n### peinjector\nProvides PE file patching as a service. Just send the raw header of your PE file and you’ll receive a custom-made patch for it. Can be remotely controlled via a command protocol.\n\n### peinjector-control\nWeb interface to configure and control a peinjector server. A small shellcode factory with some basic shellcodes, automatic encryptoin/obfuscation and thread generation is provided - alternatively, custom shellcode can be injected.\n\n### peinjector-interceptor\nSample MITM integration. Based on Python and libmproxy, supports SSL interception, can act as transparent Proxy, HTTP Proxy, ... . Provides seamless PE patching capabilities.\n\n## related projects\n\n[mitmproxy](https://mitmproxy.org/) - An interactive console program that allows traffic flows to be intercepted, inspected, modified and replayed. Written in Python 2.7. peinjector-interceptor is based on mitmproxy's libmproxy library. \n\n[BDFProxy](https://github.com/secretsquirrel/BDFProxy) - The idea for peinjector comes from this project. It can also do MITM executable modification, but doesn't provide seamless patching and isn't as performant as peinjector. It provides ELF and MACH-O infection, PE code cave jumping, IAT patching and more \"static\" patching methods.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjondonym%2Fpeinjector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjondonym%2Fpeinjector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjondonym%2Fpeinjector/lists"}