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

Add socks 4a proxy support #70

Open
adfoster-r7 opened this issue Dec 2, 2024 · 0 comments
Open

Add socks 4a proxy support #70

adfoster-r7 opened this issue Dec 2, 2024 · 0 comments

Comments

@adfoster-r7
Copy link
Contributor

adfoster-r7 commented Dec 2, 2024

Requested from #69

Let's update rex-socket to support socks4a; current the DNS resolution happens locally - and doesn't support the ability to perform DNS resolution remotely via the socks proxy:

when 'socks4'
supports_ipv6 = false
setup = [4,1,port.to_i].pack('CCn') + Rex::Socket.resolv_nbo(host, supports_ipv6) + Rex::Text.rand_text_alpha(rand(8)+1) + "\x00"
size = sock.put(setup)

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

1 participant