shell bypass 403
�
w��gny � � � d dl mZ d dlmZ d dlmZmZm Z d dl
Z
d dlmZ d dl
Z
d dlZd dlmZ d dlZd dlZd dlZdZej( dk( rej* d k r d dlZ e
j. e� ZdxZZdxZZd
xZZeeed�Z e! e"e jG � e jI � � � Z%ej xZ&Z'd� Z( G d� de)� Z* G d� de*� Z+ G d� de*� Z, G d� de*� Z- G d� de*� Z. G d� de*� Z/ G d� de*� Z0ddd d!�Z1d"d#d$d%d&d'd(d)d*�Z2ed+ed+ed,iZ3 d8d-�Z4d.� Z5d/� Z6e6Z7d0� Z8e8Z9 d9d1�Z: G d2� d3ej � Z;d4� Z<d5D ]A Z e=e;ed� Z> e?e>e� r�e;j� j� e� eBe;e e<e� � �C G d6� d7e;� ZCy# e$ r
d dlmZ Y ���w xY w# e$ r ed
� �w xY w):� )� b64encode)�Callable)�
EOPNOTSUPP�EINVAL�EAGAINN)�BytesIO)�SEEK_CURz1.7.1�nt)� r z8To run PySocks on Windows you must install win_inet_pton� � r )�SOCKS4�SOCKS5�HTTPc �B � � t j � � � fd�� }|S )Nc � �� | d } |j � }|dk( r|j d� �| i |��|dk( r|j d� S S # t $ r}� d }~ww xY w# dk( r|j d� w w xY w)Nr TF)�
gettimeout�setblocking� Exception)�args�kwargs�self�_is_blocking�e�functions ��4/opt/hc_python/lib/python3.12/site-packages/socks.py�wrapperz"set_self_blocking.<locals>.wrapper( s� �� ��A�w��
(��?�?�,�L��q� �� � ��&��T�,�V�,�
�q� �� � ��'� !�� � ��� �� �q� �� � ��'� !�s# �-A
�
A�A�A�A �A8)� functools�wraps)r r s ` r �set_self_blockingr &