Questions tagged [socks]

Socket Secure (SOCKS for short) is an Internet protocol that routes network packets between a client and server through a Proxy server.

Resources:

  • RFC 1928 SOCKS Protocol Version 5
  • RFC 1929 Username/Password Authentication for SOCKS V5
  • RFC 1961 GSS-API Authentication Method for SOCKS Version 5
  • RFC 3089 A SOCKS-based IPv6/IPv4 Gateway Mechanism
774 questions
8
votes
2 answers

cURL request using socks5 proxy fails when using PHP, but it works through the command line

cURL + proxy noob here, having a hard time. I'm having trouble trying to retrieve a web page from a remote secure server via a proxy. Everything has apparently been set up correctly by a remote dev, such that the following command line instruction…
HairMachine
  • 103
  • 1
  • 1
  • 7
8
votes
1 answer

Proxy - Convert HTTP requests to SOCKS5

I'm currently doing some testing work with TOR and ran in to a small problem. Tor's client only supports receiving connections through a SOCKS5 protocol, but the applications I'm using only support HTTP Proxy Protocals. Is it possible to put…
Dustin
  • 6,207
  • 19
  • 61
  • 93
7
votes
2 answers

Debugging iPhone traffic using Charles Proxy Socks feature?

I'm trying to use Charles Proxy in order to debug some performance issues on my iPhone. I got it all working using the "http proxy mode", but fail to do so with the "socks proxy mode". Since iOS exhibits different behavior under http proxy than in…
r0u1i
  • 3,526
  • 6
  • 28
  • 36
7
votes
3 answers

How to configure a tor proxy on windows?

How do I configure a tor proxy on windows? For example, I want to run the following python script through a tor proxy: import requests proxies = { 'http':'socks5h://localhost:9050', 'https':'socks5h:/localhost:9050' } url =…
Lord Elrond
  • 13,430
  • 7
  • 40
  • 80
7
votes
1 answer

Connect to Kafka through SOCKS Proxy

I have a Kafka cluster running on AWS. I want to connect to the cluster with the standard kafka-console-consumer from my application server. The application server has access to the internet via a SOCKS-Proxy. No authentication is required How do I…
joschal
  • 155
  • 1
  • 11
7
votes
2 answers

How to write a DownloadHandler for scrapy that makes requests through socksipy?

I'm trying to use scrapy over Tor. I've been trying to get my head around how to write a DownloadHandler for scrapy that uses socksipy connections. Scrapy's HTTP11DownloadHandler is here:…
Nilesh
  • 1,222
  • 1
  • 11
  • 23
7
votes
2 answers

How To Authenticate Socks 5 Proxies Inside PAC (Proxy Auto Config) Files

How can you setup PAC files to use SOCKS proxies with authentication? Using this simple PAC file as an example: function FindProxyForURL(url, host) { return "SOCKS 69.123.133.75:7257;"; } How would you connect to that socks proxy using a username…
darkAsPitch
  • 1,855
  • 4
  • 23
  • 35
7
votes
3 answers

Send and receive via SOCKS5 c++

I am playing with SOCKS5 proxy ( TOR ). I am able to estabilish connection but now I dont know how to send and receive data to/from destination. Thanks for help. Code: #include #include #include #pragma…
olaf trolldalen
  • 71
  • 1
  • 1
  • 2
7
votes
4 answers

How to use Tor socks5 in R getURL

I want to use Tor in getURL function in R. Tor is working (checked in firefox), socks5 at port 9050. But when I set this in R, I get the following error html <- getURL("http://www.google.com", followlocation = T, .encoding="UTF-8", .opts =…
bartektartanus
  • 15,284
  • 6
  • 74
  • 102
7
votes
1 answer

CFStream crashes after setting SOCKS proxy config

What's wrong with the code below? I use AsyncSocket to connect to a SOCKS proxy and set the proxy settings on onSocketWillConnect delegate method. If I omit the calls to CFReadStreamSetProperty and CFWriteStreamSetProperty the socket connection will…
LaN
  • 228
  • 2
  • 9
7
votes
2 answers

Proxying UDP over SOCKS5 proxy in Python

Is it possible to send UDP datagrams over SOCKS5 proxy in Python using any SOCKS client lib? SocksiPy does not seem to work or maybe I am just using it wrong. The following code does not work, it tries to connect to the destination directly: s =…
Alex
  • 907
  • 2
  • 8
  • 22
7
votes
1 answer

How to use a TurnSocket (XEP-0065: SOCKS5 Bytestreams) connection? XEP-0096: SI File Transfer? [socket writeData]?

I'm attempting file transfer via XMPP on iOS using the XMPPFramework and OpenFire. The base of my code is from the following tutorial. I have a successful TurnSocket (XEP-0065: SOCKS5 Bytestreams) connection, but I can't work how to use it to send…
Andy A
  • 4,191
  • 7
  • 38
  • 56
6
votes
3 answers

mysql proxy socks

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…
Alexandru Luchian
  • 2,760
  • 3
  • 29
  • 41
6
votes
4 answers

Connecting to a .NET webservice via a SOCKS5 proxy

I'm attempting to connect through a SOCKS5 proxy to a webservice. Currently, my app.config is as follows:
Dan Fuller
  • 1,133
  • 11
  • 16
6
votes
2 answers

How to use URLConnection Timeout

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 =…
Austin
  • 4,801
  • 6
  • 34
  • 54