tor

Changing Tor identity in R

风格不统一 提交于 2019-12-20 09:35:57
问题 I am using Tor in combination with R and would like to change my IP for each new request. The code I have is as follows: library(RCurl) opts <- list(proxy="127.0.0.1", proxyport=8118) for (i in 1:10) { con <- socketConnection(host="127.0.0.1",port=9051) # DOES NOT WORK writeLines("signal newnym", con=con) # DOES NOT WORK ip <- getURL("http://ifconfig.me/ip", .opts = opts) print(ip) Sys.sleep(1) } I am able to connect via Tor, however the two lines marked as 'DOES NOT WORK' don't seem to get

Tor browser, new IP not working?

痞子三分冷 提交于 2019-12-20 06:12:49
问题 I am trying to use tor browser, and get a new IP address each URL I visit in python. I am able to open an instance of selenium running the tor browser, but how can I request a new IP every website I visit? binary = '/Applications/TorBrowser.app/Contents/MacOS/firefox' if os.path.exists(binary) is False: raise ValueError("The binary path to Tor firefox does not exist.") firefox_binary = FirefoxBinary(binary) browser = None def get_browser(binary=None): browser = webdriver.Firefox(firefox

Trouble authenticating Tor with python

拈花ヽ惹草 提交于 2019-12-19 07:38:03
问题 Probably doing something very silly here, but I'm having some trouble authenticating automatically through Tor. I'm using 32 bit ubuntu 12.04 with obfuscated bridges. This should be all the relevant code, but let me know if there's something else that would be useful in debugging this issue: import socket import socks import httplib def connectTor(): socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050, True) #9050 is the Tor proxy port socket.socket = socks.socksocket def

Trouble authenticating Tor with python

微笑、不失礼 提交于 2019-12-19 07:37:30
问题 Probably doing something very silly here, but I'm having some trouble authenticating automatically through Tor. I'm using 32 bit ubuntu 12.04 with obfuscated bridges. This should be all the relevant code, but let me know if there's something else that would be useful in debugging this issue: import socket import socks import httplib def connectTor(): socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050, True) #9050 is the Tor proxy port socket.socket = socks.socksocket def

Can I detect Tor Browser inside the browser itself, via Javascript I suppose?

淺唱寂寞╮ 提交于 2019-12-19 03:55:10
问题 I'd like to disable some features of a web app I'm building, if the browser is Tor Browser. Can I inside the browser itself (client side, not server side) find out if the browser is Tor Browser? I would prefer a solution that didn't issue any HTTP requests to match the browser's IP against Tor exit nodes. Background: In my case, Tor Browser pops up a dialog that asks the user "Should Tor Browser allow this website to extract HTML5 canvas image data?" , because, says Tor Browser, canvas image

How to run multiple Tor processes at once with different exit IPs?

亡梦爱人 提交于 2019-12-18 09:59:31
问题 I am brand new to Tor and I feel like multiple Tors should be considered. The multiple tors I mentioned here are not only multiple instances, but also using different proxy ports for each, like what has been done here http://www.howtoforge.com/ultimate-security-proxy-with-tor) I am trying to get started with 4 Tors. However, the tutorial applies only to Arch Linux and I am using a headless EC2 ubuntu 64bits. It is really a pain going through the differences between Arch and Ubuntu. And here I

Block TOR Servers

不羁岁月 提交于 2019-12-18 04:24:10
问题 I need a script that blocks TOR servers in php ... I need to get the list of servers and block them. Or, any solution to install on the server (centos). 回答1: Here is more information about TorDNSEL https://www.torproject.org/projects/tordnsel.html.en and how to structure query. And below is function I found on the net that can perform dynamic checks. ( https://check.torproject.org/ must use something similar to this ). I am not sure about performance under heavier traffic. function

Block TOR Servers

懵懂的女人 提交于 2019-12-18 04:24:03
问题 I need a script that blocks TOR servers in php ... I need to get the list of servers and block them. Or, any solution to install on the server (centos). 回答1: Here is more information about TorDNSEL https://www.torproject.org/projects/tordnsel.html.en and how to structure query. And below is function I found on the net that can perform dynamic checks. ( https://check.torproject.org/ must use something similar to this ). I am not sure about performance under heavier traffic. function

Tor源码分析十 -- 连接和链路

旧巷老猫 提交于 2019-12-16 13:49:45
 源码分析到这个部分,为了让大家明白源码中的编码逻辑,不得不开始从头梳理程序内部的复杂连接和链接组织形式。否则大家后期会更加一头雾水。笔者开始分析源码之时,没有这些宏观的概念,只能死嚼代码,硬猜硬想,再加以检查代码进行验证,才得以明白程序的主要框架逻辑。如果再以猜测验证的模式向大家讲述源码,必定会越来越混乱。所以,在本节之中,我们会将系统中所有的连接类型,链路类型和他们之间的关系和代码之中的关联方式尽量讲明。若大家遇到不明晰的部分,可以参照代码进行查阅。   在我们进行详细分析之前,先再次给出连接和链接的框架位置图。这个简单的层次图帮助我们理解不同连接和链接所处层次的位置关系,其实已经在我们分析OR连接源码之时给出,之时当时没有进行过多的深入介绍。                 DIR连接,LISTENER连接               |               -----------------            |                 AP连接,EXIT连接……        Tor协议上层 |               ---------------------------- |  应用层                 Circuit链路……           Tor协议中层 |               ------------------

Android Orbot malformed reply from SOCKS server

半城伤御伤魂 提交于 2019-12-14 00:29:18
问题 I am trying to enable TOR support on my own XMPP app in android. I am using orbot as TOR proxy and I have the following code to connect app socket: socket = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("127.0.0.1", 9050))); socket.connect(addr, Config.SOCKET_TIMEOUT * 1000); but I am getting Malformed reply from SOCKS server even that my Orbot is up and running. I believe that this error is thrown when app cant access proxy server or mentioned server is not SOCKS proxy. I have