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
11
votes
1 answer

how to use Socks4/5 Proxy Handlers in Netty Client (4.1)

I need to configure socks proxy in Netty client (to request different sites via socks4 or 5 proxies). Tried a lot of proxies from free socks lists (like www.socks-proxy.net, http://sockslist.net/ etc) but with no luck: @Test public void testProxy()…
yetanothercoder
  • 1,689
  • 4
  • 21
  • 43
11
votes
1 answer

Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites?

I'm experimenting with Node and socks5-https-client. For some reason, certain Tor hidden service (.onion) sites return with a connection error. For example, connecting to DuckDuckGo (3g2upl4pq6kufc4m.onion) works and returns HTML. However,…
maelswarm
  • 1,163
  • 4
  • 18
  • 37
11
votes
3 answers

How To Find Proxy is Http or Socks

Can anyone tell me how to find the proxy server is http or socks ? Is that based on port number ? how it differs ? Thanks in advance
user2696179
11
votes
2 answers

Why Tor cant access localhost pages

I have Tor running and a python script to get web pages: socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050) socket.socket = socks.socksocket print urllib2.urlopen(URL).read() However, if the URL is http://localhost/some_page.html I…
Veni_Vidi_Vici
  • 291
  • 1
  • 6
  • 16
10
votes
4 answers

How to use SOCKS in Java?

I use 100% working socks and I can't connect through my application. SocketAddress proxyAddr = new InetSocketAddress("1.1.1.1", 12345); Proxy pr = new Proxy(Proxy.Type.SOCKS, proxyAddr); try { HttpURLConnection con =…
Clark
  • 2,083
  • 6
  • 32
  • 47
10
votes
2 answers

DNS Request over SOCKS5 using Python 3

I have to make a DNS request using python 3 over a SOCKS 5 proxy. (consequently NO DNS requests are made from my ip address, the socks5 proxy does it for me and should respond with the according A/AAA records or nothing/something else if it can not…
tr4shitter
  • 111
  • 1
  • 3
10
votes
1 answer

Specify SOCKS Proxy For NightmareJS?

I'm able to set an HTTP proxy just fine for NightmareJS but how do I specify the type (http/socks5/socks4)? Here's the code I use to set an HTTP proxy: const nightmare = Nightmare({ show:true, switches: { …
xendi
  • 2,332
  • 5
  • 40
  • 64
10
votes
2 answers

How to make HTTP request through a (tor) socks proxy using python?

I'm trying to make a HTTP request using python. I tried changing my windows system proxy (using inetcpl.cpl ) url = 'http://www.whatismyip.com' request =…
claws
  • 52,236
  • 58
  • 146
  • 195
9
votes
3 answers

Creating a go socks5 client

So I'm looking at the net/proxy docs and there is no examples at all of how to use any of its methods. I'm looking into using socks5. This is the how the function looks: func SOCKS5(network, addr string, auth *Auth, forward Dialer) (Dialer,…
Rodrigo
  • 3,129
  • 3
  • 33
  • 61
9
votes
1 answer

Is it possible to transport a TCP connection over websockets or another protocol?

I'm wondering, is it possible to transport/tunnel a TCP connection though the websockets protocol? There is a websockets package and it seems I could io.copy the TCP connection into the websockets connection but I don't know how to reassemble it as…
Anthony Hunt
  • 1,470
  • 5
  • 20
  • 32
9
votes
2 answers

java runtime 6 with socks v5 proxy - Possible?

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…
rwired
  • 1,112
  • 3
  • 15
  • 28
8
votes
2 answers

Connect to Proxy (SOCKS) Database in python

I am trying to connect to a database that needs proxy (socks) to be able to connect, if I use the proxy connection manually, I can connect, but I need to make the script connect to the proxy (socks) of the machine to make this SELECT SCRIPT import…
Luis Henrique
  • 701
  • 15
  • 36
8
votes
0 answers

How can I test implementations of SOCKS5 proxy 'BIND' and 'UDP ASSOCIATE' commands?

Using RFC 1928, I have implemented SOCKS5 'BIND' and 'UDP ASSOCIATE' commands on Java, but I haven't found any way to test their work. I have tried browser (Firefox), FTP server and client in active and passive mods (run server on my Android phone…
Albert
  • 81
  • 3
8
votes
2 answers

Configuring iTerm and Git to use a proxy on OS X

I am successfully connecting to the internet using an application called tether for a jailbroken iphone. (I know there's better options now). My iphone is connected to my laptop's wifi "device network". I have in my OS X network settings a…
kinet
  • 1,790
  • 3
  • 20
  • 32
8
votes
3 answers

Using a SOCKS proxy from C++

How I can use a SOCKS proxy from my C++ socket program?
Emma
  • 231
  • 1
  • 4
  • 10
1 2
3
51 52