tor

新型匿名通信系统诞生,或将替代Tor项目

女生的网名这么多〃 提交于 2019-11-26 14:55:10
近日加密专家David Chaum提出一种新加密方案“隐私完整”(PrivaTegrity)。    Tor存在的问题 有消息称“隐私完整”可提供完全私密的匿名通信,无论黑客还是情报机构都无法窃听。 Chaum推出隐私完整之后,希望能够解决Tor面临的问题。而隐私完整解决的不仅仅是技术问题,还可以解决法律问题的隐患。 Chaum在对抵御互联网监视之网进行探索的时候,而当时他的发明创造包括史上第一款密码货币,90年代名为数字现金(DigiCash)的高科技公司,以及DC Nets(他在80年代早期发明的,一套理论上能用一组电脑进行完美匿名的体系)。但乔姆的隐私创意中最有影响力的,可能是他在1979年以“混合网络”(mix network)命名的一套更简单的体系,而实际上Tor项目就是参考这个理论体系,当然还有比特币的创造者也参考了该理论体系。 “混合网络”主要通过多层加密来实现消息匿名。就拿Tor来举个例子,当你通过Tor发送邮件时, Tor会使用一种称为“洋葱路由”的加密技术通过网络随机生成的过程传送邮件。这有点像在一叠信中放了一封密信。网络中的每个节点都会解密消息(打开的最外信封),然后发送内部加密的内容(内密封的信封)至其下一个地址。这导致如果单看一个节点是看不了信的全部内容,并且该消息的传送路径难以追踪。但是,最终的消息已经传送到达。如果它要一个直接连接到Tor网络的服务器上

How to change Tor identity in Python?

♀尐吖头ヾ 提交于 2019-11-26 12:50:58
问题 I have the following script: import socks import socket socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, \"127.0.0.1\", 9050) socket.socket = socks.socksocket import urllib2 print(urllib2.urlopen(\"http://www.ifconfig.me/ip\").read()) which uses tor and SocksiPy Now I want to change tor identity with each request, for example: for i in range(0, 10): #somehow change tor identity print(urllib2.urlopen(\"http://www.ifconfig.me/ip\").read()) How can I do this? 回答1: Tor wrote a new TOR control

Python urllib over TOR? [duplicate]

泪湿孤枕 提交于 2019-11-26 09:26:26
问题 This question already has answers here : How to route urllib requests through the TOR network? [duplicate] (3 answers) Closed 3 years ago . Sample code: #!/usr/bin/python import socks import socket import urllib2 socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, \"127.0.0.1\", 9050, True) socket.socket = socks.socksocket print urllib2.urlopen(\"http://almien.co.uk/m/tools/net/ip/\").read() TOR is running a SOCKS proxy on port 9050 (its default). The request goes through TOR, surfacing at an IP

Make requests using Python over Tor

丶灬走出姿态 提交于 2019-11-26 09:14:56
问题 I want to make multiple GET requests using Tor to a webpage. I want to use a different ipaddress for each request. import socks import socket socks.set_default_proxy(socks.SOCKS5, \"127.0.0.1\", 9150) socket.socket = socks.socksocket import requests print (requests.get(\'http://icanhazip.com\')).content Using this, I made one request. How can I change the ipaddress to make another? 回答1: Here is the code you want to use (download the stem package using pip install stem ) from stem import

How to make urllib2 requests through Tor in Python?

十年热恋 提交于 2019-11-26 03:48:05
问题 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 tried doing this. It doesn\'t seem to work. I checked my IP it is still the same as the one before I used tor. I checked it via python. import urllib2 proxy_handler = urllib2.ProxyHandler({\"tcp\":\"http://127.0.0.1:9050\"}) opener = urllib2.build_opener(proxy_handler) urllib2.install_opener(opener) 回答1: You are trying to connect to a

How to connect to Tor browser using Python

为君一笑 提交于 2019-11-26 03:44:33
问题 I am trying to connect to a Tor browser but get an error stating \"proxyConnectFailure\" any ideas I have tried multiple attempts to get into the basics of Tor browser to get it connected but all in vain if any could help life could be saved big time: from selenium import webdriver from selenium.webdriver.firefox.firefox_profile import FirefoxProfile from selenium.webdriver.firefox.firefox_binary import FirefoxBinary binary = FirefoxBinary(r\"C:\\Users\\Admin\\Desktop\\Tor Browser\\Browser\