Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/__pycache__/base64.cpython-311.opt-2.pyc
�

�,d1R���	ddlZddlZddlZgd�ZeefZd�Zd5d�Zd6d�Z	d�Z
d�Ze�d	d
��Z
e�d
d	��Zd�Zd�Zd
ZdZdZdZdZiaiad�Zd7d�Zd�Ze�d���e_d7d�Ze�de���e_d�Ze�d���e_d8d�Ze�dd���e_d�Z d8d�Z!da"da#dZ$d Z%d9d!�Z&ddddd"�d#�Z'ddd$d%�d&�Z(d'Z)da*da+da,d8d(�Z-d)�Z.d*Z/e/d+zd,zZ0d-�Z1d.�Z2d/�Z3d0�Z4d1�Z5d2�Z6d3�Z7e8d4kre6��dSdS):�N)�encode�decode�encodebytes�decodebytes�	b64encode�	b64decode�	b32encode�	b32decode�b32hexencode�b32hexdecode�	b16encode�	b16decode�	b85encode�	b85decode�	a85encode�	a85decode�standard_b64encode�standard_b64decode�urlsafe_b64encode�urlsafe_b64decodec�Z�t|t��r3	|�d��S#t$rt	d���wxYwt|t
��r|S	t
|�����S#t$rtd|j	j
z��d�wxYw)N�asciiz4string argument should contain only ASCII charactersz>argument should be a bytes-like object or ASCII string, not %r)�
isinstance�strr�UnicodeEncodeError�
ValueError�bytes_types�
memoryview�tobytes�	TypeError�	__class__�__name__��ss �-/opt/alt/python311/lib64/python3.11/base64.py�_bytes_from_decode_datar&"s����!�S���U�	U��8�8�G�$�$�$��!�	U�	U�	U��S�T�T�T�	U�����!�[�!�!����K��!�}�}�$�$�&�&�&���K�K�K��)�+,�;�+?�@�A�A�FJ�	K�K���s�,�A�! B�(B*c��	tj|d���}|�.|�t�d|����S|S)NF)�newline�+/)�binascii�
b2a_base64�	translate�bytes�	maketrans)r$�altchars�encodeds   r%rr3sK����!�!�U�3�3�3�G���� � ������!A�!A�B�B�B��N�Fc���	t|��}|�=t|��}|�t�|d����}t	j||���S)Nr))�strict_mode)r&r,r-r.r*�
a2b_base64)r$r/�validates   r%rrAs^���"	 ��"�"�A���*�8�4�4��
�K�K�����%�8�8�9�9����q�h�7�7�7�7r1c�"�	t|��S�N)rr#s r%rr[s����Q�<�<�r1c�"�	t|��Sr7)rr#s r%rrbs����Q�<�<�r1r)s-_c�R�	t|���t��Sr7)rr,�_urlsafe_encode_translationr#s r%rrps$����Q�<�<�!�!�"=�>�>�>r1c�t�	t|��}|�t��}t|��Sr7)r&r,�_urlsafe_decode_translationrr#s r%rrys4��	�	 ��"�"�A�	���/�0�0�A��Q�<�<�r1zK
Encode the bytes-like objects using {encoding} and return a bytes object.
a�
Decode the {encoding} encoded bytes-like object or ASCII string s.

