{"id":26458436,"url":"https://github.com/5loyd/xsocks","last_synced_at":"2025-03-19T00:01:51.502Z","repository":{"id":31957558,"uuid":"35527449","full_name":"b23r0/rsocx","owner":"b23r0","description":"A bind/reverse Socks5 proxy server.","archived":false,"fork":false,"pushed_at":"2022-09-28T08:11:34.000Z","size":40,"stargazers_count":366,"open_issues_count":4,"forks_count":139,"subscribers_count":26,"default_branch":"main","last_synced_at":"2024-08-04T09:03:07.857Z","etag":null,"topics":["proxy","proxy-server","reverse-socks5","socks","socks5"],"latest_commit_sha":null,"homepage":"","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/b23r0.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":"2015-05-13T04:02:55.000Z","updated_at":"2024-08-04T04:20:46.000Z","dependencies_parsed_at":"2022-07-30T05:37:47.415Z","dependency_job_id":null,"html_url":"https://github.com/b23r0/rsocx","commit_stats":null,"previous_names":["5loyd/xsocks"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Frsocx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Frsocx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Frsocx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23r0%2Frsocx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b23r0","download_url":"https://codeload.github.com/b23r0/rsocx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244326199,"owners_count":20435122,"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":["proxy","proxy-server","reverse-socks5","socks","socks5"],"created_at":"2025-03-19T00:01:41.904Z","updated_at":"2025-03-19T00:01:51.485Z","avatar_url":"https://github.com/b23r0.png","language":"Rust","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"57b8e953d394bbed52df2a6976d98dfa\"\u003e\u003c/a\u003eSocks"],"readme":"# rsocx [![Build Status](https://img.shields.io/github/workflow/status/b23r0/rsocx/Rust)](https://github.com/b23r0/rsocx/actions/workflows/rust.yml) [![ChatOnDiscord](https://img.shields.io/badge/chat-on%20discord-blue)](https://discord.gg/ZKtYMvDFN4) [![Crate](https://img.shields.io/crates/v/rsocx)](https://crates.io/crates/rsocx)\nA high performence Socks5 proxy server with bind/reverse support\n\n# Features\n\n* Async\n* Single executable\n* Linux/Windows/Mac/BSD support\n* Support reverse mode(Not bind any port in client)\n\n# Build \u0026 Run\n\n`$\u003e cargo build --release`\n\n# Installation\n\n`$\u003e cargo install rsocx`\n\n# Usage\n\n## Bind Mode\n\nYou can run a socks5 proxy and listen port at 1080\n\n`$\u003e ./rsocx -l 0.0.0.0:1080`\n\n## Reverse Mode\n\nFirst listen a port waiting for slave connection\n\n`$\u003e ./rsocx -t 0.0.0.0:8000 -s 0.0.0.0:1080`\n\nthen reverse connect to master in slave\n\n`$\u003e ./rsocx -r 127.0.0.1:8000`\n\n# Benchmark\n\nSimple load test through `proxychains4` visit to Tornado's `helloworld` case in LAN.\n\n\n```python\nimport grequests\nimport time\nstart = time.time()\nreq_list = [grequests.get('http://192.168.0.222:8888') for i in range(1000)]\nres_list = grequests.map(req_list)\nprint(time.time()-start)\n```\n\n## Test Envoriment\n\n| Envoriment    | Value           |\n|-------------- |-----------      |\n| Proxy OS      | Windows11       |\n| CPU           | i7-9700k        |\n| Target OS     | Ubuntu20.04     |\n| Network       | LAN             |\n| Target Server | [Tornado(Python)](https://github.com/tornadoweb/tornado/blob/master/demos/helloworld/helloworld.py) |\n| Test Count    | 1k              |\n| Socks5 client | Proxychains4    |\n\n## Test Result\n\n| Project        | Language | Base        | Take Time |\n|----------------|----------|-------------|-----------|\n| rsocx          | Rust     | Async-std   | 12.90s    |\n| rsocx(reverse) | Rust     | Aysnc-std   | 24.65s    |\n| [merino](https://github.com/ajmwagar/merino)         | Rust     | Tokio       | 12.37s    |\n| [go-socks5](https://github.com/armon/go-socks5)      | Golang   | goroutine   | 12.31s    |\n| [simple-socks](https://github.com/brozeph/simple-socks)   | Nodejs   | async       | 13.71s     |\n| [asio5](https://github.com/liuaifu/asio5)          | C++      | Boost::Asio | 12.37s    |\n| [esocks](https://github.com/fengyouchao/esocks)          | Java      | Thread-Pool | 25.06s    |\n\n(Test Date : 13 Nov 2021)\n\n# Socks5 Protocol Support\n\n- [x] IPV6 Support\n- [ ] `SOCKS5` Authentication Methods\n  - [x] `NOAUTH` \n  - [ ] `USERPASS`\n- [ ] `SOCKS5` Commands\n  - [x] `CONNECT`\n  - [ ] `BIND`\n  - [ ] `ASSOCIATE` \n\n# Reference\n\n* https://github.com/ajmwagar/merino\n\n* https://github.com/ylxdzsw/v2socks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5loyd%2Fxsocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5loyd%2Fxsocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5loyd%2Fxsocks/lists"}