/opt/alt/python38/lib/python3.8/site-packages/__pycache__
NameSizeModeActions
async_lru.cpython-38.opt-1.pyc53700644editdlrm
async_lru.cpython-38.pyc53700644editdlrm
cached_property.cpython-38.opt-1.pyc43540644editdlrm
cached_property.cpython-38.pyc43540644editdlrm
distro.cpython-38.opt-1.pyc383630644editdlrm
distro.cpython-38.pyc383630644editdlrm
pam.cpython-38.opt-1.pyc60560644editdlrm
pam.cpython-38.pyc60560644editdlrm
six.cpython-38.opt-1.pyc263970644editdlrm
six.cpython-38.pyc263970644editdlrm
socks.cpython-38.pyc215040644editdlrm
sockshandler.cpython-38.pyc36510644editdlrm
typing_extensions.cpython-38.pyc653890644editdlrm
Edit: /opt/alt/python38/lib/python3.8/site-packages/__pycache__/sockshandler.cpython-38.pyc (3651B)
U "@Wa @s&dZddlZzddlZddlZWn,ek rLddlmZddlmZYnXddl Z ddZ Gdddej Z Gdddej ZGd d d ejejZed kr"ddlZzeejd ZWneefk rd ZYnXeee jdeZededededdS)z SocksiPy + urllib2 handler version: 0.3 author: e This module provides a Handler which you can use with urllib2 to allow it to tunnel your connection through a socks.sockssocket socket, with out monkey patching the original socket... NcCs|}|||SN)copyupdate)abdr=/opt/alt/python38/lib/python3.8/site-packages/sockshandler.py merge_dicts r c@seZdZdddZddZdS)SocksiPyConnectionNTc Os*||||||f|_tjj|f||dSr) proxyargshttplibHTTPConnection__init__ selfZ proxytypeZ proxyaddrZ proxyportZrdnsusernamepasswordargskwargsrrr rszSocksiPyConnection.__init__cCsPt|_|jj|jt|jttfkr8|j |j|j |j |j fdSr) socks socksocketsocksetproxyr typetimeoutintfloat settimeoutconnecthostportrrrr rs  zSocksiPyConnection.connect)NTNN__name__ __module__ __qualname__rrrrrr r s r c@seZdZdddZddZdS)SocksiPyConnectionSNTc Os*||||||f|_tjj|f||dSr)r r HTTPSConnectionrrrrr r'szSocksiPyConnectionS.__init__cCs\t}|j|jt|jttfkr2||j| |j |j ft ||j|j|_dSr)rrrr rrrrrrr r!sslZ wrap_socketZkey_fileZ cert_filer)rrrrr r+s   zSocksiPyConnectionS.connect)NTNNr#rrrr r'&s r'c@s$eZdZddZddZddZdS)SocksiPyHandlercOs||_||_tj|dSr)rkwurllib2 HTTPHandlerr)rrrrrr r4szSocksiPyHandler.__init__csdfdd }||S)Nrcs(tj|}tj|||d|}|SN)r r!r)r r+r rr r!rrr+Zconnr"rr build:s z(SocksiPyHandler.http_open..build)NrZdo_openrZreqr0rr"r http_open9szSocksiPyHandler.http_opencsdfdd }||S)Nrcs(tj|}tj|||d|}|Sr.)r r+r'rr/r"rr r0As z)SocksiPyHandler.https_open..build)Nrr1r2rr"r https_open@szSocksiPyHandler.https_openN)r$r%r&rr3r4rrrr r*3sr*__main__iZ#Z localhostzHTTP: zhttp://httpbin.org/ipzHTTPS: zhttps://httpbin.org/ip) __doc__r)r,r ImportErrorZurllib.requestZrequestZ http.clientZclientrr rr r(r'r-Z HTTPSHandlerr*r$sysrargvr! ValueError IndexErrorZ build_openerZPROXY_TYPE_SOCKS5Zopenerprintopenreaddecoderrrr s*