Bash script to change proxy every so often

A simple bash script that runs toriptables2 repeatedly, with number of repetitions and delay between them up to the user.

Useful since using same proxy all the time still lets people follow you and identify you from your digital footprint, while changing it at least once per few hours improves your anonymity greatly.
This commit is contained in:
MatijaS 2016-08-03 21:54:04 +02:00 committed by GitHub
parent bbd908679d
commit 20df4fd946
1 changed files with 19 additions and 0 deletions

19
updateproxy.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
#Change proxy every DELAY seconds for MAX times
FILE=./toriptables2.py
COUNTER=0
MAX=$1 #
DELAY=$2
#Check if arg was received
if [ -z "$2" ]; then
echo "USAGE: ./updateproxy.sh <number-of-repetitions <delay-between-repetitions>"
exit
fi
while [ $COUNTER -lt $MAX ]; do
python $FILE -l
sleep $DELAY
let COUNTER=COUNTER+1
done