{"id":15395439,"url":"https://github.com/stef/torpy","last_synced_at":"2025-04-16T00:09:05.465Z","repository":{"id":3405927,"uuid":"4456044","full_name":"stef/torpy","owner":"stef","description":"tool and python module to manipulate tor hidden services","archived":false,"fork":false,"pushed_at":"2012-10-24T16:57:10.000Z","size":125,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-16T00:08:47.734Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/stef.png","metadata":{"files":{"readme":"README.org","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}},"created_at":"2012-05-26T16:07:47.000Z","updated_at":"2024-08-12T19:21:05.000Z","dependencies_parsed_at":"2022-09-05T14:10:33.563Z","dependency_job_id":null,"html_url":"https://github.com/stef/torpy","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/stef%2Ftorpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stef%2Ftorpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stef%2Ftorpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stef%2Ftorpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stef","download_url":"https://codeload.github.com/stef/torpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173084,"owners_count":21224483,"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-10-01T15:28:22.058Z","updated_at":"2025-04-16T00:09:05.439Z","avatar_url":"https://github.com/stef.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"* Torpy - a hidden service controller and py module\n\nrun torpy from the commandline:\n\ngenerate a password for accessing tor remotely, and append it to your torrc\n#+BEGIN_SRC shell\n% /usr/sbin/tor --hash-password \"password\"\nOct 23 23:39:44.561 [notice] Tor v0.2.3.22-rc (git-4a0c70a817797420) running on Linux.\nOct 23 23:39:44.561 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning\nOct 23 23:39:44.564 [notice] This version of OpenSSL has a known-good EVP counter-mode implementation. Using it.\n16:1387221FFADC246D60BEAA58274647717AA12A2ACE268F7AF0D5BF271A\n\n% sudo printf \"\\nCookieAuthentication 0\\nHashedControlPassword 16:1387221FFADC246D60BEAA58274647717AA12A2ACE268F7AF0D5BF271A\\n\" \u003e\u003e/etc/tor/torrc\n#+END_SRC\n\n#+BEGIN_SRC shell\ngit submodule init\ngit submodule update\n\nvirtualenv env\nsource env/bin/activate\npip install pytorctl/ #note the / at the end!\n\necho 'passphrase=\"password\"' \u003econfig.py\n#+END_SRC\n\nusage:\n\n#+BEGIN_SRC shell\ntorpy list\ntorpy status \u003cservice\u003e\ntorpy start \u003cservice\u003e \u003chost:port\u003e \u003cserviceport\u003e\ntorpy stop \u003cservice\u003e\"\n#+END_SRC\n\nor use it from python:\n\n#+BEGIN_SRC python\ntp=Torpy(passphrase)\n# list services\ntp.list()\n# check if test_service is running\nprint \"running\" if tp.status(\"test_service\") else \"not running\"\n# start test_service\ntp.start(\"test_service\",\"localhost:80\",\"80\")\n# check again\nprint \"running\" if tp.status(\"test_service\") else \"not running\"\n# stop service\ntp.stop(\"test_service\")\n# don't forget to close the control connection\ntp.close()\n#+END_SRC\n\n*warning* if you start a new onion service using start, the full path must be\nreadable, writable, and executable (o+rwx) by the user running tor.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstef%2Ftorpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstef%2Ftorpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstef%2Ftorpy/lists"}