403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/twisted/protocols/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/twisted/protocols/__pycache__/loopback.cpython-314.pyc
+
Dfj�.����Rt^RIt^RIHt^RIHtHtHtHt^RI	H
t
^RIHt^RI
Ht^RIHt!RR	4t]!]
4!R
R44t]!]P&]P(4!RR
44tRtRt]3RltRtRt]!]P&]P(4!RR44t!RR]P84t!RR]P<4tRRlt RRlt!R#)zF
Testing support for protocols -- loopback between client and server.
N)�implementer)�defer�
interfaces�main�protocol)�IAddress)�
deferLater)�policies)�failurec�Ha�]tRt^toRtRtRtRtRtRt	]	t
RtRtVt
R#)	�_LoopbackQueuez�
Trivial wrapper around a list to give it an interface like a queue, which
the addition of also sending notifications by way of a Deferred whenever
the list has something added to it.
NFc��.VnR#�N)�_queue��selfs&�</usr/lib/python3/dist-packages/twisted/protocols/loopback.py�__init__�_LoopbackQueue.__init__"s	�����c��VPPV4VPe'VPRuq nVPR4R#R#r)r�append�_notificationDeferred�callback)r�v�ds&& r�put�_LoopbackQueue.put%sD�������1���%�%�1�,0�,F�,F��)�A�)�
�J�J�t��2rc�,�\VP4#r)�boolrrs&r�__nonzero__�_LoopbackQueue.__nonzero__+s���D�K�K� � rc�8�VPP^4#)�)r�poprs&r�get�_LoopbackQueue.get0s���{�{���q�!�!r)rr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�
disconnectrrr �__bool__r%�__static_attributes__�__classdictcell__��
__classdict__s@rrrs7�����!���J���!��H�"�"rrc��]tRt^4tRtR#)�_LoopbackAddress�N)r'r(r)r*r.r4rrr3r34s��rr3c�da�]tRt^9toRtRtRtRtRtRt	Rt
RtR	tR
t
RtRtR
tVtR#)�_LoopbackTransportFNc��WnR#r)�q)rr8s&&rr�_LoopbackTransport.__init__?s���rc�~�\V\4'g\R4hVPP	V4R#)z"Can only write bytes to ITransportN)�
isinstance�bytes�	TypeErrorr8r�r�datas&&r�write�_LoopbackTransport.writeBs+���$��&�&��@�A�A����
�
�4�rc�Z�VPPRPV44R#�rN)r8r�join�r�iovecs&&r�
writeSequence� _LoopbackTransport.writeSequenceGs�����
�
�3�8�8�E�?�#rc�^�RVPnVPPR4R#)TN)r8r,rrs&r�loseConnection�!_LoopbackTransport.loseConnectionJs�� ��������
�
�4�rc�&�VP4R#)z2
Abort the connection. Same as L{loseConnection}.
N)rJrs&r�abortConnection�"_LoopbackTransport.abortConnectionNs��	
���rc��\4#r�r3rs&r�getPeer�_LoopbackTransport.getPeerT����!�!rc��\4#rrPrs&r�getHost�_LoopbackTransport.getHostWrSrc�^�VPeQhWnW nVP4R#r)�producer�streamingProducer�
_pollProducer�rrX�	streamings&&&r�registerProducer�#_LoopbackTransport.registerProducer[s)���}�}�$�$�$� �
�!*�����rc�4�VPfQhRVnR#r�rXrs&r�unregisterProducer�%_LoopbackTransport.unregisterProduceras���}�}�(�(�(���
rc��VPe1VP'gVPP4R#R#R#r)rXrY�resumeProducingrs&rrZ� _LoopbackTransport._pollProduceres0���=�=�$�T�-C�-C�-C��M�M�)�)�+�.D�$r)rXr8rY)r'r(r)r*�
disconnectingrXrr@rGrJrMrQrUr]rarZr.r/r0s@rr6r69sF�����M��H���
$���"�"���,�,rr6c�h�V'd*VP4pVfR#VPV4K1R#)z�
L{identityPumpPolicy} is a policy which delivers each chunk of data written
to the given queue as-is to the target.

This isn't a particularly realistic policy.

@see: L{loopbackAsync}
N)r%�dataReceived)�queue�targetr<s&& r�identityPumpPolicyrkjs-����	�	����=�����E�"�	rc��.pV'd)VP4pVfMVPV4K0V'd#VPRPV44R#R#)z�
L{collapsingPumpPolicy} is a policy which collapses all outstanding chunks
into a single string and delivers it to the target.

@see: L{loopbackAsync}
Nr)r%rrhrD)rirjr<�chunks&&  r�collapsingPumpPolicyrnzsI��
�E�
��	�	����=��
���U������C�H�H�U�O�,�
rc��\4p\4pVP\V44VP\V44\WWV4#)a�
Establish a connection between C{server} and C{client} then transfer data
between them until the connection is closed. This is often useful for
testing a protocol.

