Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for version 4 and 5 #5

Open
NikolaiT opened this issue Jan 28, 2014 · 2 comments
Open

Support for version 4 and 5 #5

NikolaiT opened this issue Jan 28, 2014 · 2 comments

Comments

@NikolaiT
Copy link

Hey Linus

I added in a fork of twisted-socks support for SOCKS version 4 and 5. https://github.com/NikolaiT/twisted-socks

What do you think of it? Can you say shortly if I broke some twisted paradigm or made a major mistake elsewhere?

Regards

@ln5
Copy link
Owner

ln5 commented Feb 2, 2014

Cool!

Haven't looked closely, but a couple of points:

  • could 4 and 4a client protocols share more code?
  • are you giving up your copyright to tor project? (socksclient.py)
  • i'd actually be interested in gssapi support
  • did you test it? does SOCKS4a still work?
  • seems like you changed the behaviour when it comes to socks username and password, or am I reading this wrong?

@NikolaiT
Copy link
Author

NikolaiT commented Feb 4, 2014

Hey

  • 4a inherits the class from 4 and just overwrites the sendRelayRequest() method, that is responsible for connecting to the socks server (Because 4a also provides remote hostname resolving)
  • Sure, the copyright stays the same as the source had before I built on it (TOR)
  • gssapi will follow as soon as I have time :)
  • I tested (manually) all the code for
    • v5 with dante socks server on my VPS
    • v4 and v4a with TOR (127.0.0.1:9050) and twistd -n socks
  • Socks username/password is a authentication mechanism for v5, so it's a internal to the protocol, but maybe I am getting your question wrong here?

Edit: I tested again all versions, seems like the basic functionality works just fine!

Link to repo: https://github.com/NikolaiT/twisted-socks/

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants