2012/02/22

#18. Renew TOR identity in python with vidalia bundle to automate worldwide testing of your website

First of all you need to have the Vidalia Bundle, and configure the torrc config file, find the value HashedControlPassword and uncomment it, next you need to create the hashed password, to do it, you can execute in a command line "tor --hash-password {pass}"
Copy the hash and save it in the config file. Restart Vidalia.
Taken this code from Moshe Basanchig, I've written this code wich authenticates against TOR:



Be careful, you should pass to the function the password you created the hash for, not the hashed string!. Also check out this book, it is a good and fast read:

1 comment:

Post a Comment