{"id":18478262,"url":"https://github.com/jm33-m0/go-cdn2proxy","last_synced_at":"2025-04-08T15:32:15.787Z","repository":{"id":49218709,"uuid":"322538112","full_name":"jm33-m0/go-cdn2proxy","owner":"jm33-m0","description":"proxy your C2 traffic through CDN using websocket","archived":false,"fork":false,"pushed_at":"2022-07-24T02:10:28.000Z","size":41,"stargazers_count":52,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-23T15:43:43.433Z","etag":null,"topics":["c2","cdn","proxy","redteam-tools","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jm33-m0.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":"2020-12-18T08:42:48.000Z","updated_at":"2024-08-06T15:12:21.000Z","dependencies_parsed_at":"2022-08-28T11:41:08.332Z","dependency_job_id":null,"html_url":"https://github.com/jm33-m0/go-cdn2proxy","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jm33-m0%2Fgo-cdn2proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jm33-m0%2Fgo-cdn2proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jm33-m0%2Fgo-cdn2proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jm33-m0%2Fgo-cdn2proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jm33-m0","download_url":"https://codeload.github.com/jm33-m0/go-cdn2proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247871370,"owners_count":21010029,"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":["c2","cdn","proxy","redteam-tools","websocket"],"created_at":"2024-11-06T12:09:27.773Z","updated_at":"2025-04-08T15:32:10.770Z","avatar_url":"https://github.com/jm33-m0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-cdn2proxy\nProxy your traffic through content delivery network (CDN) using WebSocket\n\n\u003c!-- vim-markdown-toc --\u003e\n\n## What does it do?\n\n- Use this as a library in your project : `go get -v -u github.com/jm33-m0/go-cdn2proxy`\n- It forwards your traffic through WebSocket, which can be implemented behind most CDNs\n- Anything that supports SOCKS5 proxy can use go-cdn2proxy\n\nI wrote this for [emp3r0r](https://github.com/jm33-m0/emp3r0r)\n\n## Example\n\n### Server\n\n```go\npackage main\n\nimport (\n    \"log\"\n\n    cdn2proxy \"github.com/jm33-m0/go-cdn2proxy\"\n)\n\nfunc main() {\n    err := cdn2proxy.StartServer(\"9000\", \"127.0.0.1:8000\", \"ws\", os.Stderr)\n    // `ws` is the path to your websocket server\n    if err != nil {\n        log.Fatal(err)\n    }\n}\n```\n\n### Client\n\n```go\npackage main\n\nimport (\n    \"log\"\n\n    cdn2proxy \"github.com/jm33-m0/go-cdn2proxy\"\n)\n\nfunc main() {\n    err := cdn2proxy.StartProxy(\"127.0.0.1:10888\", \"wss://example.com/ws\", \"socks5://127.0.0.1:1080\", \"https://9.9.9.9/dns-query\")\n    // here `/ws` must match the one set in `StartServer`\n    if err != nil {\n        log.Fatal(err)\n    }\n}\n```\n\n## Many thanks to\n\n[Minimal SOCKS5 Proxy Omplementation in Golang](https://gist.github.com/felix021/7f9d05fa1fd9f8f62cbce9edbdb19253)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjm33-m0%2Fgo-cdn2proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjm33-m0%2Fgo-cdn2proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjm33-m0%2Fgo-cdn2proxy/lists"}