shell bypass 403
UnknownSec Shell
:
/
usr
/
lib
/
python3
/
dist-packages
/
twisted
/
conch
/
test
/
__pycache__
/ [
drwxr-xr-x
]
upload
mass deface
mass delete
console
info server
name :
test_channel.cpython-312.pyc
� Ϫ�f2 � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ dd lmZ dd lmZ ddlmZ dZddlmZ G d� de� Z d dd�Z eee� G d� de� � Zy# e$ r d ZeZY �Bw xY w)z Test ssh/channel.py. � )�annotations)�skipIf)�verifyObject)�channel)�SSHTransportAddress)� SSHService)�SSHServerTransport)� interfaces)�IPv4Address)�StringTransport� zConch SSH not supported.)�TestCasec �H � e Zd ZdZdd�Zd d�Zd d�Z dd�Zdd�Zy) �MockConnectiona� A mock for twisted.conch.ssh.connection.SSHConnection. Record the data that channels send, and when they try to close the connection. @ivar data: a L{dict} mapping channel id #s to lists of data sent by that channel. @ivar extData: a L{dict} mapping channel id #s to lists of 2-tuples (extended data type, data) sent by that channel. @ivar closes: a L{dict} mapping channel id #s to True if that channel sent a close message. c �. � i | _ i | _ i | _ y )N)�data�extData�closes��selfs �A/usr/lib/python3/dist-packages/twisted/conch/test/test_channel.py�__init__zMockConnection.__init__* s � �;=�� �JL���68��� c � � y)z, Return our logging prefix. r � r s r � logPrefixzMockConnection.logPrefix/ s � � r c �Z � | j j |g � j |� y)z' Record the sent data. N)r � setdefault�append)r r r s r �sendDatazMockConnection.sendData5 s# � � � � ���W�b�)�0�0��6r c �^ � | j j |g � j ||f� y)z0 Record the sent extended data. N)r r r )r r �typer s r �sendExtendedDatazMockConnection.sendExtendedData; s'