tor

tor name not recognized in stem

十年热恋 提交于 2019-12-13 21:26:43
问题 I am trying to follow the "to russia with love" tutorial (https://stem.torproject.org/tutorials/to_russia_with_love.html) but I am getting this error: [1mStarting Tor: [0m Traceback (most recent call last): File "C:\Users\gatsu\My Documents\LiClipse Workspace\TorCommunicator\tutorialStart.py", line 52, in <module> init_msg_handler = print_bootstrap_lines, File "C:\Python34\lib\site-packages\stem\process.py", line 244, in launch_tor_with_config return launch_tor(tor_cmd, args, torrc_path,

General SOCKS server failure while using tor proxy

不问归期 提交于 2019-12-13 20:55:52
问题 I am proxying traffic over tor, so letter on when I need to call localhost port, it gives failure error. def create_connection(self, address, timeout=None, source_address=None): sock = socks.socksocket() sock.connect(address) return sock def getVideoTrend(self): socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050) socket.socket = socks.socksocket socket.create_connection = self.create_connection #some code Mongo.SaveEntity() SaveEntity contains: hostname = 'localhost' port =

Running stem with tor gives “Process terminated: Timed out”

让人想犯罪 __ 提交于 2019-12-13 18:50:45
问题 While trying to run Stem's To Russia With Love example, I am getting the following error: ~$ python practice.py Starting Tor: Traceback (most recent call last): File "practice.py", line 49, in <module> init_msg_handler = print_bootstrap_lines, File "/usr/local/lib/python2.7/dist-packages/stem/process.py", line 266, in launch_tor_with_config return launch_tor(tor_cmd, args, torrc_path, completion_percent, init_msg_handler, timeout, take_ownership) File "/usr/local/lib/python2.7/dist-packages

execute JavaScript using Tor network without human interaction

∥☆過路亽.° 提交于 2019-12-13 16:26:35
问题 In a nutshell I want to load html content through the Tor network and execute JavaScript to load additional content through this network via AJAX. This must be done automated by a script that runs on a Linux server without any human interaction. I can't find a combination of tools that enables automated execution of JavaScript that came through the Tor network. In detail I want to write an application with this characteristics: environment run autonomously (without any human interaction) run

How to detect user using the TOR broswer using private/load balancer ips of AWS

牧云@^-^@ 提交于 2019-12-13 03:45:56
问题 I have used the below code from link to detect the browser is TOR or not. Code But when the server is hosted on AWS, we didn't get the exact $_SERVER['SERVER_ADDR'] as the AWS is providing the private ip of machine or load balancer ips. So is there any way to detect the AWS private ips from the TOR exit list to detect whether the user is using the TOR browser or not. 回答1: First to make that code work properly, you have to get the actual client IP. That data in sent to your client via the x

Python 3.2 : urllib, SSL and TOR through socket : error with fileno function

不问归期 提交于 2019-12-12 21:26:11
问题 I have an error, when trying to connect in https over socksipy with the below code. I followed the example here : using tor as a SOCKS5 proxy with python urllib2 or mechanize Or this one : Python urllib over TOR? Edit : this code is actually working when I am using HTTP, but not with HTTPS I have imported socks from the Socksipy python module. Here is the code : import socks import socket #This function has no DNS resolve #it need to use the real ip adress to connect instead of www.google.fr

Generating tor controlport password

南笙酒味 提交于 2019-12-12 18:38:31
问题 I am using the tor-request node module and am having problems. I have followed all steps and directions I could find, Ive searched every site online and I've restarted my computer. I cant finish my project and really am struggling. I keep getting Double Quote Error . Id appreciate any help. //started tor tor & I generated the password with tor --hash-password "myPasswordHere" | tail -n 1 //I also tried tor --hash-password myPasswordHereWithOutQuotes //torr file ControlPort 9051

Connecting to .onion network with python

好久不见. 提交于 2019-12-12 18:19:36
问题 I want make python to get into .onion sites from console, below example can use tor in python but when i try to connect to .onion sites it gives error such as "Name or service not known", how do i fix this ? Sample Code: import socket import socks import httplib def connectTor(): socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5,"127.0.0.1",9050,True) socket.socket = socks.socksocket print "Connected to tor" def newIdentity(): HOST = '127.0.0.1' socks.setdefaultproxy() s = socket.socket(socket.AF

Tor, Stem, and Sockets - Changing Identity with TOR

亡梦爱人 提交于 2019-12-12 13:23:33
问题 I'm trying to run Tor through python. My goal is to be able to switch exits or otherwise alter my IP from time-to-time at a time of my choosing. I've followed several tutorials and encountered several different errors. This code prints my IP address import requests r = requests.get('http://icanhazip.com/') r.content # returns my regular IP I've downloaded and 'installed' the Tor browser (although it seems to run from an .exe). When it is running, I can use the following code to return my Tor

Tor doesn't work with urllib2

核能气质少年 提交于 2019-12-12 08:47:09
问题 I am trying to use tor for anonymous access through privoxy as a proxy using urllib2. System info: Ubuntu 14.04, recently upgraded from 13.10 through dist-upgrade. This is a piece of code I am using for test purposes: import urllib2 def req(url): proxy_support = urllib2.ProxyHandler({"http": "127.0.0.1:8118"}) opener = urllib2.build_opener(proxy_support) opener.addheaders = [('User-agent', 'Mozilla/5.0')] return opener.open(url).read() print req('https://check.torproject.org') The above