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

SOCKS proxy support #229

Open
Te-k opened this issue Jun 2, 2017 · 7 comments
Open

SOCKS proxy support #229

Te-k opened this issue Jun 2, 2017 · 7 comments

Comments

@Te-k
Copy link

Te-k commented Jun 2, 2017

If I am right, SSlyze only supports HTTP/HTTPs proxy. Is there any plan to implement socks proxy support anytime soon?

@nabla-c0d3
Copy link
Owner

Yes you are right. This seems like a niche feature and support for HTTP proxies should be more than enough, so there is no plan to support SOCKS proxies.

@acdha
Copy link

acdha commented Jul 5, 2017

I just ran into a situation where it would be extremely useful to be able to run sslyze using OpenSSH's dynamic proxy mode through a bastion host where I'd prefer not to have to install the entire build toolchain. I tried using proxychains-ng but that crashes partway through the scan.

@nabla-c0d3
Copy link
Owner

But is this OpenSSH proxy feature a SOCKS proxy? And why not use a normal HTTP proxy (which is already supported by SSLyze)?

@acdha
Copy link

acdha commented Jul 6, 2017

Yes: it's a full SOCKS 5 proxy: https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding#Dynamic_Port_Forwarding

The main selling point is not needing to install anything on the bastion host, especially not a new network service on what should be a very locked down system, and there are related points about reusing your existing authentication, logging, etc.

@BenjaminHae
Copy link

I just tried

ssh -L 8443:localhost:443 server

Then doing

sslyze --regular 127.0.0.1:8443

works great.

@acdha
Copy link

acdha commented Jul 6, 2017

@BenjaminHae the advantage of the dynamic proxy mode is that it works for more than one host/port and doesn't break hostname validation. I never encourage that in standard usage since training admins to ignore security warnings inevitably leads to false negatives.

@nabla-c0d3 nabla-c0d3 reopened this Jul 6, 2017
@nabla-c0d3
Copy link
Owner

This could be used https://github.com/Anorov/PySocks

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

No branches or pull requests

4 participants