AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/twisted/protocols/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/twisted/protocols/__pycache__/postfix.cpython-310.pyc
o

�b1�@s�dZddlZddlmZddlmZmZddl	m
Z
mZddlm
Z
mZddlmZdd	�Zd
d�ZGdd
�d
e
jej�ZGdd�deej�ZGdd�dej�ZdS)z1
Postfix mail transport agent related protocols.
�N)�UserDict)�quote�unquote)�defer�protocol)�basic�policies)�logcCs t|�}t|t�r|�d�}|S�N�ascii)�_quote�
isinstance�str�encode��s�quoted�r�;/usr/lib/python3/dist-packages/twisted/protocols/postfix.pyrs

rcCs&t|t�r
|�d�}t|�}|�d�Sr
)r
�bytes�decode�_unquoterrrrrrs


rc@sReZdZdZdZdZdd�Zddd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�ZdS)�PostfixTCPMapServera
    Postfix mail transport agent TCP map protocol implementation.

    Receive requests for data matching given key via lineReceived,
    asks it's factory for the data with self.factory.get(key), and
    returns the data to the requester. None means no entry found.

    You can use postfix's postmap to test the map service::

    /usr/sbin/postmap -q KEY tcp:localhost:4242

    iX�
cCs|�|j�dS�N)�
setTimeout�timeout)�selfrrr�connectionMade3sz"PostfixTCPMapServer.connectionMade�cCs |�t|��d�d|�dS)z8
        Send an SMTP-like code with a message.
        r� N)�sendLinerr)r�code�messagerrr�sendCode6s zPostfixTCPMapServer.sendCodecCs�|��z
|�dd�\}}Wn
ty|}d}Ynwzt|d|�d��}Wnty8|�dd�YdSwz||�WdStyatt	�
�d��d�}|�dd|d|�YdSw)N��do_r�sunknown commandsCommand s	 failed: )�resetTimeout�split�
ValueError�getattrr�AttributeErrorr$�
BaseExceptionr�sys�exc_infor)r�line�request�params�f�excInforrr�lineReceived<s$���z PostfixTCPMapServer.lineReceivedcCsH|dur|�dd�dSt�|jj|�}|�|j|j�|�t	j
�dS)Nr's!Command 'get' takes 1 parameters.)r$r�
maybeDeferred�factory�get�addCallbacks�_cbGot�_cbNot�
addErrbackr	�err)r�key�drrr�do_getNs
zPostfixTCPMapServer.do_getcCs|���d�}|�d|�dS)Nrr')�getErrorMessagerr$)r�fail�msgrrrr;VszPostfixTCPMapServer._cbNotcCs*|dur|�d�dS|�dt|��dS)N����)r$r)r�valuerrrr:ZszPostfixTCPMapServer._cbGotcCs^|dur|�dd�dSz
|�dd�\}}Wnty&|�dd�YdSw|�dd�dS)Nr's!Command 'put' takes 2 parameters.r%rDsput is not implemented yet.)r$r)r*)r�keyAndValuer>rFrrr�do_put`s�zPostfixTCPMapServer.do_putN)r)
�__name__�
__module__�__qualname__�__doc__r�	delimiterrr$r5r@r;r:rHrrrrr"s

rc@seZdZdZeZdS)�PostfixTCPMapDictServerFactory�B
    An in-memory dictionary factory for PostfixTCPMapServer.
    N)rIrJrKrLrrrrrrrNlsrNc@s&eZdZdZeZddd�Zdd�ZdS)�'PostfixTCPMapDeferringDictServerFactoryrONcCs"i|_|dur|j�|�dSdSr)�data�update)rrQrrr�__init__{s�z0PostfixTCPMapDeferringDictServerFactory.__init__cCst�|j�|��Sr)r�succeedrQr8)rr>rrrr8�sz+PostfixTCPMapDeferringDictServerFactory.getr)rIrJrKrLrrrSr8rrrrrPts

rP)rLr.�collectionsr�urllib.parserrrr�twisted.internetrr�twisted.protocolsrr�twisted.pythonr	�LineReceiver�TimeoutMixinr�
ServerFactoryrNrPrrrr�<module>sJ

Anon7 - 2022
AnonSec Team