__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
U
"�@Wa � @ s& d Z ddlZzddlZddlZW n, ek
rL ddlmZ ddlmZ Y nX ddl Z dd� Z
G dd� dej�ZG dd� dej
�ZG d d
� d
ejej�Zedk�r"ddlZzeejd �ZW n eefk
r� d
ZY nX e�ee jde��Zede�d��� �� � ede�d��� �� � dS )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 C s | � � }|�|� |S �N)�copy�update)�a�b�d� r �=/opt/alt/python38/lib/python3.8/site-packages/sockshandler.py�
merge_dict s
r
c @ s e Zd Zddd�Zdd� ZdS )�SocksiPyConnectionNTc O s* ||||||f| _ tjj| f|�|� d S r )� proxyargs�httplib�HTTPConnection�__init__� �selfZ proxytypeZ proxyaddrZ proxyportZrdns�username�password�args�kwargsr r r r s zSocksiPyConnection.__init__c C sP t �� | _| jj| j� t| j�ttfkr8| j� | j� | j�
| j| jf� d S r )
�socks�
socksocket�sock�setproxyr �type�timeout�int�float�
settimeout�connect�host�port�r r r r r s
zSocksiPyConnection.connect)NTNN��__name__�
__module__�__qualname__r r r r r r r s
r c @ s e Zd Zddd�Zdd� ZdS )�SocksiPyConnectionSNTc O s* ||||||f| _ tjj| f|�|� d S r )r r
�HTTPSConnectionr r r r r r '