{"id":26820401,"url":"https://github.com/zvdy/go-toralizer","last_synced_at":"2025-03-30T06:32:11.197Z","repository":{"id":254604886,"uuid":"846907374","full_name":"zvdy/go-toralizer","owner":"zvdy","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-23T15:46:32.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-24T06:24:02.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/zvdy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-24T09:38:43.000Z","updated_at":"2024-09-23T15:46:36.000Z","dependencies_parsed_at":"2024-08-24T18:28:22.469Z","dependency_job_id":null,"html_url":"https://github.com/zvdy/go-toralizer","commit_stats":null,"previous_names":["zvdy/go-toralizer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fgo-toralizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fgo-toralizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fgo-toralizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fgo-toralizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zvdy","download_url":"https://codeload.github.com/zvdy/go-toralizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285645,"owners_count":20752947,"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":"2025-03-30T06:31:50.960Z","updated_at":"2025-03-30T06:32:11.184Z","avatar_url":"https://github.com/zvdy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-toralizer\n[![Tor](https://img.shields.io/badge/Tor-7D4698?logo=Tor-Browser\u0026logoColor=white)](#) [![Go](https://img.shields.io/badge/Go-%2300ADD8.svg?\u0026logo=go\u0026logoColor=white)](#)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zvdy/go-toralizer)](https://goreportcard.com/report/github.com/zvdy/go-toralizer)\n\n\n`go-toralizer` is a CLI tool to run commands through the Tor network. It ensures your commands are executed with the anonymity provided by Tor.\n\n## Installation\n\n1. **Clone the repository:**\n    ```sh\n    git clone https://github.com/zvdy/go-toralizer.git\n    cd go-toralizer\n    ```\n\n2. **Build the project:**\n    ```sh\n    go build -o go-toralizer main.go\n    ```\n\n3. **Move the binary to a directory in your PATH:**\n    ```sh\n    sudo mv go-toralizer /usr/local/bin/\n    ```\n\n## Alias Creation\n\nTo simplify the usage of `go-toralizer`, you can create an alias in your shell configuration file (e.g., `.bashrc`, `.zshrc`).\n\n1. **Open your shell configuration file:**\n    ```sh\n    nano ~/.bashrc  # or ~/.zshrc for zsh users\n    ```\n\n2. **Add the following line to create an alias:**\n    ```sh\n    alias toralizer='go-toralizer'\n    ```\n      \n      - You can also add the following alias if you want default cli and simpler `cmd` concatenation \n         ```sh\n         toralizer() {\n            /usr/local/bin/go-toralizer exec --command \"$*\"\n         }\n\n         # And then you will be able to:\n         toralzier ping website.com\n         ```\n\n3. **Reload your shell configuration:**\n    ```sh\n    source ~/.bashrc  # or ~/.zshrc for zsh users\n    ```\n\n## Usage\n\n### Basic Command Execution\n\nTo execute a command through Tor, use the `exec` command with the `--command` flag:\n\n```sh\ntoralizer exec --command \"curl http://example.com\"\n```\n\n### Verbose Output\n\nEnable verbose output to see more details about the execution:\n\n```sh\ntoralizer exec --command \"curl http://example.com\" --verbose\n```\n\n### Specify Timeout\n\nSet a custom timeout for the command execution:\n\n```sh\ntoralizer exec --command \"curl http://example.com\" --timeout 60s\n```\n\n### Custom Proxy Address\n\nUse a custom proxy address instead of the default `socks5://127.0.0.1:9050`:\n\n```sh\ntoralizer exec --command \"curl http://example.com\" --proxy \"socks5://127.0.0.1:9150\"\n```\n\n### Redirect Output to a File\n\nRedirect the command output to a file:\n\n```sh\ntoralizer exec --command \"curl http://example.com\" --output output.txt\n```\n\n## Example\n\n```sh\ntoralizer exec --command \"curl http://example.com\" --verbose --timeout 45s --proxy \"socks5://127.0.0.1:9150\" --output result.txt\n```\n\nThis command will execute `curl http://example.com` through the Tor network with verbose output, a timeout of 45 seconds, using a custom proxy address, and redirect the output to `result.txt`.\n\n## License\n\nThis project is licensed under the MIT License. See the [`LICENSE`](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvdy%2Fgo-toralizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzvdy%2Fgo-toralizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvdy%2Fgo-toralizer/lists"}