socks

How do I install Socks / SocksIPy on Ubuntu?

徘徊边缘 提交于 2019-11-29 06:17:34
问题 I am new to python and would like to install SocksIPy on Ubuntu (running within a VirtualBox vm). The README says to place the socks.py file into my lib/site-packages directory. I do not know where to locate this directory. The Terminal command python socks.py install from the root runs, but does not install correctly (error "No module named socks" when I run import socks in a python script) SocksIPy link http://socksipy.sourceforge.net/ Can someone suggest a way to get socks/socksipy running

how to view meteor DDP traffic?

寵の児 提交于 2019-11-28 21:27:24
meteor uses DDP over socks / websockets. How do i get any type of view of what's going on in the browsers debug console? In the network panel of chrome at least there is just a single "websocket" connection without much info on the traffic running over it. I'm aware of arunoda's DDP analyzer and proxy but was looking for other ways to get basic information on traffic. I would have thought chrome's debugging tools would have a bit more support for protocols other than HTTP, and interested to know what else others find useful. You could try logging the messages as a simple starting point.

Use WebClient with socks proxy

烂漫一生 提交于 2019-11-28 17:56:33
Is there any way to use a socks proxy with WebClient ? Specifically with the DownloadString method that it provides? I don't want to use any third party stuff like privoxy, freecap whatever and I can't use commercial libraries like those from Chilkat. I tried using stuff from http://www.mentalis.org/ in fact I used their WebRequest implementation but they don't seem to have something similar for WebClient. SOCKS is not supported directly by the WebRequest / WebResponse classes and by extension, the WebClient class (it relies on WebRequest to do its work). It really can't, as it works on the

Python's requests “Missing dependencies for SOCKS support” when using SOCKS5 from Terminal

岁酱吖の 提交于 2019-11-28 17:14:27
I'm trying to interact with an API from my Python 2.7 shell using a package that relies on Python's requests. Thing is the remote address is blocked by my network (university library). So to speak to the API I do the following: ~$ ssh -D 8080 name@myserver.com And then, in new terminal, in local computer: ~$ export http_proxy=socks5://127.0.0.1:8080 https_proxy=socks5://127.0.0.1:8080 Then I run the program in Python console but fails: ~$ python >>> import myscript >>> id = '1213' >>> token = 'jd87jd9' >>> connect(id,token) File "/home/username/.virtualenvs/venv/local/lib/python2.7/site

General SOCKS server failure when switching identity using stem

浪子不回头ぞ 提交于 2019-11-28 11:43:21
I have Tor running on a remote server (Ubuntu) on port 9150 with the control port on 9151. I've confirmed both are running via netstat -ant. Here is my code which is eliciting the SOCKS5Error: 0x01: General SOCKS server failure error. import socks import socket socks.set_default_proxy(socks.SOCKS5, server_ip, 9150) socket.socket = socks.socksocket I can make requests from any library and successfully get responses back with a tor ip address. However the following is what causes the error: from stem import Signal from stem.control import Controller with Controller.from_port(port = 9151) as

How to use URLConnection Timeout

帅比萌擦擦* 提交于 2019-11-28 10:23:09
I am trying to sort through a list of SOCKS proxies, and figure out which ones have a connect and read time of less than 1000ms, here is my code for(Proxy p : proxies) { try { URLConnection testConnection = testUrl.openConnection(p); testConnection.setConnectTimeout(TIMEOUT_VALUE); testConnection.setReadTimeout(TIMEOUT_VALUE); success.add(p); } catch(SocketTimeoutException ste) { System.out.println("Proxy " + p.address().toString() + " timed out."); } } But every single one of them passes the test, even when I do TIMEOUT_VALUE = 1; What am I doing wrong? Thanks for any help. I assume your

How to use Socks 5 proxy with Apache HTTP Client 4?

走远了吗. 提交于 2019-11-28 05:02:53
I'm trying to create app that sends HTTP requests via Apache HC 4 via SOCKS5 proxy. I can not use app-global proxy, because app is multi-threaded (I need different proxy for each HttpClient instance). I've found no examples of SOCKS5 usage with HC4. How can I use it? ok2c SOCK is a TCP/IP level proxy protocol, not HTTP. It is not supported by HttpClient out of the box. One can customize HttpClient to establish connections via a SOCKS proxy by using a custom connection socket factory EDIT: changes to SSL instead of plain sockets Registry<ConnectionSocketFactory> reg = RegistryBuilder.

how to view meteor DDP traffic?

一个人想着一个人 提交于 2019-11-27 13:52:09
问题 meteor uses DDP over socks / websockets. How do i get any type of view of what's going on in the browsers debug console? In the network panel of chrome at least there is just a single "websocket" connection without much info on the traffic running over it. I'm aware of arunoda's DDP analyzer and proxy but was looking for other ways to get basic information on traffic. I would have thought chrome's debugging tools would have a bit more support for protocols other than HTTP, and interested to

Use WebClient with socks proxy

随声附和 提交于 2019-11-27 10:49:20
问题 Is there any way to use a socks proxy with WebClient ? Specifically with the DownloadString method that it provides? I don't want to use any third party stuff like privoxy, freecap whatever and I can't use commercial libraries like those from Chilkat. I tried using stuff from http://www.mentalis.org/ in fact I used their WebRequest implementation but they don't seem to have something similar for WebClient. 回答1: SOCKS is not supported directly by the WebRequest/WebResponse classes and by

mysql proxy socks

▼魔方 西西 提交于 2019-11-27 08:09:37
问题 Plain and simple, can anyone explain me how to connect to a mysql server through a proxy (socks4/5). Preferable via the mysql command line (although there are no options for that in the client). If it's not possible through the mysql command line than ANY other method will work. 回答1: To my knowledge, it can't be done through the command line because the mysql command does not support proxy connections. If both client and server are on a UNIX machine and one of them is accessible from the