| Server IP : 23.254.227.96 / Your IP : 216.73.216.21 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/__pycache__/ |
Upload File : |
3
�2;Za � @ s" d Z ddlZyddlZddlZW n( ek
rH ddljZddljZY nX ddl Z dd� Z
G dd� dej�ZG dd� dej
�ZG d d
� d
ejej�Zedk�rddlZyeejd �ZW n eefk
r� d
ZY nX ejee jde��Zedejd�j� j� � edejd�j� j� � 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 | j � }|j|� |S )N)�copy�update)�a�b�d� r �"/usr/lib/python3.6/sockshandler.py�
merge_dict s
r c @ s e Zd Zddd�Zdd� ZdS )�SocksiPyConnectionNTc O s* ||||||f| _ tjj| f|�|� d S )N)� proxyargs�httplib�HTTPConnection�__init__) �self� proxytype� proxyaddr� proxyport�rdns�username�password�args�kwargsr r r r s zSocksiPyConnection.__init__c C sP t j� | _| jj| j� t| j�ttfkr8| jj | j� | jj
| j| jf� d S )N)
�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 )N)r r �HTTPSConnectionr ) r r r r r r r r r r r r r '