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/conch/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

�b�
�@s�dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZmZm
Z
ddlmZmZmZGdd�de�ZGd	d
�d
ej�ZGdd�de�Zd
d�Zddd�Zedkr_e�dSdS)zC
Asynchronous local terminal input handling

@author: Jp Calderone
�N)�ServerProtocol)�ColoredManhole)�defer�protocol�reactor�stdio)�failure�log�reflectc@seZdZdS)�UnexpectedOutputErrorN)�__name__�
__module__�__qualname__�rr�5/usr/lib/python3/dist-packages/twisted/conch/stdio.pyrsrc@sDeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�TerminalProcessProtocolcCs||_t��|_dS�N)�protor�Deferred�onConnection)�selfrrrr�__init__sz TerminalProcessProtocol.__init__cCs"|j�|�|j�d�d|_dSr)r�makeConnectionr�callback)rrrr�connectionMades
z&TerminalProcessProtocol.connectionMadecC�|j�|�dS)zj
        Write to the terminal.

        @param data: Data to write.
        @type data: L{bytes}
        N)�	transport�write�r�datarrrr$�zTerminalProcessProtocol.writecCr)zs
        Receive data from the terminal.

        @param data: Data received.
        @type data: L{bytes}
        N)r�dataReceivedrrrr�outReceived-r z#TerminalProcessProtocol.outReceivedcCs8|j��|jdur|j�t�t|���d|_dSdS)zt
        Report an error.

        @param data: Data to include in L{Failure}.
        @type data: L{bytes}
        N)r�loseConnectionr�connectionLostr�Failurerrrrr�errReceived6s



�z#TerminalProcessProtocol.errReceivedcCs|jdur
|j�|�dSdSr)r�childConnectionLost)r�childFDrrrr'Bs
�z+TerminalProcessProtocol.childConnectionLostcCs$|jdur|j�|�d|_dSdSr)rr$�r�reasonrrr�processEndedFs

�z$TerminalProcessProtocol.processEndedN)
rr
rrrrr"r&r'r+rrrrrs		rc@seZdZdZdd�ZdS)�ConsoleManholezK
    A manhole protocol specifically for use with L{stdio.StandardIO}.
    cCst��dS)z�
        When the connection is lost, there is nothing more to do.  Stop the
        reactor so that the process can exit.
        N)r�stopr)rrrr$QszConsoleManhole.connectionLostN)rr
r�__doc__r$rrrrr,Lsr,cCsvtj��}t�|�}t�|�zt�t	|��t
��Wt�|tj
|�t�|d�dSt�|tj
|�t�|d�w)Ns
c
)�sys�	__stdin__�fileno�termios�	tcgetattr�tty�setrawr�
StandardIOrr�run�	tcsetattr�TCSANOW�osr)�klass�fd�oldSettingsrrr�runWithProtocolYs



�r>cCsJt�tdd��|durtjdd�}|rt�|d�}nt}t|�dS)Nz	child.log�w�r)	r	�startLogging�openr/�argvr
�
namedClassr,r>)rCr;rrr�mainesrE�__main__r)r.r:r/r2r4�twisted.conch.insults.insultsr�twisted.conch.manholer�twisted.internetrrrr�twisted.pythonrr	r
�	Exceptionr�ProcessProtocolrr,r>rErrrrr�<module>s"2

�

Spamworldpro Mini