shell bypass 403
UnknownSec Shell
:
/
lib
/
python3
/
dist-packages
/
supervisor
/
medusa
/
__pycache__
/ [
drwxr-xr-x
]
upload
mass deface
mass delete
console
info server
name :
asynchat_25.cpython-312.pyc
� k��cL* � � � d Z ddlZddlmZ ddlmZ ddlmZ G d� dej � Z G d� d � Z G d � d� Zd� Zy) a� A class supporting chat-style (command/response) protocols. This class adds support for 'chat' style protocols - where one side sends a 'command', and the other sends a response (examples would be the common internet protocols - smtp, nntp, ftp, etc..). The handle_read() method looks at the input stream for the current 'terminator' (usually '\r\n' for single-line responses, '\r\n.\r\n' for multi-line output), calling self.found_terminator() on its receipt. for example: Say you build an async nntp client using this class. At the start of the connection, you'll have self.terminator set to '\r\n', in order to process the single-line greeting. Just before issuing a 'LIST' command you'll set it to '\r\n.\r\n'. The output of the LIST command will be accumulated (using your own 'collect_incoming_data' method) up to the terminator, and then control will be returned to you - by calling your self.found_terminator() method. � N)�asyncore_25)�long)�as_bytesc �z � e Zd ZdZdZdZdd�Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zy)� async_chatz�This is an abstract class. You must derive from this class, and add the two methods collect_incoming_data() and found_terminator()i Nc � � d| _ d| _ t � | _ t j j | ||� y �N� )�ac_in_buffer� ac_out_buffer�fifo� producer_fifo�asyncore� dispatcher�__init__)�self�conn�maps �?/usr/lib/python3/dist-packages/supervisor/medusa/asynchat_25.pyr zasync_chat.__init__? s4 � ���� ���!�V������$�$�d�D�#�6r c � � t d� ��Nzmust be implemented in subclass��NotImplementedError�r �datas r �collect_incoming_dataz async_chat.collect_incoming_dataE � � �!�"C�D�Dr c � � t d� �r r �r s r �found_terminatorzasync_chat.found_terminatorH r r c � � || _ y)zRSet the input delimiter. Can be a fixed string of any length, an integer, or NoneN�� terminator)r �terms r �set_terminatorzasync_chat.set_terminatorK s � ���r c � � | j S �Nr"