tor

Getting Tor ControlPort to work

六眼飞鱼酱① 提交于 2019-12-01 00:41:49
I have installed Tor to run as a service on my windows machine and I am trying to make requests in python through the Stem package. In my torrc file I have specified ControlPort as 9051 and set a HashedControlPassword. When I run netstat, I see that Tor is running on localhost:9050 but there is nothing listening to port 9051. As a result, when I try to connect to the ControlPort in python: Controller.from_port(port=9051) results in a [Errno 10061] No connection could be made because the target machine actively refused it I've tried restarting the service, I even reinstalled Tor Browser but

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

百般思念 提交于 2019-11-30 22:09:53
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 data can be used to uniquely identify a browser. Update: After reading the answers below: Perhaps the

sqlmap总结

☆樱花仙子☆ 提交于 2019-11-30 20:58:10
转自:http://www.zerokeeper.com/web-security/sqlmap-usage-summary.html 0x01 需要了解 当给 sqlmap 这么一个 url 的时候,它会: 1、判断可注入的参数 2、判断可以用那种 SQL 注入技术来注入 3、识别出哪种数据库 4、根据用户选择,读取哪些数据 sqlmap 支持五种不同的注入模式: 1、基于布尔的盲注,即可以根据返回页面判断条件真假的注入。 2、基于时间的盲注,即不能根据页面返回内容判断任何信息,用条件语句查看时间延迟语句是否执行(即页面返回时间是否增加)来判断。 3、基于报错注入,即页面会返回错误信息,或者把注入的语句的结果直接返回在页面中。 4、联合查询注入,可以使用 union 的情况下的注入。 5、堆查询注入,可以同时执行多条语句的执行时的注入。 sqlmap 支持的数据库有: MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access, IBM DB2, SQLite, Firebird, Sybase 和 SAP MaxDB 0x02 安装 git clone https : //github.com/sqlmapproject/sqlmap.git sqlmap-dev 0x03 Options(选项):

Send HTTP request from different IPs in Node.js

我与影子孤独终老i 提交于 2019-11-30 11:56:55
Is there a way to send an HTTP request with a different IP from what I have in Node.js? I want to send a request from an IP that I choose before, and not from the IP of the server or from my computer’s IP. I know that Tor Project does this kind of manipulation, but I didn't find any library that Tor uses to do this stuff. Is there any API or Node.js module that Tor uses to handle this kind of private browsing in Node.js? In the node http module there is a localAddress option for binding to specific network interface. var http = require('http'); var options = { hostname: 'www.example.com',

Python - Controlling Tor

半世苍凉 提交于 2019-11-30 05:11:15
I'm attempting to control Tor with Python. I've read a couple of the other questions asked about this subject on stackoverflow but none of them answer this question. I'm looking for a method to have tor give you a 'new identity', a new IP address, when the command is run. I've googled around and found the TorCtl module as a method for controlling tor, but can't find a way to get a new identity. Here's what I have so far for atleast connecting to tor, but can't get any farther. from TorCtl import TorCtl conn = TorCtl.connect(controlAddr="127.0.0.1", controlPort=9051, passphrase="123") Any help

Java Tor Lib : How to setup Orchid Tor Lib with Java?

二次信任 提交于 2019-11-30 04:34:05
I am trying to implement Orchid Tor lib with Java code; unfortunately and because the lack of documentation I am not able to make it work, this is what I did: .................... private final static String DEFAULT_SOCKS_PORT = "9050"; TorClient torClient = new TorClient(); torClient.addInitializationListener(new TorInitializationListener() { @Override public void initializationProgress(String string, int i) { System.out.println(">>> [ "+ i + "% ]: "+ string); // throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }

Doing http requests through a SOCKS5 proxy in NodeJS

丶灬走出姿态 提交于 2019-11-29 20:11:14
I'm planning to do a series of HTTP requests in NodeJS though Tor. Tor uses SOCKS5 so I went out and searched for a way to proxify HTTP requests in NodeJS. I'm planning to the the default http.request() function to do the work. However, I can't seem to find a way to use a proxy with that. Someone suggested that I could do this: var http = require("http"); var options = { host: "localhost", port: 9050, path: "http://check.torproject.org", method: 'GET', headers: { Host: "http://check.torproject.org", } }; var req = http.request(options, function(res) { res.on('data', function (chunk) { console

How can I force Tor to use a new identity without using Vidalia?

℡╲_俬逩灬. 提交于 2019-11-29 18:12:51
问题 I am using Tor in my project. How can I force Tor to use a new identity from my program? 回答1: Open a telnet connection to the control port of your Tor service and send it SIGNAL NEWNYM . I expect you could use any Delphi telnet library. My first choice would be Indy; make sure you have the latest version. 来源: https://stackoverflow.com/questions/3991639/how-can-i-force-tor-to-use-a-new-identity-without-using-vidalia

Send HTTP request from different IPs in Node.js

我的梦境 提交于 2019-11-29 17:35:00
问题 Is there a way to send an HTTP request with a different IP from what I have in Node.js? I want to send a request from an IP that I choose before, and not from the IP of the server or from my computer’s IP. I know that Tor Project does this kind of manipulation, but I didn't find any library that Tor uses to do this stuff. Is there any API or Node.js module that Tor uses to handle this kind of private browsing in Node.js? 回答1: In the node http module there is a localAddress option for binding

multithreaded crawler while using tor proxy

点点圈 提交于 2019-11-29 15:56:57
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,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Referer": "http://thewebsite2.com", "Connection