Optional casefold is a flag specifying whether a lowercase alphabet is
acceptable as input.  For security purposes, the default is False.
{extra_args}
The result is returned as a bytes object.  A binascii.Error is raised if
the input is incorrectly padded or if there are non-alphabet
characters present in the input.
a�
RFC 3548 allows for optional mapping of the digit 0 (zero) to the
letter O (oh), and for optional mapping of the digit 1 (one) to
either the letter I (eye) or letter L (el).  The optional argument
map01 when not None, specifies which letter the digit 1 should be
mapped to (when map01 is not None, the digit 0 is always mapped to
the letter O).  For security purposes the default is None, so that
0 and 1 are not allowed in the input.
s ABCDEFGHIJKLMNOPQRSTUVWXYZ234567s 0123456789ABCDEFGHIJKLMNOPQRSTUVc���|tvr$d�|D����fd��D��t|<d�t|t��s!t|�����}t|��dz}|r|dd|z
zz}t
��}tj}t|}tdt|��d��D]P}||||dz���}|||dz	||dz	dzz||d	z	dzz||dzzz
}�Q|d
krd|dd�<n)|d
krd|dd�<n|dkrd|dd�<n
|dkrd|dd�<t|��S)Nc�.�g|]}t|f����S��r-��.0�is  r%�
<listcomp>z_b32encode.<locals>.<listcomp>�s ��0�0�0�!�%���+�+�0�0�0r1c�$��g|]}�D]}||z���
Sr?r?)rB�a�b�b32tabs   �r%rDz_b32encode.<locals>.<listcomp>�s*���D�D�D��V�D�D��a�!�e�D�D�D�Dr1��r��i��
�s======i�����s====����s===�����=���)�_b32tab2rrrr�len�	bytearray�int�
from_bytes�ranger-)	�alphabetr$�leftoverr0rZ�b32tab2rC�crHs	        @r%�
_b32encoder`�s�����x���0�0�x�0�0�0��D�D�D�D�V�D�D�D�������a��%�%�$��q�M�M�!�!�#�#���1�v�v��z�H��'�
���X��&�&���k�k�G���J��x� �G�
�1�c�!�f�f�a�
 �
 �����J�q��A��E��{�#�#���G�A��G�$��Q�"�W��-�.�/��Q�"�W��-�.�/��A��I�&�'�	����1�}�}� �������	�Q����������	�Q����������	�Q�����������>�>�r1c���|tvr!d�t|��D��t|<t|��}t|��dzrt	jd���|�@t|��}|�t�dd|z����}|r|�	��}t|��}|�
d��}|t|��z
}t��}t|}tdt|��d��D]a}|||dz�}	d}
	|	D]}|
dz||z}
�n##t$rt	jd	��d�wxYw||
�d��z
}�b|dzs|d
vrt	jd���|r9|r7|
d|zz}
|
�d��}dd|zz
dz}
|d|
�|dd�<t|��S)
Nc��i|]\}}||��	Sr?r?)rB�k�vs   r%�
<dictcomp>z_b32decode.<locals>.<dictcomp>�s��B�B�B�d�a��Q��B�B�Br1�zIncorrect paddings01�OrTrrIzNon-base32 digit found>rrNrQrS��+���)�_b32rev�	enumerater&rWr*�Errorr,r-r.�upper�rstriprXr[�KeyError�to_bytes)r\r$�casefold�map01�l�padchars�decoded�b32revrC�quanta�accr_�lastr]s              r%�
_b32decoder{�s���w���B�B�i��.A�.A�B�B�B������"�"�A�
�1�v�v��z�2��n�0�1�1�1�
��'��.�.��
�K�K�����t�e�|�<�<�=�=����
�G�G�I�I��	�A���A�	������A��3�q�6�6�z�H��k�k�G�
�X�
�F�
�1�c�!�f�f�a�
 �
 �#�#���1�a�!�e�8�����	E��
-�
-���a�x�6�!�9�,���
-���	E�	E�	E��.�!9�:�:��D�	E�����3�<�<��?�?�"����1�u�2���/�/��n�0�1�1�1��'�G�'���H�����|�|�A������X��%�!�+���I�X�I���������>�>�s�9E
�
 E-c�,�tt|��Sr7)r`�_b32alphabetr#s r%r	r	�s���l�A�&�&�&r1�base32)�encodingc�0�tt|||��Sr7)r{r})r$rrrss   r%r
