-
Notifications
You must be signed in to change notification settings - Fork 261
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
sockshandler.py may need a little update #134
Comments
See #133 , you need the 1.7.1 version. |
Haaa |
I think you could re-compare original with your patched 1.7.0. |
I found a issue, only from python 32 to 36, class |
My bad. |
I have found the issue, import socks
socks.socksocket.proxy = 'something'
sock = socks.socksocket()
print(sock.proxy) # (None, None, None, None, None, None) In fact, you directed open |
Yes, that two fix I posted before are all wrong. Socks4 with no bug. What I posted before it's mistake. It was all about remote dns. |
Didn't test python2, here tested in python3.
Whether your set rdns
same pdb result
socks.py receive request in ip form, already resolve dns . |
should be socks.set_default_proxy(socks.SOCKS5, "localhost", rdns=True)
socks.set_default_proxy(socks.SOCKS5, "localhost", rdns=False)
# use default port 1080 or socks.set_default_proxy(socks.SOCKS5, "localhost", your_port, True)
socks.set_default_proxy(socks.SOCKS5, "localhost", your_port, False) |
See the old post, about dns. |
Forget #22, if you do not use |
already 3 years have passed, and now it looks like sockshandler doesn't work anymore on python 3.10. I've receive an issue on my repo: nil0x42/phpsploit#194 It's frustrating, i'll have to make a copy of the lib patched by #135 instead of waiting for a proper release. @Anorov , would you kindly consider merging pull requests ? |
Thank you @SeaHOH ! |
sockshandler.py from PySocks is not maintained anymore: Anorov/PySocks#134 phpsploit is now using Extproxy to supports socks proxy, as kindly advised by @SeaHOH
sockshandler.py from PySocks is not maintained anymore: Anorov/PySocks#134 phpsploit is now using Extproxy to supports socks proxy, as kindly advised by @SeaHOH
New Python3
When create opener this way :
source code sockshandler.py line 49,
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
Will cause SNI(server name indication) missing , that cloudflare cdn may 403 error or blank page.
Multi sites host on same ip need SNI to tell apart request to which.
https://docs.python.org/3.7/library/ssl.html#ssl.wrap_socket
Hotfix:
mod this class
to this
The text was updated successfully, but these errors were encountered: