Sicuramente l’utilizzo di un programma come Vidalia, facilita moltissimo la configurazione e la gestione di Tor, ma a volte un semplice script avviabile da riga di comando è una soluzione più veloce, stabile e funzionale.
Dopo aver installato Tor e Privoxy con il seguente comando:
sudo apt-get install tor privoxy
E’ possibile utilizzare il seguente script per gestire le sessioni di Tor.
#!/bin/bash
while :
do
clear
echo "---------------------------------------------------------------|"
echo " [ANONYMITY] |"
echo " |"
echo " [TOR + PRIVOXY] |"
echo " START/STOP/RESTART |"
echo "---------------------------------------------------------------|"
echo
echo
echo "Hey $USER !! `hostname` is ready !!"
echo
echo "How can I help you ??"
echo
echo "[1] - START Tor + Privoxy"
echo "[2] - STOP Tor + Privoxy"
echo "[3] - RESTART Tor + Privoxy"
echo
echo "[X] - EXIT"
echo
printf "Please. . .select your choice and press ENTER: "
read cmd
case "$cmd" in
"1" )
echo
echo "OK $USER I'll start TOR + PRIVOXY. . ."
echo
echo
echo "`/etc/init.d/tor start`"
echo
echo "`/etc/init.d/privoxy start`"
echo
exit 0
;;
"2" )
echo
echo "OK $USER I'll stop TOR + PRIVOXY. . ."
echo
echo
echo "`/etc/init.d/tor stop`"
echo
echo "`/etc/init.d/privoxy stop`"
echo
exit 0
;;
"3" )
echo
echo "OK $USER I'll restart TOR + PRIVOXY. . ."
echo
echo
echo "`/etc/init.d/tor restart`"
echo
echo "`/etc/init.d/privoxy restart`"
echo
exit 0
;;
"X" | "x" )
echo
echo "OK $USER see ya. . ."
echo
echo "Bye Bye"
echo
echo
exit 0
;;
* )
echo
echo "-------------------------------------------------------------"
echo "ERROR !!!"
echo "========>> Please select choice 1,2,3, or X. . .!!!"
echo "-------------------------------------------------------------"
echo
echo "Press a key. . .and let's try again. . ."
read
;;
esac
done
E’ sufficiente copiare il contenuto sopra dentro un file chiamato anonymity posizionato dentro la cartella /usr/local/bin/
Poi non resta altro che settare i permessi di esecuzione sul file con il seguente comando:
sudo chmod +x anonymity
ed il gioco è fatto.
Twitter It!
GPG Key