-
Notifications
You must be signed in to change notification settings - Fork 127
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
sudo apt install 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 -
π» 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
-
sudo apt-get update
-
sudo apt-get install tor
-
wget
https://raw.githubusercontent.com/ruped24/toriptables2/master/toriptables2.py
Expand for Executing toriptables2.py as a standalone executable
-
sudo cp -var toriptables2.py /usr/local/bin/
-
cd /usr/local/bin
-
sudo chown root.root toriptables2.py
-
sudo chmod +x toriptables2.py
-
cd ~
-
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
Expand for Executing toriptables2 module as a script
-
sudo cp -var toriptables2.py /usr/local/lib/python2.7/dist-packages/
-
cd /usr/local/lib/python2.7/dist-packages
-
sudo chown root.staff toriptables2.py
-
sudo chmod 644 toriptables2.py
-
cd ~
-
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) >>
! toriptables2 AppImage is now available.