{"id":17527001,"url":"https://github.com/KaranGauswami/socks-to-http-proxy","last_synced_at":"2025-03-06T06:31:21.807Z","repository":{"id":37671269,"uuid":"306690450","full_name":"KaranGauswami/socks-to-http-proxy","owner":"KaranGauswami","description":"An executable to convert SOCKS5 proxy into HTTP proxy","archived":false,"fork":false,"pushed_at":"2024-07-27T12:52:28.000Z","size":126,"stargazers_count":219,"open_issues_count":4,"forks_count":32,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-07-27T13:59:30.363Z","etag":null,"topics":["http-proxy","proxy","rust","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/KaranGauswami.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-23T16:31:35.000Z","updated_at":"2024-07-27T12:52:28.000Z","dependencies_parsed_at":"2024-07-27T14:08:53.635Z","dependency_job_id":null,"html_url":"https://github.com/KaranGauswami/socks-to-http-proxy","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaranGauswami%2Fsocks-to-http-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaranGauswami%2Fsocks-to-http-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaranGauswami%2Fsocks-to-http-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaranGauswami%2Fsocks-to-http-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KaranGauswami","download_url":"https://codeload.github.com/KaranGauswami/socks-to-http-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":220753131,"owners_count":16697311,"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":["http-proxy","proxy","rust","socks5"],"created_at":"2024-10-20T15:02:55.414Z","updated_at":"2025-03-06T06:31:21.795Z","avatar_url":"https://github.com/KaranGauswami.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# socks-to-http-proxy ![Rust](https://github.com/KaranGauswami/socks-to-http-proxy/workflows/Rust/badge.svg) ![release](https://img.shields.io/github/v/release/KaranGauswami/socks-to-http-proxy?include_prereleases)\n\nAn executable to convert SOCKS5 proxy into HTTP proxy\n\n## About\n\n`sthp` purpose is to create HTTP proxy on top of the Socks 5 Proxy\n\n## How it works\n\nIt uses hyper library HTTP proxy [example](https://github.com/hyperium/hyper/blob/master/examples/http_proxy.rs) and adds functionality to connect via Socks5\n\n## Compiling\n\nFollow these instructions to compile\n\n1.  Ensure you have current version of `cargo` and [Rust](https://www.rust-lang.org) installed\n2.  Clone the project `$ git clone https://github.com/KaranGauswami/socks-to-http-proxy.git \u0026\u0026 cd socks-to-http-proxy`\n3.  Build the project `$ cargo build --release`\n4.  Once complete, the binary will be located at `target/release/sthp`\n\n## Usage\n\n```bash\nsthp -p 8080 -s 127.0.0.1:1080\n```\n\nThis will create proxy server on 8080 and use localhost:1080 as a Socks5 Proxy\n\n```bash\nsthp -p 8080 -s example.com:8080\n```\n\nThis will create proxy server on 8080 and use example:1080 as a Socks5 Proxy\n\n\u003e [!NOTE]  \n\u003e The --socks-address (-s) flag does not support adding a schema at the start (e.g., socks:// or socks5h://). Currently, it only supports socks5h, which means DNS resolution will be done on the SOCKS server.\n\n\u003e [!WARNING]\n\u003e After v5, Changed default listening IP from `0.0.0.0` to `127.0.0.1`. This change restricts the application access to the local machine only.\n\n### Options\n\nThere are a few options for using `sthp`.\n\n```text\nUsage: sthp [OPTIONS]\n\nOptions:\n  -p, --port \u003cPORT\u003e                        port where Http proxy should listen [default: 8080]\n      --listen-ip \u003cLISTEN_IP\u003e              [default: 127.0.0.1]\n  -u, --username \u003cUSERNAME\u003e                Socks5 username\n  -P, --password \u003cPASSWORD\u003e                Socks5 password\n  -s, --socks-address \u003cSOCKS_ADDRESS\u003e      Socks5 proxy address [default: 127.0.0.1:1080]\n      --allowed-domains \u003cALLOWED_DOMAINS\u003e  Comma-separated list of allowed domains\n      --http-basic \u003cHTTP_BASIC\u003e            HTTP Basic Auth credentials in the format \"user:passwd\"\n  -d, --detached                           Run process in background ( Only for Unix based systems)\n  -h, --help                               Print help\n  -V, --version                            Print version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaranGauswami%2Fsocks-to-http-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKaranGauswami%2Fsocks-to-http-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaranGauswami%2Fsocks-to-http-proxy/lists"}