How To - Using Tor From The Command Line - Just Hacker Things
How To - Using Tor From The Command Line - Just Hacker Things
23, 00:05 How To: Using Tor From The Command Line – Just Hacker Things
sudo vi /etc/tor/torrc
#ControlPort 9051
#CookieAuthentication 1
Now, you can test to see if things are working as expected. Check your
current ip:
curl ifconfig.me
https://justhackerthings.com/post/using-tor-from-the-command-line/ 1/2
29.11.23, 00:05 How To: Using Tor From The Command Line – Just Hacker Things
The torify command can be used to run any command through tor. The
redirect to /dev/null is used because torify generates a handful of warn‐
ings on some platforms.
If all goes well, you should see the IP address you’re getting after going
through Tor. If not, try restarting the tor service again.
Now, you’re ready to perform whatever tasks you need to from the
shell, via Tor.
If you want to force Tor to generate a new circuit, and thus a new IP, use
the following command:
After sending the NEWNYM signal, using the torify'd curl command
above should yield a new IP address.
https://justhackerthings.com/post/using-tor-from-the-command-line/ 2/2