All     Ethical Hacking     Networking     Programming     OSINT

Tor in Termux – Installation, Usage & Basic Commands

Tor is a privacy tool that routes your internet traffic through multiple encrypted servers, helping you stay anonymous online. In Termux, Tor works as a local SOCKS proxy that you can use inside apps or with command-line tools like curl, wget, and browsers.

Installation

Update packages:

pkg update && pkg upgrade -y

Install Tor:

pkg install tor -y

Check Tor version:

tor --version

Start Tor service:

tor

(Keep this terminal open while using Tor)

Usage Commands

Check if Tor is running (shows circuits and connections):

tor --list-fingerprint

Use curl with Tor proxy:

curl --socks5 127.0.0.1:9050 https://check.torproject.org/

Use wget with Tor proxy:

wget -e use_proxy=yes -e https_proxy=socks5://127.0.0.1:9050 https://example.com

Use torsocks for any app:

torsocks curl https://api.ipify.org

Check your public IP through Tor:

torsocks curl https://checkip.amazonaws.com

Start Tor quietly (less logs):

tor --hush

Stop Tor (close the session):
Just press:

CTRL + C

Tor config file location:

nano $PREFIX/etc/tor/torrc

Restart Tor after editing config:

tor -f $PREFIX/etc/tor/torrc