r
�s���l�A�x��7�7�7r1)r�
extra_argsc�,�tt|��Sr7)r`�_b32hexalphabetr#s r%rrs���o�q�)�)�)r1�	base32hexc�.�tt||��Sr7)r{r��r$rrs  r%rrs���o�q�(�3�3�3r1�c�P�	tj|�����Sr7)r*�hexlifyrnr#s r%r
r
s$�����A���$�$�&�&�&r1c���	t|��}|r|���}tjd|��rt	jd���t	j|��S)Ns	[^0-9A-F]zNon-base16 digit found)r&rn�re�searchr*rm�	unhexlifyr�s  r%rrsa���	 ��"�"�A���
�G�G�I�I��	�y��q�!�!�7��n�5�6�6�6���a� � � r1s<~s~>c�������t|t��s!t|�����}t	|��dz}|r|d|zz}tjdt	|��dzz���|��}����fd�|D��}|r0|s.|ddkr�ddz|d<|dd|�|d<d	�|��S)
NrSrJz!%dIc�|��g|]8}�r|sdn/�r|dkrdn%�|dz�|dzdzz�|dzz��9S)�zi    �yi�^	�Ui9r?)rB�word�chars�chars2�foldnuls�
foldspacess  ����r%rDz_85encode.<locals>.<listcomp>:s����!�!�!�
��!�t�!�d�d� �!�T�Z�%7�%7�d�d��d�f�n�%��d�b�j�4�'�(�)��T�B�Y�� �!�!�!r1rUr�rrIr1)	rrrrrW�struct�Struct�unpack�join)	rGr�r��padr�r��padding�words�chunkss	 `` ``   r%�	_85encoder�0s�������a��%�%�$��q�M�M�!�!�#�#���A���w�!�m�G�� �
�������M�&�C��F�F�a�K�0�1�1�8�8��;�;�E�!�!�!�!�!�!�!�
 �!�!�!�F��+�s�+��"�:�����q��A��F�2�J��B�Z�	�'��	�*��r�
��8�8�F���r1)r��wrapcolr��adobec�����	t�+d�tdd��D��ad�tD��at|tt|d|���|r
t�z��r�t|rdnd������fd�td	t
������D��}|r1t
|d
��dz�kr|�d��d�|���|r
�tz
��S)
Nc�.�g|]}t|f����Sr?r@rAs  r%rDza85encode.<locals>.<listcomp>]s ��9�9�9�Q�U�A�4�[�[�9�9�9r1�!�vc�,�g|]}tD]}||z���Sr?)�	_a85chars�rBrFrGs   r%rDza85encode.<locals>.<listcomp>^�)��D�D�D�!�)�D�D�Q�q�1�u�D�D�D�Dr1TrOrNc�*��g|]}�||�z���Sr?r?)rBrC�resultr�s  ��r%rDza85encode.<locals>.<listcomp>fs6���;�;�;����A��K��(�;�;�;r1rrUr1�
)
�
_a85chars2r[r�r��	_A85START�maxrW�appendr��_A85END)rGr�r�r�r�r�r�s  `   @r%rrHs#�����&��9�9�%��C�.�.�9�9�9�	�D�D�y�D�D�D�
�
�q�)�Z��d�J�
G�
G�F��$��V�#���$��5�'�a�a�a��1�1��;�;�;�;�;� ��C��K�K��9�9�;�;�;���	#��6�"�:����"�W�,�,��
�
�c�"�"�"����F�#�#�����'����Mr1s 	

)r�r��ignorecharsc��	t|��}|rp|�t��s'td�t�����|�t��r|dd�}n
|dd�}tjd��j	}g}|j
}g}|j
}|j}	|dzD]�}
d|
cxkrdkrwnnt||
��t|��dkrUd	}|D]
}
d
|z|
dz
z}�	|||����n##tj
$rtd��d�wxYw|	����|
dkr|rtd
���|d����|r#|
dkr|rtd���|d����|
|vr��td|
z���d�|��}dt|��z
}
|
r|d|
�}|S)Nz1Ascii85 encoded byte sequences must end with {!r}rO����!Isuuuur��urIrr�zAscii85 overflow�zzz inside Ascii85 5-tuples�yzy inside Ascii85 5-tuples    zNon-Ascii85 digit found: %cr1rS)r&�endswithr�r�format�
startswithr�r�r��packr��clearrW�errorr�)rGr�r�r��packIrv�decoded_append�curr�curr_append�
curr_clear�xryr�r�s              r%rrqsa���	 ��"�"�A��	��z�z�'�"�"�	���"�F�7�O�O���
�
�<�<�	�"�"�	��!�B�$��A�A��#�2�#��A�

