PySocks icon indicating copy to clipboard operation
PySocks copied to clipboard

A SOCKS proxy client and wrapper for Python.

Results 60 PySocks issues
Sort by recently updated
recently updated
newest added

Hi there, while monkeypatching a 3rd-party module, I observed a different behavior when calling `socket.socket.recv(0)` and `socks.socksocket.recv(0)`. The former call will return `b''` but the latter one will just stuck...

Nowadays many proxy servers are authenticating the user by a token or key, instead username and password. Every request shall include the key, in a way similar to: http://myproxyserver.com:51337/?apiKey=bW3ZXxHJdjfodhsfodshfoisdofwe6wjCU Is...

Hi Anorov, At pypi.org there are two packages of PySocks. **https://pypi.org/project/PySocks/ (version 1.7.1) https://pypi.org/project/PySocks3.9/ (version 2.0)** I see that as suspicious, and maybe there is a risk that PySocks3.9 may...

i used the code socks.set_default_proxy(socks.SOCKS5, "localhost") socket.socket = socks.socksocket This is working fine, when I want to switch a different proxy port, it returns an error saying I can't connect,...

https://pypi.org/project/PySocks/ shows that latest version is 1.7.1 and looks like in git repo is missi gthat version tag.

Im trying to implement https://github.com/ikvk/imap_tools/blob/master/examples/pysocks_proxy.py, which I edited to: https://gist.github.com/chwba/0bfcf2c043a8da8fd4f8588b624a5eab and implemented like this: ```python from socks import HTTP import MailBoxProxy with MailBoxProxy(p_proxy_type=HTTP, p_proxy_addr='proxy_ip', # 1.2.3.4 or zproxy.lum-superproxy.io p_proxy_port=int(proxy_port), #...

I cant use proxy ipv6 with pysocks Please I need to fix the code to use ipv6

`wrapmodule` is defined simply as: https://github.com/Anorov/PySocks/blob/c2fa43cbe1091e799e248e8e4433978916791a8b/socks.py#L146 However, that will affect not just the `socket` function as it is visible from the module, but from everywhele else as well. Therefore, e.g....

This is my simple script with PySocks: ``` Python import socks import socket s = socks.socksocket(socket.AF_INET, socket.SOCK_DGRAM) s.set_proxy(socks.SOCKS5, "127.0.0.1", 9922) s.connect(("10.0.21.2", 20000)) s.sendall("HELLO".encode('utf-8')) print(s.recv(4096)) ``` As rfc1928 says, each UDP...

I have this code: ``` import socket import socks import random data = random._urandom(1024) socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "IP_OF_SOCK5", PORT_OF_SOCK5, True) s = socks.socksocket(socket.AF_INET, socket.SOCK_DGRAM) s.sendto(data, ('IP_DST',PORT_DST)) ``` But I receive these errors:...