View Full Version : Tor control in Python
Recursion
07-12-2011, 11:24 PM
Hey,
I need a way of controlling Tor connects/disconnects in Python, does anyone know of anything? Ideally I'd like to be able to connect to TOR and offer a SOCKS proxy through my Python script.
Thanks
Chippiewill
09-12-2011, 05:27 PM
If I remember correctly Tor actually sets up a proxy server which is by default restricted to just localhost. It might even be SOCKS.
Edit: It's a HTTP proxy, but you may be able to use this; http://code.google.com/p/torsocks/
Recursion
11-12-2011, 04:44 PM
I managed to get it working. Seeing as it was under Linux I installed Tor, config'd it to create a Socks5 proxy and just shoved everything I needed through it.
I've also managed to find something called TorCtl which should allow me to get a new Tor identity, if not I'll just restart the Tor process itself.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.