�M�$���$�E��G��^�N�
�D��+�K���J�
��\�@�@���a�"�"�"�"�7�"�"�"�"�"��K��N�N�N��4�y�y�A�~�~����.�.�A��s�(�a�"�f�-�C�C�C�"�N�5�5��:�:�.�.�.�.���|�C�C�C�$�%7�8�8�d�B�C�����
�����
�'�\�\��
=� �!;�<�<�<��N�;�'�'�'�'�
�	@�A��L�L��
=� �!;�<�<�<��N�.�/�/�/�/�
�+�
�
���:�Q�>�?�?�?�
�X�X�g�
�
�F��#�d�)�)�m�G��#��	�'��	�"���Ms�=D� D2sU0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~c��	t�"d�tD��ad�tD��at|tt|��S)Nc�.�g|]}t|f����Sr?r@rAs  r%rDzb85encode.<locals>.<listcomp>�s ��7�7�7�Q�U�A�4�[�[�7�7�7r1c�,�g|]}tD]}||z���Sr?)�	_b85charsr�s   r%rDzb85encode.<locals>.<listcomp>�r�r1)�
_b85chars2�_b85alphabetr�r�)rGr�s  r%rr�sI�����7�7�,�7�7�7�	�D�D�y�D�D�D�
��Q�	�:�s�3�3�3r1c���	t�*dgdzatt��D]\}}|t|<�t|��}t	|��dz}|d|zz}g}tjd��j}tdt	|��d��D]�}|||dz�}d}	|D]}|dzt|z}�nG#t$r:t|��D](\}}t|�td||zz��d��)�wxYw	|�||������#t
j$rtd|z��d�wxYwd	�
|��}	|r|	d|�}	|	S)
N�rI�~r�rr�z#bad base85 character at position %dz+base85 overflow in hunk starting at byte %dr1)�_b85decrlr�r&rWr�r�r�r[r rr�r�r�)
rGrCr_r��outr��chunkry�jr�s
          r%rr�s�������&�3�,���l�+�+�	�	�D�A�q��G�A�J�J���"�"�A��A���w�!�m�G�	�D�7�N��A�
�C��M�$���$�E�
�1�c�!�f�f�a�
 �
 �,�,���!�A��E�'�
