dimanche 24 août 2014

Wget via Tor

Here is a pair of function to add in the .basrc file that create a wget function runing through Tor, and a newnym() function to swith its IP address whenever we get black(grey)listed, do not forget to add your password if you changed it in the control port of Tor (and also the port itself it you changed it):

function newnym {
PORT="$@"
echo -e 'authenticate ""\nSIGNAL NEWNYM' | telnet localhost 1${PORT} > /dev/null 2>&1
}

function twget {
URL="$@"
torsocks wget -qO- ${URL} 2> /dev/null
}

Aucun commentaire:

Enregistrer un commentaire