Skip to content

Optional installation methods for toriptables2.py

Rupert Edwards edited this page Sep 3, 2023 · 81 revisions
- Note for toriptables3: Replace toriptables2 with toriptables3.

Expand for git clone commands

  1. sudo apt install tor
  2. sudo systemctl enable tor
  3. sudo systemctl start tor
  4. git clone https://github.com/ruped24/toriptables2
  5. cd toriptables2/
  6. sudo mv toriptables2.py /usr/local/bin/
  7. cd -

πŸ”» kali Linux one-liner installation

sudo apt-get update && sudo apt-get install -y tor && sudo systemctl enable tor && sudo systemctl start tor && git clone https://github.com/ruped24/toriptables2 && cd toriptables2 && sudo mv toriptables2.py /usr/local/bin/ && cd - && rm -rf toriptables2  && sudo toriptables2.py

Expand for wget download commands
  1. sudo apt-get update

  2. sudo apt-get install tor

  3. wget https://raw.githubusercontent.com/ruped24/toriptables2/master/toriptables2.py


Executing toriptables2.py as a standalone executable:

Expand for Executing toriptables2.py as a standalone executable
  1. sudo cp -var toriptables2.py /usr/local/bin/

  2. cd /usr/local/bin

  3. sudo chown root.root toriptables2.py

  4. sudo chmod +x toriptables2.py

  5. cd ~

  6. sudo toriptables2.py -h

usage: toriptables2.py [-h] [-l] [-f] [-r] [-i]

Tor Iptables script for loading and unloading iptables rules

optional arguments:
  -h, --help     show this help message and exit
  -l, --load     This option will load tor iptables rules
  -f, --flush    This option flushes the iptables rules to default
  -r, --refresh  This option will change the circuit and gives new IP
  -i, --ip       This option will output the current public IP address

Executing toriptables2 module as a script:

Expand for Executing toriptables2 module as a script
  1. sudo cp -var toriptables2.py /usr/local/lib/python2.7/dist-packages/

  2. cd /usr/local/lib/python2.7/dist-packages

  3. sudo chown root.staff toriptables2.py

  4. sudo chmod 644 toriptables2.py

  5. cd ~

  6. sudo python2 -m toriptables2 -h

usage: toriptables2.py [-h] [-l] [-f] [-r] [-i]

Tor Iptables script for loading and unloading iptables rules

optional arguments:
  -h, --help     show this help message and exit
  -l, --load     This option will load tor iptables rules
  -f, --flush    This option flushes the iptables rules to default
  -r, --refresh  This option will change the circuit and gives new IP
  -i, --ip       This option will output the current public IP address
β”Œβ”€[kali@kali]─[~]
└──╼1 (00:03:16) >> sudo python2 -m toriptables2 -l
 [+] Anonymizer status [ON]
 [*] Getting public IP, please wait...
 [+] Your IP is 185.38.14.171
β”Œβ”€[kali@kali]─[~]
└──╼2 (00:03:39) >>

Installing toriptables2 AppImage or binary:

Expand for Installing toriptables2 AppImage or binary

β–Ί toriptables2 AppImage and Binary

! toriptables2 AppImage is now available.