![]() It worked fine before, now the browser doesn't even start. Hope this might help someone facing the same problem. Tor stopped working on Ubuntu 14.04 Pretty sure there was an automatic update installed yesterday or the day before for Tor, and I don't remember whether I tried using it since then. Apparently, the socks proxy was not allowing the connection to pass through it. Nmap scan report for localhost (127.0.0.1) Return self.do_open(httplib.HTTPConnection, req)įile "/usr/lib/python2.7/urllib2.py", line 1184, in do_openĬhecked if tor is running by using the nmap command. Traceback (most recent call last):įile "/usr/lib/python2.7/urllib2.py", line 127, in urlopenįile "/usr/lib/python2.7/urllib2.py", line 404, in openįile "/usr/lib/python2.7/urllib2.py", line 422, in _openįile "/usr/lib/python2.7/urllib2.py", line 382, in _call_chainįile "/usr/lib/python2.7/urllib2.py", line 1214, in http_open Whenever I try to run the above script it keeps throwing the following error. Socket.create_connection = create_connection I found it here:ĭef create_connection(address, timeout=None, source_address=None): ![]() I found something that works! I have no idea why it works, but it does. I did not use the tor proxy: In : import urllib2 I ran this script and received an expected response. I am very new to python and networking, so I need a second opinion on how to make the python urllib2 use tor as a SOCKS on a non-GUI Ubuntu server. I get the same result as above with the urllib2 script. I thought that since mechanize seems to be related to urllib2 that the following script might work: import socks ![]() thunderbird-locale-en-us tor-web-browser ubuntu-mono va-driver-all virtualbox virtualbox-dkms. So I tried the following script in python: import socks Pero cuando ejecuto ubuntu sigue mostrando las mismas. How can I use a SOCKS 4/5 proxy with urllib2? I had high hopes for the suggestion in this post to get tor working with urllib2: I also thought it reasonable to see if I could telnet to port 9050, which I can: telnet 127.0.0.1 9050 Tor is installed and is listening on port 9050 according to the nmap scan: Starting Nmap 5.21 ( ) at 00:50 UTC ![]() I am not using a GUI with the following Ubuntu version: My goal is to use python's mechanize with a tor SOCKS proxy.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |