Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Making CLI commands route through tor nodes on Linux

I completely forgot torsocks existed and got reminded thanks to @Bastille@.

Torsocks allows you to make all your commands like ssh and other commands which reach out through the internet to instead route through tor nodes before hitting the targeted host. This way you stay extra safe.

Installation:
Code
sudo apt install torsocks && torsocks




Running:

Basic usage:
Code
torsocks curl -X GET "webhook.site/webhookhere"

As you can see my ip from the website after posting is completely different. Compare both below:

[Image: image.png]
[Image: image.png]




Help:
Code
└────╼ ❯❯❯ torsocks                        
torsocks 2.3.0

/usr/bin/torsocks [OPTIONS] [COMMAND [arg ...]]

usage: /usr/bin/torsocks command args

Options:
  -h, --help         Show this help
      --shell        Spawn a torified shell
      --version      Show version
  -d, --debug        Set debug mode.
  -u, --user NAME    Username for the SOCKS5 authentication
  -p, --pass NAME    Password for the SOCKS5 authentication
  -i, --isolate      Automatic tor isolation. Can't be used with -u/-p
  -6, --ipv6         Enable creation of IPv6 sockets
  -a, --address HOST Specify Tor address
  -P, --port PORT    Specify Tor port
  on, off            Set/Unset your shell to use Torsocks by default
                     Make sure to source the call when using this option. (See Examples)
  show, sh           Show the current value of the LD_PRELOAD

Examples:

Simple use of torsocks with SSH
    $ torsocks ssh [email protected] -p 1234

Set your current shell in Tor mode.
    $ . torsocks on

Please see torsocks(1), torsocks.conf(5) and torsocks(8) for more information.
That's the kind of content I like to see on HF 👀 it's been a while since last time I browsed the darkweb, I'll take a try with this tool to see how it works, thanks for the detailed share !
(Oct 16, 2024 10:49 AM)Bastille Wrote:  That's the kind of content I like to see on HF 👀 it's been a while since last time I browsed the darkweb, I'll take a try with this tool to see how it works, thanks for the detailed share !

Good thing you can use tornet and torsocks :D
This is awesome. Warms my heart when people are active in this section. Great share.
This signature is for sale.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by FatCatOct 6, 2026 06:07 PM 0 39 Oct 6, 2026 06:07 PM
Last Post: FatCat
by HackersSep 10, 2026 12:40 AM 6 315 Sep 10, 2026 12:40 AM
Last Post: Maxpro
by HackersFeb 15, 2026 02:14 PM 2 108 Feb 15, 2026 02:14 PM
Last Post: HALx86