socks

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

Updating SOCKS proxy via apt.conf doesn't update Network Manager>>Proxy section

本秂侑毒 提交于 2019-12-13 08:48:25
问题 Os: Ubuntu 16.10 What I'm trying to do: I've got external socks v5 server. I want to *send all local WEB traffic to socks server by doing this: ssh -D 1337 -f -C -q -N admin@socks_server_ip; #Connection no issues here ps aux | grep 1337 # I see PID related to this connection, no issues here as well Update /etc/apt/apt.conf as: Acquire::socks::proxy "socks://user:pass@host:port/"; #No issues in updating apt.conf as well Problem: When I'm done succesfully editing apt.conf file, I should be able

SOCKS in C/C++ or another language?

北战南征 提交于 2019-12-12 18:50:48
问题 How do i add SOCKS support to my application? and where can i get the libs? any help appreciated thanks 回答1: You could try Boost.Asio library. It contains an example with SOCKS4 protocol implementation. 回答2: VC++ has extensive support if you want to try on Windows. Google "Windows sockets for beginners msdn", great info for windows sockets... If linux, try C sockets by beej... Just google beej's guide for sockets... 来源: https://stackoverflow.com/questions/2829637/socks-in-c-c-or-another

How to use SOCKS proxies to make requests with aiohttp?

余生颓废 提交于 2019-12-12 13:15:32
问题 I am trying to use aiohttp to make asynchronous HTTP requests over multiple SOCKS proxies. Basically, I am creating a pool of Tor clients with different IP addresses, and want to be able to route HTTP requests through them using aiohttp . Based on the suggestions here and here, I have been trying to use aiosocks, but the examples in those threads do not work (if they ever did) because they are based on an old version of aiosocks with a different API. Documentation and examples of using

ffmpeg socks4 proxy parameter with rtmp

你说的曾经没有我的故事 提交于 2019-12-12 10:22:00
问题 I am unable to capture some livestreams because of the proxy issues. So in rtmpdump i can use: rtmpdump -v -r rtmp://a_rtmp_address -p http://a_http_address -S 85.185.244.101:1080 -B 10 -o aaa.flv But I need to use ffmpeg or avconv. But I can not find a parameter corresponds to that -S 85.185.244.101:1080 parameter. Can anyone please give me an ffmpeg command corresponding to this rtmpdump command. 回答1: You should place socks option in quotes with rtmp:// address. Options must be in the form

use NET::SMTP SSL/TLS with SOCKS

我是研究僧i 提交于 2019-12-12 10:14:05
问题 I have some realization of bind, connect to SOCKS and connect to SMTP server through SOCKS. How i can use this connect with SSL/TLS NET::SMTP? This question not help me, because SSL handshake can't start. DEBUG: .../IO/Socket/SSL.pm:683: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: handshake failed because socket did not became ready Here realization of connect to remote server via proxy: sub connect { my ($ip, $port, $is_ssl, $pid, $server) = @_; if

Emulating SSH's SOCKS Proxy Tunnel in Python

ⅰ亾dé卋堺 提交于 2019-12-12 09:06:03
问题 I used to create a SOCKS connection between a windows client and linux server using SSH server and putty. However, the firewall between the client and server is now able to identify SSH packets and drop them. I was wondering if I can emulate such behavior of SSH tunnels using python? Any recommendations on libraries or readings? Thanks in advance. 回答1: Yes, yes you can. Pick your poison. http://socksipy.sourceforge.net/ http://sourceforge.net/projects/pysocks/ http://code.google.com/p

How to use a SOCKS 5 proxy with cURL?

徘徊边缘 提交于 2019-12-12 07:09:05
问题 Normal proxies (ex: 72.41.132.22:3128 ) work well with cURL, however when I use SOCKS 5 proxies with username/pass, It just gives me "[1" on the page. Is there a way to use SOCKY 5 proxies with cURL ? $proxy = "cagsan:jw22wdw@108.61.25.223:34792"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_PROXY, $proxy); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch

How do I use Proximo as a SOCKS proxy in Java?

£可爱£侵袭症+ 提交于 2019-12-12 01:03:28
问题 I've got a Java app that runs on Heroku that needs to access Salesforce, which only allows API access from IPs that you whitelist. Proximo is a Heroku add-on that allows you to proxy all of the requests your app makes through a single server with a static IP. Unfortunately, the standard way of doing this—running your app within Proximo's wrapper—mucks up the creating of a listening socket for my app's webserver, as it seems to for a number of folks. How can I use Proximo as a SOCKS proxy in

HTTP call with Socks 4 proxy

徘徊边缘 提交于 2019-12-11 19:33:53
问题 I need to call a server using a socks 4 proxy. I am on java version 1.6. If we use something like this then it treats the SOCKS proxy as version 5. URL url = new URL("https://www.google.com"); URLConnection connection = null; SocketAddress proxySocketAddress1 = new InetSocketAddress("XXXXXXXXXX", 8081); Proxy proxy = new Proxy(Proxy.Type.SOCKS, proxySocketAddress1); connection = url.openConnection(proxy); connection.setConnectTimeout(150000); connection.connect(); I can setup socks proxy at