{"id":15373080,"url":"https://github.com/vi/tcpprepend","last_synced_at":"2025-07-03T14:40:30.161Z","repository":{"id":137140254,"uuid":"559708208","full_name":"vi/tcpprepend","owner":"vi","description":"Simple TCP forwarder that prepends some fixed bytes to responses and ignores some fixed header on requests","archived":false,"fork":false,"pushed_at":"2022-10-30T23:31:59.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T19:59:00.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/vi.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}},"created_at":"2022-10-30T23:09:30.000Z","updated_at":"2024-12-09T20:06:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"532a327b-add1-46ea-84ce-fa0bebb3aec8","html_url":"https://github.com/vi/tcpprepend","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"ea843275bc4d2d9757e5313e4282ce05e21490fb"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vi/tcpprepend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftcpprepend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftcpprepend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftcpprepend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftcpprepend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/tcpprepend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Ftcpprepend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263343165,"owners_count":23452120,"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-10-01T13:54:13.774Z","updated_at":"2025-07-03T14:40:30.130Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tcpprepend\nSimple TCP forwarder that prepends some fixed bytes to responses and ignores some fixed header on requests\n\nInstall it by building (`cargo install --path .`) or download pre-built executables from [Github Releases](https://github.com/vi/tcpprepend/releases/).\n\n# Example\n\n```\nA$ echo -n 'ABC' | base64\nA: QUJD\n\nA$ echo -n 'XYZ' | base64\nA: WFla\n\nA$ tcpprepend 127.0.0.1:1234 QUJD 127.0.0.1:1235 WFla\u0026\nA: [1] 30101\n\nB$ nc -lvp 1235\nB: Listening on 0.0.0.0 1235\n\nC$ nc 127.0.0.1 1234\nA: Incoming connection from 127.0.0.1:40834\nC\u003e 12345\nC\u003e asdfg\nC\u003e 67ABC890\nA:  found matching request bytes\nA:   connected to upstream\nA:   wrote prepender bytes\nB: Connection received on localhost 44242\nB: 890\nA: XYZ\nC\u003e tttyyy\nB: tttyyy\nB\u003e 555666\nC: 555666\n```\n\nPsedo-HTTP server mode:\n\n    $ tcpprepend 127.0.0.1:8080 DQoNCg== 127.0.0.1:1235 SFRUUC8xLjAgMjAwIE9LDQoNCg==\n    $ curl http://127.0.0.1:8080/\n\n# Usage line\n\n```\nARGS:\n    \u003clisten\u003e\n\n    \u003crequest_needle_base64\u003e\n\n    \u003cconnect\u003e\n\n    \u003cresponse_prepend_base64\u003e\n ```\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Ftcpprepend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Ftcpprepend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Ftcpprepend/lists"}