����	��
,�
,���B�h����+���
,���	�	�	�!�%�(�(�
9�
9���1��1�:�%�$�%J�'(�1�u�&.�/�/�48�9�&�
�	����	,��J�J�u�u�S�z�z�"�"�"�"���|�	,�	,�	,��J� �!�"�"�'+�
,�	,�����X�X�c�]�]�F��#��	�'��	�"���Ms�(C�AD�	D(�(#E�LrSrQc�Z�		|�t��}|sdSt|��tkrJ|�tt|��z
��}|sn||z
}t|��tk�Jtj|��}|�|����r7)�read�
MAXBINSIZErWr*r+�write)�input�outputr$�ns�lines     r%rr�s���;�
��J�J�z�"�"���	��E��!�f�f�z�!�!����J�s�1�v�v�-�.�.�B��
��
��G�A�	�!�f�f�z�!�!�
�"�1�%�%�����T����
r1c��		|���}|sdStj|��}|�|���Br7)�readliner*r4r�)r�r�r�r$s    r%rrsJ��;���~�~�����	��E����%�%�����Q����r1c�H�	t|��}n1#t$r$}d|jjz}t|��|�d}~wwxYw|jdvr&d|j�d|jj��}t|���|jdkr%d|j|jjfz}t|���dS)Nz"expected bytes-like object, not %s)r_rG�Bz#expected single byte elements, not z from rNz(expected 1-D data, not %d-D data from %s)rr r!r"r��ndim)r$�m�err�msgs    r%�_input_type_checkr�s���&��q�M�M�����&�&�&�2�Q�[�5I�I����n�n�#�%�����&����	�x��&�&�&�+,�8�8�8�Q�[�5I�5I�K����n�n���v��{�{�9�+,�6�1�;�3G�*H�I����n�n���{s��
A�;�Ac��	t|��g}tdt|��t��D];}|||tz�}|�tj|�����<d�|��S)Nrr1)r�r[rWr�r�r*r+r�)r$�piecesrCr�s    r%rr%s�����a����
�F�
�1�c�!�f�f�j�
)�
)�2�2���!�a�*�n�$�%���
�
�h�)�%�0�0�1�1�1�1��8�8�F���r1c�J�	t|��tj|��Sr7)r�r*r4r#s r%rr0s$��B��a������q�!�!�!r1c���	ddl}ddl}d|jdz}	|�|jdd�d��\}}nV#|j$rI}|j|_t
|��t
|��|�d��Yd}~nd}~wwxYwt}|D][\}}|dkrt}|dkrt}|dkrt}|d	krt��dS|d
krt
|��dS�\|rS|ddkrGt|dd��5}	||	|jj��ddd��dS#1swxYwYdS||j
j|jj��dS)
Nrz�usage: %s [-h|-d|-e|-u|-t] [file|-]
        -h: print this help message and exit
        -d, -u: decode
        -e: encode (default)
        -t: encode and decode string 'Aladdin:open sesame'rN�hdeutrOz-ez-dz-uz-tz-h�-�rb)�sys�getopt�argvr��stderr�stdout�print�exitrr�test�open�buffer�stdin)
r�r��usage�opts�argsr��func�orF�fs
          r%�mainr�7s������������
>�?B�h�q�k�	
J�E�
��]�]�3�8�A�B�B�<��9�9�
��d�d���<�����Z��
�
�c�
�
�
�
�e��������������������	����
�D��+�+���1���9�9�V�d���9�9�V�d���9�9�V�d���9�9�d�f�f�f�f�f�f���9�9�e�E�l�l�l�F�F�F�9��2��Q��3���
�$�q�'�4�
 �
 �	'�A��D��C�J�%�&�&�&�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'����	'�	'�	'�	'�	'�	'�	
��S�Y�
�s�z�0�1�1�1�1�1s)�&A�
B�?B�B�!E�E	�E	c���d}tt|����t|��}tt|����t|��}tt|����dS)NsAladdin:open sesame)r��reprrr)�s0�s1�s2s   r%r�r�TsT��	�B�	�$�r�(�(�O�O�O�	�R���B�	�$�r�(�(�O�O�O�	�R���B�	�$�r�(�(�O�O�O�O�Or1�__main__r7)NF)FN)F)FFF)9r�r�r*�__all__r-rXrr&rrrrr.r:r<rr�_B32_ENCODE_DOCSTRING�_B32_DECODE_DOCSTRING�_B32_DECODE_MAP01_DOCSTRINGr}r�rVrkr`r{r	r��__doc__r
rrr
rr�r�r�r�r�rrr�r�r�r�rr�MAXLINESIZEr�rrr�rrr�r�r"r?r1r%�<module>r
sq��K�
�	�	�	�
�
�
�
���������$�i� ��K�K�K�"����8�8�8�8�4������$�o�o�e�U�;�;��#�o�o�e�U�;�;��?�?�?�
�
�
�$��	����3��5��
��
��"�"�"�H,�,�,�,�^'�'�'�)�0�0�(�0�C�C�	��8�8�8�8�)�0�0�(�3N�1�P�P�	��*�*�*�,�3�3�[�3�I�I���4�4�4�4�-�3�3�[�?A�4�C�C���'�'�'�!�!�!�!�*
�	�
�
��	�
������0 %�a�U�%�'�'�'�'�'�R %�E�|�D�D�D�D�D�PE���	�
�
�
��4�4�4�4�'�'�'�Z���1�n�a�
�
�������
�
�
� ���"�"�"�2�2�2�:����z����D�F�F�F�F�F��r1

ZeroDay Forums Mini