{"id":13775886,"url":"https://github.com/stefanoj3/tordock","last_synced_at":"2026-01-25T01:04:42.655Z","repository":{"id":76088752,"uuid":"140890680","full_name":"stefanoj3/tordock","owner":"stefanoj3","description":"Dockerized TOR socks5","archived":false,"fork":false,"pushed_at":"2018-07-15T09:50:27.000Z","size":2,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T11:47:08.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/stefanoj3/tordock","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefanoj3.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}},"created_at":"2018-07-13T20:34:28.000Z","updated_at":"2023-05-19T21:56:17.000Z","dependencies_parsed_at":"2023-03-14T01:30:56.004Z","dependency_job_id":null,"html_url":"https://github.com/stefanoj3/tordock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanoj3%2Ftordock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanoj3%2Ftordock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanoj3%2Ftordock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanoj3%2Ftordock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanoj3","download_url":"https://codeload.github.com/stefanoj3/tordock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253540462,"owners_count":21924522,"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-08-03T17:01:53.584Z","updated_at":"2026-01-25T01:04:42.622Z","avatar_url":"https://github.com/stefanoj3.png","language":null,"funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"57b8e953d394bbed52df2a6976d98dfa\"\u003e\u003c/a\u003eSocks"],"readme":"\u003cimg width=\"200px\" src=\"https://upload.wikimedia.org/wikipedia/commons/8/8f/Tor_project_logo_hq.png\"\u003e\n\n## tordock\n\nContainerized Tor SOCKS5.\n\n\n#### How to\nCheck your current ip:\n```\ncurl icanhazip.com\n```\n\n\nStart the container:\n```\ndocker run -d -p 127.0.0.1:9150:9150 stefanoj3/tordock:latest\n```\n\n\nHttp call using the just spawned tor socks5, you should get a different ip:\n```\ncurl --socks5-hostname 127.0.0.1:9150 icanhazip.com\n```\n\n\n#### How can I use it from my favourite language?\nHere is an example with golang:\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"net/http\"\n\t\"net/url\"\n\n\t\"golang.org/x/net/proxy\"\n)\n\nfunc main() {\n\ttbProxyURL, err := url.Parse(\"socks5://127.0.0.1:9150\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\ttbDialer, err := proxy.FromURL(tbProxyURL, proxy.Direct)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\ttbTransport := \u0026http.Transport{Dial: tbDialer.Dial}\n\tclient := \u0026http.Client{Transport: tbTransport}\n\n\tresp, err := client.Get(\"http://icanhazip.com\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n\n\tfmt.Printf(\"GET returned: %v\\n\", resp.Status)\n\tbody, err := ioutil.ReadAll(resp.Body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Println(string(body))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanoj3%2Ftordock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanoj3%2Ftordock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanoj3%2Ftordock/lists"}