tor

Using Python's smtplib with Tor

I'm conducting experiments regarding e-mail spam. One of these experiments require sending mail thru Tor. Since I'm using Python and smtplib for my experiments, I'm looking for a way to use the Tor proxy (or other method) to perform that mail sending. Ideas how this can be done? ...

Using Urllib with TOR

How can I route urllib requests through the TOR network? I have not been able to find any decent examples on the internet, can anyone help me? ...

Python urllib2 timeout when using Tor as proxy?

Hi, I am using Python's urllib2 with Tor as a proxy to access a website. When I open the site's main page it works fine but when I try to view the login page (not actually log-in but just view it) I get the following error... URLError: <urlopen error (10060, 'Operation timed out')> To counteract this I did the following: import soc...

Tor with Python?

I'm trying to crawl websites using a crawler written in Python. I want to integrate Tor with Python meaning I want to crawl the site anonymously using Tor. I have no idea how to do that. Any help on how to do that will be very helpful. I tried doing this. It doesn't seem to work. I checked my ip it is still the same as the one before ...

How to change default number of nodes in the TOR chain?

Hello. By default TOR uses 3 nodes in a chain (approximately), but it works just painfully slow. I'd like to use one, so connecting to some server and that one is the exit node already. I'm aware that it will compromise my anonymity, but I think I can live with it (especially if that will work faster). I guess there is no such user ...

How can I use TOR as a proxy?

I'm trying to use TOR as a generic proxy but it fails Right now I'm trying with python but I'm pretty sure it would be the same with any other language. I can connect to other proxies with python so I get how it "should" be done. I found a list of TOR entry nodes h = httplib.HTTPConnection("one entry node", 80) h.connect() h.request("...

C# using Tor as Proxy

Hi, I am trying to use Tor-Server as a proxy in HttpWebRequest, my code looks like this: HttpWebRequest request; HttpWebResponse response; request = (HttpWebRequest)WebRequest.Create("http://www.google.com"); request.Proxy = new WebProxy("127.0.0.1:9051"); response = (HttpWebResponse)request.GetResponse(); response.Close(); it work...

how to change tor exit node in a program way

hi everyone. i've got such a task: i've got tor installed on my pc (vista). and i need to change tor exit node in every timestamp. i mean, for example, i start serfing using tor and got ip_1=xxx.xxx.xxx.xxx in 5 minutes i want tor to change my ip to a diferent one ip_2=yyy.yyy.yyy.yyy ip1_!=ip_2 how can i do this? for example using php a...

Python fails Tor check using urllib2 to initiate requests

After reading through the other questions on StackOverflow, I got a snippet of Python code that is able to make requests through a Tor proxy: import urllib2 proxy = urllib2.ProxyHandler({'http':'127.0.0.1:8118'}) opener = urllib2.build_opener(proxy) print opener.open('https://check.torproject.org/').read() Since Tor works fine in Fir...

C# SOCKS proxy service for HTTP requests

I'm trying to build a service that will forward HTTP requests from agents like a browser to the Tor service. Problem is, the Tor service only accepts SOCKS4a connections. So my solution is to listen for HTTP requests, get the URL they're requesting, and make a request via Tor with the help of the Starksoft.Net.Proxy library. Then return...

How to use Tor control protocol in C#?

I'm trying to send commands to the Tor control port programmatically to make it refresh the chain. I haven't been able to find any examples in C#, and my solution's not working. The request times out. I have the service running, and I can see it listening on the control port. public string Refresh() { TcpClient client = new TcpClien...

tor api in own project

Hello, I'm going to develop gui-based application for tor controlling (like vidalia or torK). Are there any libraries for using tor? I don't want to parse each byte of information from sockets. My program should display branches of computers, use chosen as traffic-provider etc. What I need in my case? Are there any small and simple sampl...

Using Tor behind a proxy ?

hi, i'd like to use TOR/polipo behind a proxy like below ME --> POLIPO --> TOR --> PROXY SQUID --> WEB Couldn't find how to do that. When specifying a parent proxy for polipo, it goes straight for it without using TOR so my IP Adress doesn't change. Please any idea is welcome. ...

Result identity changing

Hello, I'm using TOR and I want to know, how to switch between result-nodes with need country. I can simply change it by telnet the 9051 port like: telnet localhost 9051 "AUTHENTICATE\r" "signal NEWNYM\r" "quit\r" This will chose randomly the exit(result) node. My goal is to change that node to the node from need country. I didn't fin...

How to detect inbound HTTP requests sent anonymously via Tor?

I'm developing a website and am sensitive to people screen scraping my data. I'm not worried about scraping one or two pages -- I'm more concerned about someone scraping thousands of pages as the aggregate of that data is much more valuable than a small percentage would be. I can imagine strategies to block users based on heavy traffic...

How can I force Tor to use a new identity without using Vidalia?

I am using Tor in my project. How can I force Tor to use a new identity from my program? ...