Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/tap/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/tap/__pycache__/ftp.cpython-310.pyc
o

�b��@sndZddlZddlmZddlmZmZmZddlm	Z	ddl
mZmZm
Z
Gdd�dejej�Zd	d
�ZdS)z>
I am the support module for making a ftp server with twistd.
�N)�internet)�checkers�portal�strcred)�ftp)�	deprecate�usage�versionsc@sReZdZdZgd�gd�gd�gZejdejdd�id�Zd	Z	d
d�Z
dd
�ZdS)�OptionszP[options].
    WARNING: This FTP server is probably INSECURE do not use it.
    )�port�p�2121zset the port number)�root�rz/usr/local/ftpz define the root of the ftp-site.)�
userAnonymous��	anonymouszName of the anonymous user.rzroot of the ftp site)�descr)�
optActionsrcOs,tjj|g|�Ri|��|�t���dS)N)rr
�__init__�
addCheckerr�AllowAnonymousAccess)�self�a�kw�r�1/usr/lib/python3/dist-packages/twisted/tap/ftp.pyr"szOptions.__init__c	CsJ||d<t�|jt�dddd��}tj|tdd�|�t	j
|dd	��d
S)z�
        Specify a file containing username:password login info for
        authenticated connections. (DEPRECATED; see --help-auth instead)
        z
password-file�Twisted��r�)�category�
stacklevelT)�cacheN)r�getDeprecationWarningString�opt_password_filer	�Version�warnings�warn�DeprecationWarningrr�FilePasswordDB)r�filename�msgrrrr%&s�zOptions.opt_password_fileN)�__name__�
__module__�__qualname__�synopsis�
optParametersr�Completions�CompleteDirs�compData�longdescrr%rrrrr
s��r
cCs�t��}t�|d�}t�||�dg��}|d|_|d|_||_tj|_	zt
|d�}Wnty9d}Ynwt�
||�S)Nr�credCheckersrriI)r�
FTPFactory�FTPRealmr�Portal�get�tldr�FTP�protocol�int�KeyErrorr�	TCPServer)�config�frr�portnorrr�makeService3s

�rD)�__doc__r'�twisted.applicationr�twisted.credrrr�twisted.protocolsr�twisted.pythonrrr	r
�AuthOptionMixinrDrrrr�<module>s!

Spamworldpro Mini