tor

How can I know the IP address of Tor route?

风格不统一 提交于 2020-01-24 20:47:07
问题 I am a college student who is conducting Tor research at a Japanese university. How can I display the IP address of the route as shown in the picture? I suspect I need to do some operations from the control port. 回答1: The way that works is a bit tricky. Tor will create different circuits when it starts up and SOCKS requests will use a circuit it finds suitable. The Tor browser (powered by TorButton) has special domain isolation functionality where it proxies requests for a specific domain

How to Build and Send an HTTP Request to a Tor Hidden Service with Ruby

喜欢而已 提交于 2020-01-24 12:33:15
问题 I've spent the last couple of days looking for a solution to this problem, and though there are quite a few semi-relevant questions, none of the answers show a successful use case for sending a successful HTTP request over Tor to a hidden service using Ruby. One thing that seems unclear in all the answers is how the Tor browser bundle acts as a proxy for requests. I've tried multiple avenues of attack, the most recent being an attempt to adapt the PHP code here for sending curl requests to

The server committed a protocol violation. Section=ResponseStatusLine when using a tor proxy

大憨熊 提交于 2020-01-24 03:05:23
问题 I'm trying to send an httpwebrequest using a tor proxy with my asp.net application and I receive this error message when calling the webresponse.GetResponse() method: The server committed a protocol violation. Section=ResponseStatusLine I've tried searching for a solution on the web and I found 3 main solutions for this error: Add to Web.config. <system.net> <settings> <httpWebRequest useUnsafeHeaderParsing="true"/> </settings> </system.net>` Add the line: webRequest.ProtocolVersion =

can't connect to *.onion sites with python (<urlopen error [Errno 11001] getaddrinfo failed>)

你。 提交于 2020-01-14 13:58:14
问题 I'm trying to access *.onion sites using python. Didn't success yet, though. I've read a lot of stackoverflow questions&answers, tried a lot of different ways of resolving this problem: I tried using Python 2.7 and Python 3.5 , tried using urllib , urllib2 , requests (then I found out requests doesn't work with socks), pysocks , etc, but nothing seems to work. Right now I'm at the point where I only get the following Error: > <urlopen error [Errno 11001] getaddrinfo failed> No, I don't have a

using the Firefox Profile and the tor daemon doesn't work

谁都会走 提交于 2020-01-14 03:36:15
问题 I want to use tor browser to bypass censorship but using the Firefox Profile and the tor daemon doesn't work. here's my code: from selenium import webdriver from selenium.webdriver.firefox.firefox_profile import FirefoxProfile import os torexe = os.popen(r'C:\Users\fathollahy\Desktop\Tor Browser\Browser\TorBrowser\Tor\tor.exe') profile = FirefoxProfile(r'C:\Users\fathollahy\Desktop\Tor Browser\Browser\TorBrowser\Data\Browser\profile.default') profile.set_preference('network.proxy.type', 1)

How do I use Tor with cURL (in Windows)?

微笑、不失礼 提交于 2020-01-12 03:39:45
问题 I have Vidalia installed, set up Chrome to use port 8118 for the proxy and I've checked my connection through https://check.torproject.org/ but I'm having difficulties getting this work with the command-line tool cURL. This is what I try: C:\>curl -v --proxy localhost::9050 http://google.com * About to connect() to proxy localhost port 0 (#0) * Failed to connect to ↕: Address not available * No error * Trying 127.0.0.1... Failed to connect to 127.0.0.1: Address not available * No error *

Can't connect to Tor-Firefox via Watir

拜拜、爱过 提交于 2020-01-11 09:30:10
问题 I am having issues connecting to Tor via Ruby - Watir webdriver. I use the Tor Browser Bundle. The problem is that when I try to connect via Watir (Selenium) I cannot seem to open Tor instead of regular Firefox. Looking at similar issues I've tried the following: require 'watir-webdriver' profile = Selenium::WebDriver::Firefox::Profile.new profile['network.proxy.socks'] = '127.0.0.1' #the proxy tor uses profile['network.proxy.socks_port'] = 9150 #I cannot use 9050, 9150 works when I use Tor

如何使用Linux匿名上网-四大法宝

狂风中的少年 提交于 2020-01-10 14:42:28
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一些人可能会认为这是“锡箔”思维方式,但是正如全球各地的许多情报组织的信息反馈中看到的,政府监视已从被认为一种疯狂的阴谋论变成了几乎赤裸裸的公然威胁。关注隐私、希望尽可能不被人监视的那些人会发现,如果使用得当,Linux是一款相当有用的工具。实际上,在网上尽量保持匿名的那些人会发觉Linux是唯一的选择,因为众所周知,Windows和Mac OS X会收集关于用户的尽可能多的信息。只要上网搜索“Windows 10监视”或“Mac OS X隐私”,你就会有切身的体会。 在我们开始入手之前,想完全确保计算机安全、私密,唯一的办法就是从互联网上断开,并关闭电源。因为连接到互联网的设备不可能做到绝对百分百安全。总是有办法避开安全机制,就算没有,也会有人不断开发出工具,找到新的法子。所以,这里的指导原则并不是要求更改计算机上的几个设置,你就可以建立起坚不可摧的堡垒,而是说要设置尽可能多的障碍,尽量让任何潜在的攻击者或间谍很难访问你的系统或私密信息。 你可以使用几个Linux工具,尽可能保持匿名性(同样在当下,这越来越难做到,但是如果隐私对你来说很重要,你已经知道英勇地抵抗的重要性)。 1.Tails OS 我们要介绍的第一款工具是Tails OS(https://tails.boum.org),不过说它是“工具

成功解决AttributeError: module 'torch.utils' has no attribute 'data'

假装没事ソ 提交于 2020-01-10 10:49:11
成功解决AttributeError: module 'torch.utils' has no attribute 'data' 目录 解决问题 解决方法 解决问题 AttributeError: module 'torch.utils' has no attribute 'data' 解决方法 只需在顶行添加此代码即可! import torch.utils.data # 新添加代码 将 import logging import numpy as np import torch from . import ava_helper as ava_helper from . import cv2_transform as cv2_transform from . import transform as transform from . import utils as utils from .build import DATASET_REGISTRY logger = logging.getLogger(__name__) @DATASET_REGISTRY.register() class Ava(torch.utils.data.Dataset): """ AVA Dataset """ def __init__(self, cfg, split): self.cfg = cfg

multithreaded crawler while using tor proxy

隐身守侯 提交于 2020-01-10 05:34:06
问题 I am trying to build multi threaded crawler that uses tor proxies: I am using following to establish tor connection: from stem import Signal from stem.control import Controller controller = Controller.from_port(port=9151) def connectTor(): socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9150) socket.socket = socks.socksocket def renew_tor(): global request_headers request_headers = { "Accept-Language": "en-US,en;q=0.5", "User-Agent": random.choice(BROWSERS), "Accept": "text/html