@param server: The protocol instance representing the server-side of this
    connection.

@param client: The protocol instance representing the client-side of this
    connection.

@param pumpPolicy: When either C{server} or C{client} writes to its
    transport, the string passed in is added to a queue of data for the
    other protocol.  Eventually, C{pumpPolicy} will be called with one such
    queue and the corresponding protocol object.  The pump policy callable
    is responsible for emptying the queue and passing the strings it
    contains to the given protocol's C{dataReceived} method.  The signature
    of C{pumpPolicy} is C{(queue, protocol)}.  C{queue} is an object with a
    C{get} method which will return the next string written to the
    transport, or L{None} if the transport has been disconnected, and which
    evaluates to C{True} if and only if there are more items to be
    retrieved via C{get}.

@return: A L{Deferred} which fires when the connection has been closed and
    both sides have received notification of this.
)r�makeConnectionr6�_loopbackAsyncBody)�server�client�
pumpPolicy�serverToClient�clientToServers&&&  r�
loopbackAsyncrw�sP��6$�%�N�#�%�N�
���,�^�<�=�
���,�^�<�=����
��rc�\a�V3RlpR;p;rxV!WV4pV!W#V4pV'gFV'g>\P!4p	W�nW�nV	P\VVVVS4V	#VP
'd
RpV!WV4MVP
'dRpV!W#V4V'gK�VP
\P!\P44VP
\P!\P44\P!R4#)a?
Transfer bytes from the output queue of each protocol to the input of the other.

@param server: The protocol instance representing the server-side of this
connection.

@param serverToClient: The L{_LoopbackQueue} holding the server's output.

@param client: The protocol instance representing the client-side of this
connection.

@param clientToServer: The L{_LoopbackQueue} holding the client's output.

@param pumpPolicy: See L{loopbackAsync}.

@return: A L{Deferred} which fires when the connection has been closed and
    both sides have received notification of this.
