Drewsif / PySecretSOCKS

A python socks server for tunneling a connection over another channel
MIT License
61 stars 15 forks source link

connection doesn't get established #2

Open yutanicorp opened 5 years ago

yutanicorp commented 5 years ago

Hello Drew! Thank you for creating this program. I could really use it well, but unfortunately, I stumbled upon an issue.

REPRODUCTION STEPS

  1. execute PySecretSocks with Python 3.7.3 on client
  2. configure proxifier Proxychains4 to proxify traffic on localhost:1080 to remote host on 10.10.1.72
  3. run proxifier Proxychains4 (on client) to proxify netcat traffic through PySecretSocks bind on localhost:1080
  4. netcat on remote host states "Reconnection from 10.10.1.1" and seems to be waiting
  5. a moment later, Proxychains4 on client raises error: "Timeout"
  6. netcat on remote host stops

OS: Linux Fedora 29 Hardware: x86_64

Regarding your example.py, why do you state: "fake remote server"? A remote server is necessary. Perhaps, I misinterpreted your code, but both the Client and Server classes need to be instantiated to have a functioning SOCKS Proxy Server?

yutanicorp commented 5 years ago

Hi Drew, could you please let me know if you want to look into this? Thank you

Drewsif commented 5 years ago

So the part I think you're missing is that you don't have a remote PySecretSocks server. If you look at the example here you can see the server object created to accept a remote connect. That's the "fake server" in the example

From you're reproduction steps I'm not sure what you have running on the remote host. Does that point you in the right direction or did I misunderstand?