B
B
BrakeGames2014-09-13 21:58:19
Python
BrakeGames, 2014-09-13 21:58:19

How to establish data exchange between a client and a server in python through a proxy?

I came across this article . I want to do the same, but through SOCKS5 proxy. That is, the client sends hello world, the server sends back the same thing, the client grabs it and outputs it to the console. I've been fighting for the third day, I hope for help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
s1dney, 2014-09-14
@s1dney

Are you trying to implement socks support yourself or what?
Check out this socksipy module

Y
yttrium, 2014-09-14
@yttrium

You program the server in the same way as in the article, the client must connect to the proxy.
Before talking to your server, you need to negotiate with the proxy using the SOCKS5 protocol (hello, authentication, etc.).
Second option. This is when the server first connects to the proxy and negotiates with it about the port assignment. Further, clients transparently communicate by connecting to this port.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question