{"id":47205824,"url":"https://github.com/tr3ee/simple-proxy","last_synced_at":"2026-03-13T13:42:11.309Z","repository":{"id":57535575,"uuid":"129586703","full_name":"tr3ee/simple-proxy","owner":"tr3ee","description":"a simple forward/active/passive proxy tool based on go-link (https://github.com/tr3ee/go-link)","archived":false,"fork":false,"pushed_at":"2020-03-26T11:15:32.000Z","size":17,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T09:20:51.224Z","etag":null,"topics":["example-code","golang","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","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/tr3ee.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}},"created_at":"2018-04-15T07:20:56.000Z","updated_at":"2024-03-22T20:16:18.000Z","dependencies_parsed_at":"2022-08-29T00:41:00.454Z","dependency_job_id":null,"html_url":"https://github.com/tr3ee/simple-proxy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tr3ee/simple-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr3ee%2Fsimple-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr3ee%2Fsimple-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr3ee%2Fsimple-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr3ee%2Fsimple-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tr3ee","download_url":"https://codeload.github.com/tr3ee/simple-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tr3ee%2Fsimple-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30467814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["example-code","golang","proxy"],"created_at":"2026-03-13T13:42:10.777Z","updated_at":"2026-03-13T13:42:11.301Z","avatar_url":"https://github.com/tr3ee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-proxy\n\na simple forward/active/passive proxy POC based on my [go-link](https://github.com/tr3ee/go-link)\n\n## Install\n\n```bash\n$ go get github.com/tr3ee/simple-proxy\n```\nthis command should install `simple-proxy` in your $GOPATH/bin directory\n\n## Overview\n\n- **Forward Mode**\n\n```txt\n\n\n        +--------+                +--------------+                  +--------+\n        | Client |                | Forward Mode |                  | Server |\n        +---+----+                +------+-------+                  +----+---+\n            |                            |                               |\n            |        Dial to Proxy       |                               |\n            |+--------------------------\u003e|                               |\n            |         (connected)        |         Dial to Server        |\n            |                            |+-----------------------------\u003e|\n            |   Send message to Proxy    |          (connected)          |\n            |+--------------------------\u003e|                               |\n            |                            |   Forward message to Server   |\n            |                            |+-----------------------------\u003e|\n            |                            |                               |\n            |                            |     Send reply to Proxy       |\n            |                            |\u003c-----------------------------+|\n            |   Forward reply to Client  |                               |\n            |\u003c--------------------------+|                               |\n            |                            |                               |\n            |          ......            |             ......            |\n            |                            |                               |\n        +---+----+                +------+-------+                  +----+---+\n        | Client |                | Forward Mode |                  | Server |\n        +--------+                +--------------+                  +--------+\n\n\n```\n\n- **Active Mode**\n\n```txt\n\n\n        +--------+                +-------------+                   +--------+\n        | Client |                | Active Mode |                   | Server |\n        +---+----+                +------+------+                   +----+---+\n            |                            |                               |\n            |        Dial to Client      |                               |\n            |\u003c--------------------------+|                               |\n            |         (connected)        |         Dial to Server        |\n            |                            |+-----------------------------\u003e|\n            |   Send message to Proxy    |          (connected)          |\n            |+--------------------------\u003e|                               |\n            |                            |   Forward message to Server   |\n            |                            |+-----------------------------\u003e|\n            |                            |                               |\n            |                            |     Send reply to Proxy       |\n            |                            |\u003c-----------------------------+|\n            |   Forward reply to Client  |                               |\n            |\u003c--------------------------+|                               |\n            |                            |                               |\n            |          ......            |             ......            |\n            |                            |                               |\n        +---+----+                +------+------+                   +----+---+\n        | Client |                | Active Mode |                   | Server |\n        +--------+                +-------------+                   +--------+\n\n\n```\n\n  \n\n- **Passive Mode**\n\n```txt\n\n\n        +--------+                +--------------+                  +--------+\n        | Client |                | Passive Mode |                  | Server |\n        +---+----+                +------+-------+                  +----+---+\n            |                            |                               |\n            |        Dial to Proxy       |                               |\n            |+--------------------------\u003e|                               |\n            |         (connected)        |         Dial to Proxy         |\n            |                            |\u003c-----------------------------+|\n            |   Send message to Proxy    |          (connected)          |\n            |+--------------------------\u003e|                               |\n            |                            |   Forward message to Server   |\n            |                            |+-----------------------------\u003e|\n            |                            |                               |\n            |                            |     Send reply to Proxy       |\n            |                            |\u003c-----------------------------+|\n            |   Forward reply to Client  |                               |\n            |\u003c--------------------------+|                               |\n            |                            |                               |\n            |          ......            |             ......            |\n            |                            |                               |\n        +---+----+                +------+-------+                  +----+---+\n        | Client |                | Passive Mode |                  | Server |\n        +--------+                +--------------+                  +--------+\n\n\n```\n\n## Quick Start\n\n__[SERVER]__\n```bash\n$ simple-proxy -r google.com:80 -l 127.0.0.1:8800 -v\n2020/03/20 13:43:10 [+] listening on tcp:127.0.0.1:8800\nGET / HTTP/1.1\nHost: google.com\n\nHTTP/1.1 301 Moved Permanently\nLocation: http://www.google.com/\nContent-Type: text/html; charset=UTF-8\nDate: Fri, 20 Mar 2020 05:43:14 GMT\nExpires: Sun, 19 Apr 2020 05:43:14 GMT\nCache-Control: public, max-age=2592000\nServer: gws\nContent-Length: 219\nX-XSS-Protection: 0\nX-Frame-Options: SAMEORIGIN\n\n\u003cHTML\u003e\u003cHEAD\u003e\u003cmeta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\"\u003e\n\u003cTITLE\u003e301 Moved\u003c/TITLE\u003e\u003c/HEAD\u003e\u003cBODY\u003e\n\u003cH1\u003e301 Moved\u003c/H1\u003e\nThe document has moved\n\u003cA HREF=\"http://www.google.com/\"\u003ehere\u003c/A\u003e.\n\u003c/BODY\u003e\u003c/HTML\u003e\n2020/03/20 13:43:24 [+] 127.0.0.1:56513 \u003c==\u003e 127.0.0.1:56514 (33 transmitted, 528 received)\n```\n__[CLIENT]__\n```bash\n$ nc localhost 8800\nGET / HTTP/1.1\nHost: google.com\n\nHTTP/1.1 301 Moved Permanently\nLocation: http://www.google.com/\nContent-Type: text/html; charset=UTF-8\nDate: Fri, 20 Mar 2020 05:43:14 GMT\nExpires: Sun, 19 Apr 2020 05:43:14 GMT\nCache-Control: public, max-age=2592000\nServer: gws\nContent-Length: 219\nX-XSS-Protection: 0\nX-Frame-Options: SAMEORIGIN\n\n\u003cHTML\u003e\u003cHEAD\u003e\u003cmeta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\"\u003e\n\u003cTITLE\u003e301 Moved\u003c/TITLE\u003e\u003c/HEAD\u003e\u003cBODY\u003e\n\u003cH1\u003e301 Moved\u003c/H1\u003e\nThe document has moved\n\u003cA HREF=\"http://www.google.com/\"\u003ehere\u003c/A\u003e.\n\u003c/BODY\u003e\u003c/HTML\u003e\n^C\n```\n\n## Usage\n\n```\nUsage of simple-proxy:\n  -d    decryption mode\n  -hex\n        print inbound/outbound data in hexadecimal format\n  -k string\n        secret key for cipher\n  -l string\n        local address to listen on\n  -ln string\n        local network protocal will be used when listening (default \"tcp\")\n  -m string\n        cipher method (currently support: plain|xor) (default \"plain\")\n  -mode string\n        proxy mode (currently support: active|forward|passive) (default \"forward\")\n  -no-color\n        disable color output\n  -passive-qsize int\n        max queue size for local listener in passive mode (qsize \u003e 0) (default 32)\n  -r string\n        remote address to connect\n  -rn string\n        remote network protocal will be used when connecting (default \"tcp\")\n  -t int\n        idle timeout for each connection (t \u003e 0) (default 30)\n  -v    verbose mode\n  -vv\n        more verbose mode\n```\n\n## LICENSE\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftr3ee%2Fsimple-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftr3ee%2Fsimple-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftr3ee%2Fsimple-proxy/lists"}