403Webshell
Server IP : 43.141.49.92  /  Your IP : 113.219.202.141
Web Server : Apache
System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.1.27
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/__pycache__/sockshandler.cpython-311.pyc
�

G2�]~���dZddlZddlZ	ddlZddlZn#e$rddlmZddlm	ZYnwxYwddl
Z
d�Zd�Ze
��ZGd�dej��ZGd�dej��ZGd	�d
ejej��Zedkr�ddlZ	eejd��Zn#eef$rd
ZYnwxYwejee
jde����Ze de�!d���"���#��z��e de�!d���"���#��z��dSdS)z�
SocksiPy + urllib2 handler

version: 0.3
author: e<e@tr0ll.in>

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...
�Nc�X�|���}|�|��|S�N)�copy�update)�a�b�ds   �1/usr/lib/python3.11/site-packages/sockshandler.py�
merge_dictrs#��	�����A��H�H�Q�K�K�K��H�c��	d|vr tjtj|��nd|vrtj|��ndSdS#YdSxYw)N�:�.FT)�socket�	inet_pton�AF_INET6�	inet_aton)�ss r
�is_iprsa��
��!�8�8���V�_�a�0�0�0�0�
�A�X�X���Q������5��t����u�u���s�=A�Ac��eZdZdd�Zd�ZdS)�SocksiPyConnectionNTc�T�||||||f|_tjj|g|�Ri|��dSr)�	proxyargs�httplib�HTTPConnection�__init__�	�self�	proxytype�	proxyaddr�	proxyport�rdns�username�password�args�kwargss	         r
rzSocksiPyConnection.__init__+s@��#�Y�	�4��8�T�����'��>�t�>�>�>�v�>�>�>�>�>rc��|j\}}}}}}|o|tv}		tj|j|jf|jd||||||tjtj	dff�
�
}nb#tj
$rO}|rBdt|��vr1t|j��sd}t�
|��n�Yd}~nd}~wwxYw��||_dS)NT��0x5bF)r�socks4_no_rdns�socks�create_connection�host�port�timeoutr�IPPROTO_TCP�TCP_NODELAY�SOCKS4Error�strr�add�sock)	rrr r!r"r#r$r5�es	         r
�connectzSocksiPyConnection.connect/s��FJ�n�C��I�y�$��(��7�	��7��	�

��.��Y��	�*�D�L�$��y�)�T�8�X��(�&�*<�a�@�B�D�D�����$�
�
�
���F�c�!�f�f�,�,�U�4�9�5E�5E�,�!�D�"�&�&�y�1�1�1�1��2�1�1�1�1�����
����	���	�	�	s�AA#�#C�2AB<�<C�NTNN��__name__�
__module__�__qualname__rr7�rr
rr*s7������?�?�?�?�����rrc��eZdZdd�Zd�ZdS)�SocksiPyConnectionSNTc�T�||||||f|_tjj|g|�Ri|��dSr)rr�HTTPSConnectionrrs	         r
rzSocksiPyConnectionS.__init__Ds@��#�Y�	�4��8�T�����(��?��?�?�?��?�?�?�?�?rc��t�|��|j�|j|j���|_|jjs�|jr�	tj	|j�
��|j��dS#t$r?|j�tj��|j����wxYwdSdS)N)�server_hostname)rr7�_context�wrap_socketr5r-�check_hostname�_check_hostname�ssl�match_hostname�getpeercert�	Exception�shutdownr�	SHUT_RDWR�close)rs r
r7zSocksiPyConnectionS.connectHs����"�"�4�(�(�(��M�-�-�d�i���-�S�S��	��}�+�	��0D�	�
��"�4�9�#8�#8�#:�#:�D�I�F�F�F�F�F���
�
�
��	�"�"�6�#3�4�4�4��	���!�!�!��
����	�	�	�	s
�1B
�
A	Cr8r9r=rr
r?r?Cs;������@�@�@�@�	�	�	�	�	rr?c� �eZdZd�Zd�Zd�ZdS)�SocksiPyHandlerc�`�||_||_tj�|��dSr)r%�kw�urllib2�HTTPHandlerr)rr%r&s   r
rzSocksiPyHandler.__init__Ts-����	������$�$�T�*�*�*�*�*rc�<��d�fd�	}��||��S)Nrc�\��t�j|��}t�j|||d�|��}|S�N)r-r.r/)rrRrr%�r-r.r/r&rR�connrs      �r
�buildz(SocksiPyHandler.http_open.<locals>.buildZs8����D�G�V�,�,�B�%�t�y�t�$�PW�^�^�[]�^�^�D��Kr�Nr��do_open�r�reqrZs`  r
�	http_openzSocksiPyHandler.http_openY�7���	�	�	�	�	�	��|�|�E�3�'�'�'rc�<��d�fd�	}��||��S)Nrc�\��t�j|��}t�j|||d�|��}|SrW)rrRr?r%rXs      �r
rZz)SocksiPyHandler.https_open.<locals>.buildas8����D�G�V�,�,�B�&��	��4�QX�_�_�\^�_�_�D��Krr[r\r^s`  r
�
https_openzSocksiPyHandler.https_open`rarN)r:r;r<rr`rdr=rr
rPrPSsA������+�+�+�
(�(�(�(�(�(�(�(rrP�__main__r(iZ#�	localhostzHTTP: zhttp://httpbin.org/ipzHTTPS: zhttps://httpbin.org/ip)$�__doc__rrHrSr�ImportError�urllib.request�request�http.client�clientr+rr�setr*rrrAr?rT�HTTPSHandlerrPr:�sys�int�argvr.�
ValueError�
IndexError�build_opener�PROXY_TYPE_SOCKS5�opener�print�open�read�decoder=rr
�<module>r{sD�����
�
�
�
�
�
�
�"��N�N�N��N�N�N�N���"�"�"�$�$�$�$�$�$�!�!�!�!�!�!�!�!�"����
����
�
�
�
��������������/����2�����'�1���� (�(�(�(�(�g�)�7�+?�(�(�(�(�z����J�J�J���s�3�8�A�;�������
�#������������
!�W�
!�/�/�%�2I�;�X\�"]�"]�
^�
^�F�	�E�(�V�[�[�!8�9�9�>�>�@�@�G�G�I�I�
I�J�J�J�	�E�)�f�k�k�":�;�;�@�@�B�B�I�I�K�K�
K�L�L�L�L�L��s��)�)�
B!�!	B-�,B-

Youez - 2016 - github.com/yon3zu
LinuXploit