| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/tap/__pycache__/ |
Upload File : |
U
W[ � @ sR d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� dej �Z dd � Z
d
S )z?
I am a support module for making SOCKSv4 servers with twistd.
� )�print_function)�socks)�usage)�internetc @ sR e Zd ZdZddddgdddd gd
ddd
ggZeje�d�e�� d�d�Z dZ
dS )�Optionsz([-i <interface>] [-p <port>] [-l <file>]� interface�i� 127.0.0.1z"local interface to which we listen�port�pi8 zPort on which to listen�log�lNzfile to log connection data toz*.log)r r )Z
optActionszMakes a SOCKSv4 server.)�__name__�
__module__�__qualname__ZsynopsisZ
optParametersr ZCompletionsZ
CompleteFilesZCompleteNetInterfacesZcompDataZlongdesc� r r �3/usr/lib/python3/dist-packages/twisted/tap/socks.pyr s
���r c C sf | d dkr8t � t d� t d� t d� t d� t � t�| d �}t| d �}tj||| d d �S )
Nr r zWARNING:z5 You have chosen to listen on a non-local interface.z7 This may allow intruders to access your local networkz if you run this on a firewall.r r
)r )�printr ZSOCKSv4Factory�intr Z TCPServer)Zconfig�tZportnor r r �makeService s r N)�__doc__Z
__future__r Ztwisted.protocolsr Ztwisted.pythonr Ztwisted.applicationr r r r r r r �<module> s