socks

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

Using a socks proxy with git for the http transport

安稳与你 提交于 2020-01-08 18:18:28
问题 How to make git use a socks proxy for HTTP transport? I succeed in configuring git with GIT_PROXY_COMMAND to use a socks proxy for GIT transport. Also, I have configured my .curlrc file to defined the socks proxy and I can fetch information directly with curl command like: curl http://git.kernel.org/pub/scm/git/git.git/info/refs?service=git-upload-pack But how to use a socks proxy with git to retrieve data using the HTTP transport protocol like: git clone http://git.kernel.org/pub/scm/git 回答1

How to sniff non-http traffic (sockets) on Genymotion/Android Emulator?

限于喜欢 提交于 2020-01-06 07:04:33
问题 I'm trying to reverse engineer one Android app's traffic and it's using sockets, xmpp or something else, but not http(s) on some features. I know this because Charles does not see some requests, but data is definitely coming from the server for sure (e.g. chat messages). Android allows to set http(s) proxy, not socks. ProxyDroid doesn't work on genymotion, because it's x86 and ProxyDroid doesn't support that. Tried Drony app on genymotion, which supposedly should allow socks proxy, but once I

How to forward HTTPS traffic from a SOCKS proxy to HTTP proxy

醉酒当歌 提交于 2020-01-01 19:21:36
问题 I have written a SOCKS proxy which works with both HTTP and HTTPS traffic if chaining is turned off. If chaining is turned on and the forwarding host and port belong to a filtering HTTP proxy then only HTTP traffic can flow. HTTPS traffic does not flow and reports an SSL error. Note that the HTTP proxy does handle HTTPS traffic when the request is coming direct from the browser and not from the SOCKS server. As an example if I make a request to https://www.google.com the following occurs: 1)

java runtime 6 with socks v5 proxy - Possible?

ⅰ亾dé卋堺 提交于 2020-01-01 05:06:11
问题 I have written an application that (amongst other things) runs a local service in windows that acts as a SOCKS v5 proxy for Firefox. I'm in the debugging phase right now and have found certain websites that don't work correctly. For example the Java Applet for Picture Uploading on Facebook.com fails because is is unable to lookup domains. My app overrides a hidden FF config setting network.proxy.socks__remote__dns setting it to true . The whole purpose of the app is to allow access to

SOCKS5 connection times out (GCDAsyncSocket). (OpenFire, XEP-0065 and iOS XMPPFramework)

落花浮王杯 提交于 2019-12-30 05:22:10
问题 Problem : I am attempting a TURNSocket (XEP-0065 - SOCKS5) using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and receive files. However, in most scenarios, the receiver returns no response. I currently suspect the problem is to do with the OpenFire proxy server, which times out! This is set up on the local network, and I have edited the hosts file to point to it. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone

General SOCKS server failure with python tor but working from tor browser

喜欢而已 提交于 2019-12-25 08:04:10
问题 I would like to use tor from python to automate requests. I made a test with a page to check IP and it works. I then pointed to the site I want to, and apparently they avoid a tor endpoint because (see stack trace below) - but it works from tor browser. Any better way to debug response of browser? (e.g. connection refused) Which things I am missing to query from python instead than from browser? I am trying with something like: socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5 , "127.0.0.1", 9150

Why doesn't IE/Chrome on Windows support SOCKS5 proxies on port 27977? [closed]

99封情书 提交于 2019-12-25 07:59:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am working with a client who uses proxies on their Windows machines. They recently have come to me to solve the issue of why Interenet Explorer and Chrome refuse to use SOCKS5 proxies on port 27977. I believe it has something to do with the fact that all the proxies on 27977 are implemented in pure SOCKS5. I

Using IO::Socket::SSL over an IO::Socket::SOCKS proxy

老子叫甜甜 提交于 2019-12-24 08:07:13
问题 I'd like to mix SSL and SOCKS sockets. In other words, I want to send TLS encrypted data over a SOCKS proxy and I'd like to use IO::Socket::SSL and IO::Socket::Socks The only option I can think of is to duplicate IO::Socket::SSL into an IO::Socket::SocksSSL class that inherit from IO::Socket::Socks. That's the only way to have the right order for (eg send). I need first to have the SSL method invoked and then it will invoke the parent (IO::Socket::Socks) send. Same for connect where the SSL

PHP CURL with proxy causes CLOSE_WAIT on socket

人盡茶涼 提交于 2019-12-24 01:53:12
问题 I'm using PHP curl library to establish connection and retrieve content from WEB - the usual. I have multiple SOCKS5 proxy servers running on localhost on ports from 10300 to 10350 and PHP selects a port randomly. My code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_PROXY, "localhost:".mt_rand(10300, 10350)); curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);