c�<�RpV'dS!W4RpV'd#V'gVPP4V#)FT)�	transportrZ)�sourcer8rj�sentrts&&& �r�pump� _loopbackAsyncBody.<locals>.pump�s6�������q�!��D���
���*�*�,��rFTN)r�Deferredr�addCallback�_loopbackAsyncContinuer,�connectionLostr
�Failurer�CONNECTION_DONE�succeed)
rrrursrvrtr}r,�
clientSent�
serverSentrs
&&&&f     rrqrq�s���(
��/4�4�
�4�Z��&�&�9�
��&�&�9�
��*���� �A�34�0�34�0�
�M�M�&������

��H��$�$�$��J����0�
�
&�
&�
&��J����0��:��!�!�'�/�/�$�2F�2F�"G�H��!�!�'�/�/�$�2F�2F�"G�H��=�=��&�&rc
�V�RVnRVn^RIHp\V^\VVVVV4#)N��reactor)r�twisted.internetr�rrq)�ignoredrrrursrvrtr�s&&&&&& rr�r��s>��
,0�N�(�+/�N�(�)���	�������	�	rc�pa�]tRtRtoRt^t^tRtRRltRt	Rt
RtRtR	t
R
tRtRtR
tRtVtR#)�
LoopbackRelayirNc��WnW nR#r)rj�logFile)rrjr�s&&&rr�LoopbackRelay.__init__s�����rc��VPV,VnVP'd.VPPR\V4,4R#R#)zloopback writing %s
N)�bufferr�r@�reprr>s&&rr@�LoopbackRelay.writes<���k�k�D�(����<�<�<��L�L���6��d��C�D�rc�F�VPRPV44R#rC)r@rDrEs&&rrG�LoopbackRelay.writeSequence"s���
�
�3�8�8�E�?�#rc�@�VPR8XdR#VP'dVPP4VP'dvVP'd6VPPR\
VP4,4VPpRVnVPPV4VP^8XdGRVnVPP\P!\P44R#R#)�Nzloopback receiving %s
r���)�
shouldLoserXrdr�r�r@r�rjrhr�r
r�rr�)rr�s& r�clearBuffer�LoopbackRelay.clearBuffer%s����?�?�b� ���=�=�=��M�M�)�)�+��;�;�;��|�|�|����"�"�#<�t�D�K�K�?P�#P�Q��[�[�F��D�K��K�K�$�$�V�,��?�?�a�� �D�O��K�K�&�&�w���t�7K�7K�'L�M� rc�:�VPR8wd
^VnR#R#)r�Nr�)r�rs&rrJ�LoopbackRelay.loseConnection5s���?�?�b� ��D�O�!rc��R#��loopbackr4rs&rrU�LoopbackRelay.getHost9���rc��R#r�r4rs&rrQ�LoopbackRelay.getPeer<r�rc��WnR#rr`r[s&&&rr]�LoopbackRelay.registerProducer?s�� �
rc��RVnR#rr`rs&rra� LoopbackRelay.unregisterProducerBs	����
rc�L�RVPPP:R2#)z	Loopback(�))rj�	__class__r'rs&r�	logPrefix�LoopbackRelay.logPrefixEs"���4�;�;�0�0�9�9�<�A�>�>r)r�r�rXr�rjr)r'r(r)r*r�r�rfrXrr@rGr�rJrUrQr]rar�r.r/r0s@rr�r�sR����
�F��J��M��H��E�
$�N�  ���!��?�?rr�c�2a�]tRtRtoRtRtRtRtVtR#)�LoopbackClientFactoryiIc�T�^Vn\P!4VnWnR#)r#N)�disconnectedrr�deferredr)rrs&&rr�LoopbackClientFactory.__init__Js��������(��
� �
rc��VP#r)r)r�addrs&&r�
buildProtocol�#LoopbackClientFactory.buildProtocolOs���}�}�rc�J�^VnVPPR4R#)r�N)r�r�r)r�	connector�reasons&&&r�clientConnectionLost�*LoopbackClientFactory.clientConnectionLostRs������
�
���t�$r)r�r�rN)	r'r(r)r*rr�r�r.r/r0s@rr�r�Is����!�
�%�%rr�c�,a�]tRtRtoRtRtRtVtR#)�_FireOnCloseiWc�z�\PPWV4\P!4VnR#r)r	�ProtocolWrapperrrrr�)rr�factorys&&&rr�_FireOnClose.__init__Xs&��� � �)�)�$�'�B����(��
rc�z�\PPW4VPP	R4R#r)r	r�r�r�r)rr�s&&rr��_FireOnClose.connectionLost\s(��� � �/�/��=��
�
���t�$r�r�N)r'r(r)r*rr�r.r/r0s@rr�r�Ws����)�%�%rr�c�aa	�^RIHp\P!\P
!44p\
WP4o	W5nV	3RlVnVPW%RR7o\V4pW6nVPRSP4PV4VPpVPV	3Rl4VPV3Rl4V#)zBRun session between server and client protocol instances over TCP.r�c�<�S#rr4�r��
serverWrappers&�r�<lambda>�loopbackTCP.<locals>.<lambda>h����=rz	127.0.0.1)�	interfacec�<�SP#rr���xr�s&�rr�r�n����M�2�2rc�$<�SP4#r��
stopListening�r��
serverPorts&�rr�r�o����J�4�4�6r)r�r�r	�WrappingFactoryr�Factoryr��noisyr��	listenTCPr��
connectTCPrU�portr�r�)
rrrsr�r�r��f�clientFrr�r�s
&&&&    @@r�loopbackTCPr�as����(�� � ��!1�!1�!3�4�A� ��+�M��G�0�A�O��"�"�4�k�"�B�J�#�F�+�G��M����{�J�$6�$6�$8�$=�$=�w�G����A��M�M�2�3��M�M�6�7��Hrc�aa	�\P!4p^RIHp\P
!\P!44p\WP4o	W%n	V	3RlVn
VPW54o\V4pW&n	VPW64VPpVPV	3Rl4VPV3Rl4V#)zJRun session between server and client protocol instances over UNIX socket.r�c�<�S#rr4r�s&�rr��loopbackUNIX.<locals>.<lambda>{r�rc�<�SP#rr�r�s&�rr�r��r�rc�$<�SP4#rr�r�s&�rr�r��r�r)�tempfile�mktempr�r�r	r�rr�r�r�r��
listenUNIXr��connectUNIXr�r�)
rrrsr��pathr�r�r�rr�r�s
&&&     @@r�loopbackUNIXr�ss�����?�?��D�(�� � ��!1�!1�!3�4�A� ��+�M��G�0�A�O��#�#�D�,�J�#�F�+�G��M�����&����A��M�M�2�3��M�M�6�7��Hr)r#T)T)"r+r��zope.interfacerr�rrrr�twisted.internet.interfacesr�twisted.internet.taskr�twisted.protocolsr	�twisted.pythonr
rr3�
ITransport�	IConsumerr6rkrnrwrqr�r��
ClientFactoryr�r�r�r�r�r4rr�<module>r�s���
��&�>�>�0�,�'�"�"�"�8
�X��	�	��	�
�Z�
"�
"�J�$8�$8�9�-,�-,�:�-,�`
#� -�".@�#�LD'�N�4
�Z�
"�
"�J�$8�$8�9�3?�3?�:�3?�l%�H�2�2�%�%�8�+�+�%�
�$
r

Youez - 2016 - github.com/yon3zu
LinuXploit