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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/__pycache__/problem_report.cpython-314.pyc
+
e��i҄��a�Rt/0tRt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t^RI
t^RIt^RIt^RI
t
^RIt^RIt^RIt^RIt^RIt^RIHtHtHt^RIHtRtRtRt!RR]4t!R	R
]4t!RR]4tR
Rlt RRlt!RRlt"Rt#RRlt$RRlt%]PL!RR44t'!RR4t(])]',](,]*,]+,t,]^k!RR]PZ4t.R#)z(Store, load, and handle problem reports.N)�	Generator�Iterable�Iterator)�	TypeAliasis�s(�/�c�Baa�]tRt^%toRtV3RlV3RlltRtVtV;t#)�MalformedProblemReportz�Raised when a problem report violates the crash report format.

This exception might be raised when the keys of the report are not ASCII.
c�&<�V^8�dQhRS[RS[/#)��message�args)�str�object)�format�
__classdict__s"��0/usr/lib/python3/dist-packages/problem_report.py�__annotate__�#MalformedProblemReport.__annotate__+s���
�
��
�F�
�c�4<�\SV`!RVR2.VO5!R#)zMalformed problem report: z$. Is this a proper .crash text file?N)�super�__init__)�selfr
r�	__class__s&&*�rr�MalformedProblemReport.__init__+s+���
���(��	�22�
3�	
��	
r�)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�__static_attributes__�__classdictcell__�
__classcell__�rrs@@rrr%s�����

�
�
rrc��]tRt^3tRtRtR#)�_SizeLimitExceededz>Raised internally to signal a value that is too big to encode.rN)rrrrrr rrrr%r%3s��Hrr%c�Za�]tRt^7toRtV3RlRltV3RlRltV3RlRltRtVt	R	#)
�_EntryParserz�Iterator over entries in RFC822 formatted files.

This iterator reads ahead one line to determine the boundaries between
the entries. Each returned entry is a line-based iterator.
c�4<�V^8�dQhRS[S[,RR/#)r	�iterator�returnN�r�bytes)rrs"�rr�_EntryParser.__annotate__>s������%���T�rc�.�WnRVnRVnR#)NT)r)�	next_line�
entry_read)rr)s&&rr�_EntryParser.__init__>s�� �
�'+�����rc�0<�V^8�dQhRS[S[,/#�r	r*r+)rrs"�rrr-Cs��������rc#��"�VP'gQhVPx�RVnVPF&pVPR4'dVx�K WnM	RVnR#5i)z$Iterate over all lines of one entry.N� T)r/r)�
startswithr0)r�lines& r�entry_iterator�_EntryParser.entry_iteratorCsW����~�~�~��~��n�n������M�M�D����t�$�$��
�!%���"����s�A)A+c�0<�V^8�dQhRS[S[,/#r3r+)rrs"�rrr-Ps���%�%�(�5�/�%rc���VP'gVP4FpK	VP'g\VP4VnRVnVP4#�F)r0r8r/�nextr))r�_s& r�__next__�_EntryParser.__next__PsP�������(�(�*���+��~�~�~�!�$�-�-�0�D�N�����"�"�$�$r)r0r)r/N)
rrrrrrr8r?r r!�rs@rr'r'7s(�������
��%�%rr'c�\�V^8�dQhR\\,R\\,/#�r	�entryr*)rr,r)rs"rrrZs"��?�?�8�E�?�?�x���?rc#�"�VFp\P!V4x�K	R# \Pdp\	\T44RhRp?ii;i5i�N)�base64�	b64decode�binascii�Errorrr)rDr7�errors&  r�_base64_decoderrLZsK�����	?��"�"�4�(�(����~�~�	?�(��U��4�$�>��	?�s$�A�'�A�A�A�A�Ac�0�V^8�dQhR\R\/#)r	r7r*�r,)rs"rrrbs����U��u�rc�Z�V^,p^
pV^,'dW V,^,,
pV^,'d"W,^8wdV^,
pKV^,
pV^,'d"W,^8wdV^,
pKV^,
pV^,'d
V^,
pWR#)z0Strip gzip header from line and return the rest.Nr)r7�flags�offsets&  r�_strip_gzip_headerrRbs�����G�E�
�F��q�y�y��v�,��"�"���q�y�y��l�a���a�K�F��!����r�z�z��l�a���a�K�F��!����q�y�y��!�����=�rc�h�V^8�dQhR\\,R\R\\,/#)r	rD�
first_liner*r+)rs"rrrvs)��$�$��%��$�e�$����$rc#�."�VP4pVx�\V4pVFkpV^8�dRx�VPR4'd#V^Rx�V\V4^,
,
pKGVR,x�V\V4^,
,
pKm	R#5i)��
:�NNN���)�strip�len�endswith)rDrTr7�lengths&&  r�
_text_decoderr^vs�������D�
�J�
��Y�F����A�:��K��=�=�����q��*���c�$�i�!�m�#�F��r�(�N��c�$�i�!�m�#�F��s
�AB�	ABc�r�^RIpVP4# \dp\RTR24RhRp?ii;i)rVNz$Failed to import zstandard library: z#. Please install python3-zstandard.)�	zstandard�ImportError�RuntimeError�ZstdDecompressor)r`rKs  r�_get_zstandard_decompressorrd�sP�����%�%�'�'�����2�5�'�:1�
2�
��	���s��6�1�6c�h�V^8�dQhR\\,R\R\\,/#)r	rD�first_blockr*r+)rs"rrr�s)��-�-�h�u�o�-�E�-�h�u�o�-rc#�"�\4P4pVPV4x�VFpVPV4x�K	R#5irF)rd�
decompressobj�
decompress)rDrf�decompressor�blocks&&  r�_zstandard_decoderrl�sB���.�0�>�>�@�L�
�
!�
!�+�
.�.����%�%�e�,�,��s�A
Ac��V^8�dQhR\\,R\\\\,\3,/#rC)rr,�tupler�bool)rs"rrr�s.��/�/����/�E�#�x����2L�,M�/rc��\V4pVPR^4wr#TP	R4pTP4R8HpT'd
\T4pM\Y4pYGT3# \d#\RTP	RR7:R24Rhi;i \
dp\\
T44RhRp?ii;i)	z�Parse the given entry and return key and value.

Return the key and a line iterator over the value. Also return a
boolean if the entry is base64 encoded (i.e. is a binary value).
�:zLine �backslashreplace)�errorsz? does not contain a colon for separating the key from the valueN�ASCIIsbase64)
r=�split�
ValueErrorr�decode�UnicodeDecodeErrorrrZrLr^)rDrT�key_in_bytes�first_line_value�keyrK�base64_encoded�value_iterators&       r�_parse_entryr~�s����e��J��)3�)9�)9�$��)B�&��;��!�!�'�*��&�+�+�-��:�N��(��/��&�u�?����.�.��%��$��J�%�%�-?�%�@�C�&�
'�
��		����;�$�S��Z�0�d�:��;�s"�A)�B�)-B�B>�$B9�9B>c�la�]tRt^�toRtV3RlRltRtV3RlRltV3RlRltV3R	lt	R
t
VtR#)�CompressedFilez�Represents a ProblemReport value which points to a compressed file.

The file is expected to be compressed with gzip or zstandard.
c�$<�V^8�dQhRS[RR/#)r	�filenamer*N�r)rrs"�rr�CompressedFile.__annotate__�s���:�:��:��:rc�H�Wn\VPR4VnR#)�rbN)r��open�_compressed_file)rr�s&&rr�CompressedFile.__init__�s�� �
� $�T�]�]�D� 9��rc�b�\VR4'dVPP4R#R#)r�N)�hasattrr��close�rs&r�__del__�CompressedFile.__del__�s'���4�+�,�,��!�!�'�'�)�-rc�0<�V^8�dQhRS[S[,/#r3r+)rrs"�rrr��s������%��rc#�j"�VPP\4pV'gR#Vx�K05i)z:Iterate over the compressed content of the file in chunks.N)r��read�
CHUNK_SIZE)rrks& r�iter_compressed�CompressedFile.iter_compressed�s)�����)�)�.�.�z�:�E����K�s�(3�3c� <�V^8�dQhRS[/#r3�ro)rrs"�rrr��s���E�E�T�Erc�d�\P!VP\PRR7#)z?Check if the compressed file is readable by the effective user.T)�
effective_ids)�os�accessr��R_OKr�s&r�is_readable�CompressedFile.is_readable�s���y�y�������t�D�Drc�&<�V^8�dQh/S[;R&#)r	r�r�)rrs"�rrr��s�����M�r)r�r�N)rrrrrrr�r�r��__annotate_func__r r!rAs@rr�r��s6�����:�:�
*���E�E�5�rr�c��a�]tRt^�toRtRV3RlRlltV3RlRltV3RlRltV3R	lR
lt]	V3RlRl4t
V3R
lRltV3RlRlt]
3V3RlRlltV3RlRltV3RlRltRtVtR#)�CompressedValuez�Represent a ProblemReport value which is gzip or zstandard compressed.

By default, compressed values are in gzip format. Earlier versions of
problem_report used zlib format (without gzip header).
Nc�Z<�V^8�dQhRS[R,RS[R,RS[R,RR/#)r	�valueN�name�compressed_valuer*�r,r)rrs"�rr�CompressedValue.__annotate__�s?���
"�
"��t�|�
"��D�j�
"� �$�,�	
"�

�
"rc�T�W0nW nV'dVPV4R#R#)zAInitialize an empty CompressedValue object with an optional name.N)r�r��	set_value)rr�r�r�s&&&&rr�CompressedValue.__init__�s#��!1���	���N�N�5�!�rc�$<�V^8�dQhRS[RR/#)r	r�r*NrN)rrs"�rrr��s���/�/�u�/��/rc��\P!4p\P!VPRV^R7;_uu_4pVPV4RRR4VP
4VnR# +'giL';i)zSet uncompressed value.�wb��mode�fileobj�mtimeN)�io�BytesIO�gzip�GzipFiler��write�getvaluer�)rr��out�gzs&&  rr��CompressedValue.set_value�sQ���j�j�l��
�]�]�4�9�9�4��A�
F�
F�"��H�H�U�O�G� #������G�
F�s�A3�3B	c� <�V^8�dQhRS[/#r3��int)rrs"�rrr��s���*�*�S�*rc�L�VPfQh\VP4#)z=Return size of the compressed (but not base64 encoded) value.)r�r[r�s&r�get_compressed_size�#CompressedValue.get_compressed_size�s%���$�$�0�0�0��4�(�(�)�)rc� <�V^8�dQhRS[/#r3r�)rrs"�rrr��s���;�;�#�;rc�L�VP4^,^,^,#)z�Return the size needed on disk to store the compressed value.

The compressed value will be base64 encoded when written to disk
which adds an overhead of 1/3 plus up to 2 bytes of padding. Additional
spaces and newlines are ignored in this calculation.
)r�r�s&r�get_on_disk_size� CompressedValue.get_on_disk_size�s"���)�)�+�a�/�A�5��:�:rc�F<�V^8�dQhRS[S[,RS[S[,/#rCr+)rrs"�rrr��s#���#�#����#�H�U�O�#rc#�"�\VR4pVfR#VP\4'd\W4Rjx�L
R#VP\4'dC\
P!\
P)4pVP\V44x�M(\
P!4pVPV4x�VFpVPV4x�K	VP4x�R#L�5i)z5Decode the given compressed value (iterator version).N)r=r6�ZSTANDARD_MAGIC_NUMBERrl�GZIP_HEADER_START�zlibrh�	MAX_WBITSrirR�flush)rDrkrjs&  r�decode_compressed_stream�(CompressedValue.decode_compressed_stream�s�����U�D�!���=�����2�3�3�)�%�7�7�7�����-�.�.��-�-�t�~�~�o�>�L��)�)�*<�U�*C�D�D� �-�-�/�L��)�)�%�0�0��E��)�)�%�0�0��� � �"�"�
8�s�-C<�C<�C:� C<� BC<c� <�V^8�dQhRS[/#r3rN)rrs"�rrr�s���	6�	6�5�	6rc�|�VPfQhVPP\4'd$\4P	VP4#VPP\
4'd!\P!VP4#\P!VP4#)zReturn uncompressed value.)r�r6r�rdrir�r�r�r�s&r�	get_value�CompressedValue.get_values����$�$�0�0�0�� � �+�+�,B�C�C�.�0�;�;�D�<Q�<Q�R�R�� � �+�+�,=�>�>��?�?�4�#8�#8�9�9����t�4�4�5�5rc�H<�V^8�dQhRS[PS[,RR/#�r	�filer*N)�typing�IOr,)rrs"�rrr�s$���;�;�&�)�)�E�*�;�t�;rc��VP'gQhVPP\4'd=\4pVP	\
P!VP4V4R#VPP\4'd|\P!\
P!VP4R7;_uu_4pVP\4pV'gMVPV4K2RRR4R#VP\P!VP44R# +'giLA;i)z5Write uncompressed value into given file-like object.N)r�)r�r6r�rd�copy_streamr�r�r�r�r�r�r�r�r�ri)rr�rjr�rks&&   rr��CompressedValue.writes����$�$�$�$�$�� � �+�+�,B�C�C�6�8�L��$�$�R�Z�Z��0E�0E�%F��M��� � �+�+�,=�>�>����r�z�z�$�2G�2G�'H�I�I�R���G�G�J�/�E� ���J�J�u�%��
J�I�	
�
�
�4�?�?�4�#8�#8�9�:�J�I�s�E�7E�E	c�6<�V^8�dQhRS[RS[S[,/#)r	�
chunk_sizer*)r�rr,)rrs"�rrr�3s���<�<�#�<�x���<rc#�"�VP'gQh\^VP4V4FpVPW"V,x�K	R#5i)z.Iterate over the compressed content in chunks.N)r��ranger�)rr��is&& rr��CompressedValue.iter_compressed3sI����$�$�$�$�$��q�$�2�2�4�j�A�A��'�'��
�N�;�;�B�s�AAc� <�V^8�dQhRS[/#r3r�)rrs"�rrr�9s���
�
��
rc�T�VP'gQhVPP\4'd5\\P
!RVPRR4^,4#^pVP
VP44FpV\V4,
pK	V#)z$Return length of uncompressed value.�<LN���)	r�r6r�r��struct�unpackr�r�r[)rr]rks&  r�__len__�CompressedValue.__len__9s����$�$�$�$�$�� � �+�+�,=�>�>��v�}�}�T�4�+@�+@���+E�F�q�I�J�J����2�2�4�3G�3G�3I�J�E��c�%�j� �F�K��
rc�0<�V^8�dQhRS[S[,/#r3)�listr,)rrs"�rrr�Es���-�-�D��K�-rc�>�VP4P4#)z.Behaves like splitlines() for a normal string.)r��
splitlinesr�s&rr��CompressedValue.splitlinesEs���~�~��*�*�,�,r)r�r�)NNN)rrrrrrr�r�r��staticmethodr�r�r�r�r�r�r�r r!rAs@rr�r��s}�����
"�
"�/�/�*�*�
;�;��#��#�*	6�	6�;�;�*1;�<�<�
�
�-�-rr�c��aa�]tRtRtoRtR-V3RlV3RllltV3RlRltR.V3RlRlltV3R	lR
ltV3RlRlt	V3R
lRlt
V3RlRlt]V3RlRl4t
]V3RlRl4tR/V3RlRlltR0V3RlRlltV3RlRltV3RlRlt]V3RlRl4tV3RlR ltV3R!lR"ltR0V3R#lR$lltR1R%ltV3R&lR'ltV3R(lR)lt]V3R*lR+l4tR,tVtV;t#)2�
ProblemReportiMz1Class to store, load, and handle problem reports.c�8<�V^8�dQhRS[RS[R,RR/#)r	�problem_type�dateNr*r�)rrs"�rr�ProblemReport.__annotate__Ps'���(�(�S�(�#��*�(�PT�(rc�~<�Vf\P!4p\SV`
RVRV/4\	4VnR#)z�Initialize a fresh problem report.

problem_type can be 'Crash', 'Packaging', 'KernelCrash' or
'KernelOops'. date is the desired date/time string; if
None (default), the current local time is used.
N�ProblemType�Date)�time�asctimerr�set�old_keys)rr�r�rs&&&�rr�ProblemReport.__init__Ps6����<��<�<�>�D�
���-��v�t�D�E�#&�%��
rc�4<�V^8�dQhRS[S[,RR/#)r	�tagsr*N)rr)rrs"�rrr�^s���2�2�X�c�]�2�t�2rc��VP4pVPV4pRP\V44VR&R#)z/Add tags to the report. Duplicates are dropped.� �TagsN)�get_tags�union�join�sorted)rr��current_tags�new_tagss&&  r�add_tags�ProblemReport.add_tags^s4���}�}����%�%�d�+���x�x��x� 0�1��V�rc��<�V^8�dQhRS[PS[PS[,,RS[S[PR,,RS[S[,R,RR/#)r	r��binary�
compressed�
key_filterNr*)	r�r�r�r�r,ro�Literalrr)rrs"�rrr�ds\���6.�6.��m�m�f�i�i��.�.�6.��v�~�~�l�3�3�6.��S�M�D�(�	6.�

�6.rc��VPV4VPP4V'd
\V4pMRp\	V4EFp\V4wrgpVe	Wd9dKV'd�VRJdRVPV&M�VR8Xd+\
VRPV4R7VPV&MnVPRP\PV444VPV&M-VPRPV44VPV&VfK�VPV4\V4^8XgEKM	\VPP44Vn
R#)a�Initialize problem report from a file-like object.

If binary is False, binary data is not loaded; the dictionary key is
created, but its value will be an empty string. If it is True, it is
transparently uncompressed and available as dictionary byte array
values. If binary is 'compressed', the compressed value is retained,
and the dictionary value will be a CompressedValue object. This is
useful if the compressed value is still useful (to avoid recompression
if the file needs to be written back).

file needs to be opened in binary mode.

If key_filter is given, only those keys will be loaded.

Files are in RFC822 format, but with case sensitive keys.
NFrr)r�r�)�_assert_bin_mode�data�clearr�r'r~r�r�_try_unicoder��remover[�keysr�)	rr�rr
�remaining_keysrDr{r)r|s	&&&&     r�load�ProblemReport.loadds-��,	
���d�#��	�	����� ��_�N�!�N�!�$�'�E�,8��,?�)�C�>��)�c�.G����U�?�%)�D�I�I�c�N��|�+�%4� �3�8�8�H�3E�&�D�I�I�c�N�&*�%6�%6�����!I�!I�(�!S�T�&�D�I�I�c�N�
"&�!2�!2�3�8�8�H�3E�!F��	�	�#���)��%�%�c�*��~�&�!�+��/(�2�D�I�I�N�N�,�-��
rc�<�V^8�dQhRS[PS[PS[,,RS[S[,S[,RS[RR/#)r	r��bin_keys�	directoryr*N)r�r�r�r�r,rr)rrs"�rrr��sN���(?�(?��m�m�f�i�i��.�.�(?��3�-�#�%�(?��	(?�

�(?rc�8�VPV4\V\4'dV.p\V4p/p\	V4F�p\V4wrxp	Wt9dKW�V&VP
V4V	'gK8\PPW74p
\V
R4;_uu_4p\PV4FpVPV4K	RRR4K�	V'd\RRPV4R24hRVP!49d:VP#4UUu.uFwr�VRJgK
VNK	ppp\%VR24hR# +'giEK.;i \dp
\RT
24T
hRp
?
ii;iuuppi)	z�Extract only given binary elements from the problem report.

Binary elements like kernel crash dumps can be very big. This method
extracts directly files without loading the report into memory.
r�Nzunable to open zCannot find z, z
 in reportFz has no binary content)r�
isinstancerr�r'r~rr��pathrr�r�r�r��OSError�KeyError�values�itemsrv)rr�rr�missing_keys�	b64_blockrDr{r)r|�key_pathr�rkrK�item�elementr"s&&&&             r�extract_keys�ProblemReport.extract_keys�ss��	
���d�#��h��$�$� �z�H��H�~���	�!�$�'�E�,8��,?�)�C�>��&��+�c�N�����$�!���w�w�|�|�I�3�H�
G��(�D�)�)�S�!0�!I�!I�(�!S���	�	�%�(�"T�*�)�(�$��\�$�)�)�L�*A�)B�*�M�N�N��I�$�$�&�&�/8���/@�U�/@�m�d�G�u�DT�T�T�/@�E�U���w�&<�=�>�>�'�*�)�)���
G����z�:�;��F��
G��VsB�E4�/.E�E4�7
F�F�E1�*E4�1E4�4F�?F�Fc�0<�V^8�dQhRS[S[,/#r3�r�r)rrs"�rrr��s���,�,�#�c�(�,rc�f�RV9d\4#\VR,PR44#)zReturn the set of tags.rr)r�rur�s&rr�ProblemReport.get_tags�s+������5�L��4��<�%�%�c�*�+�+rc�.<�V^8�dQhRS[R,/#)r	r*Nr�)rrs"�rrr��s�����s�T�z�rc�P�\P!\P4p\P!\PR4\	\
P!\
P!VR,444\P!\PV4# \d*\P!\PT4R#i;i \P!\PT4i;i \PdR#i;i)zXGet timestamp (seconds since epoch) from Date field.

Return None if it is not present.
�Cr�N)
�locale�	getlocale�LC_TIME�	setlocaler�r��mktime�strptimer rJ)r�
orig_ctimes& r�
get_timestamp�ProblemReport.get_timestamp�s����%�%�f�n�n�5�
�		�
=�� � �����5��4�;�;�t�}�}�T�&�\�'B�C�D�� � �����<���
��� � �����<�
��� � �����<���|�|�	��	�sB�AB+�%D�+C�6C"�7%D�C�C"�"'D	�	D�D%�$D%c� <�V^8�dQhRS[/#r3r�)rrs"�rrr��s���%�%�D�%rc�(�RVP49#)znCheck if the report has any keys which were not loaded.

This could happen when using binary=False in load().
N)r!r�s&r�has_removed_fields� ProblemReport.has_removed_fields�s��
�t�{�{�}�$�$rc�6<�V^8�dQhRS[S[,RS[/#)r	�stringr*)r,rro)rrs"�rrr��s�����%�#�+��$�rc��\V\4'd5VF.pV^ 8gK\V4P4'dK-R#	R#)z0Check if the given strings contains binary data.TF)rr,�chr�isspace)r?�cs& r�	is_binary�ProblemReport.is_binary�s:���f�e�$�$����r�6�#�a�&�.�.�"2�"2���rc�6<�V^8�dQhRS[RS[S[,/#)r	r�r*r�)rrs"�rrr��s�������5�3�;�rc�~�VPV4'gVPR4#V# \dTu#i;i)z*Try to convert bytearray value to Unicode.�UTF-8)rDrwrx)�clsr�s&&rr�ProblemReport._try_unicode�sD���}�}�U�#�#�
��|�|�G�,�,����&�
���
�s�,�
<�<c�j<�V^8�dQhRS[S[,R,RS[S[S[S[3,,/#)r	rNr*)rrrrn�ProblemReportValue)rrs"�rrr��s6���#�#��S�M�D�(�#�	�%��/�/�0�	1�#rc#�"�V'd4\\VP44\V4,4pM\VP44pRF.pW!9gKVPV4VP	^V4K0	VF/pVPR4'dKW,pVfK*W#3x�K1	R#5i)aOIterate over all non-internal items sorted.

The most interesting fields will be returned first. The remaining
items will be returned in alphabetical order. Keys starting with
an underscore are considered internal and are skipped. Also values
that are None will be skipped.

If keys is provided, only those keys will be iterated over.
r>N)�	Traceback�
StackTrace�Titler��Package�ExecutablePath)rr�rr�insertr6)rrr{r�s&&  r�sorted_items�ProblemReport.sorted_items�s������#�d�i�i�k�*�S��Y�6�7�D��$�)�)�+�&�D�
�C��{����C� ����A�s�#�
��C��~�~�c�"�"���I�E��}���*���s
�AC�$ACc�N<�V^8�dQhRS[PS[,RS[RR/#)r	r��only_newr*N)r�r�r,ro)rrs"�rrr�s0���D�D�&�)�)�E�*�D�d�D�t�Drc��VPV4VPV4wr4VFpVPW4K	VFpVPW4K	R#)aKWrite information into the given file-like object.

If only_new is True, only keys which have been added since the last
load() are written (i. e. those returned by new_keys()).

If a value is a string, it is written directly. Otherwise it must be a
tuple of the form (file, encode=True, limit=None, fail_on_empty=False).
The first argument can be a file name or a file-like object,
which will be read and its content will become the value of this key.
'encode' specifies whether the contents will be
gzip compressed and base64-encoded (this defaults to True). If limit is
set to a positive integer, the file is not attached if it's larger
than the given limit, and the entire key will be removed. If
fail_on_empty is True, reading zero bytes will cause an OSError.

file needs to be opened in binary mode.

Files are written in RFC822 format.
N)r�_get_sorted_keys�_write_ascii_item�)_write_binary_item_compressed_and_encoded)rr�rW�asckeys�binkeys�ks&&&   rr��ProblemReport.writesW��(	
���d�#��0�0��:����A��"�"�4�+���A��:�:�4�C�rc�\<�V^8�dQhRS[RS[S[S[,S[S[,3,/#)r	rWr*)rornr�r)rrs"�rrr�;s-��� � �� �%��S�	�4��9�8L�2M� rc��.p.pVPP4F�pV'dW@P9dKVPV,p\V\\
,4'd>VP
V4'dVPV4K{VPV4K�\V\\34'g3\V4^8�d#V^,'gVPV4K�VPV4K�	VP4RV9d$VPR4VP^R4VP4W#3#)ziSort keys into ASCII non-ASCII/binary attachment ones, so that
the base64 ones appear last in the report
r�)rrr�rr,rrD�appendr�r�r[�sortrrS)rrWr\r]r^�vs&&    rrY�ProblemReport._get_sorted_keys;s������������!�A��A���.���	�	�!��A��!�U�S�[�)�)��>�>�!�$�$��N�N�1�%��N�N�1�%��q�>�?�"C�D�D���F�a�K��!������q�!����q�!�#"�&	�����G�#��N�N�=�)��N�N�1�m�,�������rc�N<�V^8�dQhRS[PS[,RS[RR/#�r	r�r{r*N�r�r�r,r)rrs"�rrr�[s+���%�%�f�i�i��&6�%�S�%�T�%rc���VPV,p\V\\,4'g�\	V4^8�dV^,eV^,pMRp\	V4^8�;'d
V^,p\V^,R4'dV^,P
4pM4\V^,R4;_uu_4pVP
4pRRR4V'd#\	V4^8Xd\RV,4hVe \	V4V8�dVPVR#\V\4'dVPR4pVPVPR44RV9d4VPR4VPVPRR	44M"VPR
4VPV4VPR4R# +'giEL;i)�Nr�r��did not get any data for field rHrtrWs:
 �
 s: )rrr,rr[r�r�r�r�encoder��replace)rr�r{rd�limit�
fail_on_empty�fs&&&    rrZ�ProblemReport._write_ascii_item[sg���I�I�c�N���!�U�S�[�)�)��1�v��{�q��t�/��!�������F�a�K�0�0�A�a�D�M��q��t�V�$�$��a�D�I�I�K���!�A�$��%�%������A�&���Q��1���?�#�E�F�F�� �S��V�e�^��I�I�c�N���a��������!�A��
�
�3�:�:�g�&�'��A�:��J�J�w���J�J�q�y�y���/�0��J�J�u���J�J�q�M��
�
�5��-&�%�%�s�G#�#G4	c�d<�V^8�dQhRS[PS[,RS[RS[S[,RR/#)r	r�r{�chunksr*N)r�r�r,rr)rrs"�rrr��s:������i�i����%(��2:�5�/��	
�rc�r�VP4pVPVR2PR44VF9pVPR4VP\P!V44K;	VPR4R# \
d%TP
T4TPT4hi;i)zCWrite out binary chunks as a base64-encoded RFC822 multiline field.z: base64rtrlrWN)�tellr�rmrG�	b64encode�	Exception�seek�truncate)r�r{rt�reset_position�chunks&&&  r�!_write_binary_item_base64_encoded�/ProblemReport._write_binary_item_base64_encoded�s���
�����		��J�J�#��h�'�.�.�w�7�8����
�
�6�"��
�
�6�+�+�E�2�3� �
�J�J�u����	��I�I�n�%��M�M�.�)��	�s�A3B�/B6c�6<�V^8�dQhRS[RS[S[,/#)r	r{r*)rrr,)rrs"�rrr��s$���J�J�s�J�y��7G�Jrc	#�"�VPV,p\V\\34'dVP	4Rjx�L
R#\
R,VP
R4,R,pVx�\P!R4p\P!^\P\P)\P^4p^p\V\4'dQh\V\4'dHV\V4,
p\P!W$4pVP!V4pV'dVx�EMVRp\V4^8�dV^,e
V^,p\#V^,R4'dV^,p	M\%V^,R4p	V	P'\(4p
V\V
4,
p\P!W�4pVeWh8�dVPV\+R4hV
'd"VP!V
4pV'dVx�K�K�\#T^,R4'gT	P-4\T4^8�d8T^,'d)T^8Xd"\/R	TR
\T^,424hVP14p
V
\2P4!RVR,4,
p
V
\2P4!RVR,4,
p
V
x�R#EL�5i)
z�Generator taking the value out of self.data and outputing it
in compressed chunks of binary data.

Throws a _SizeLimitExceeded exception if the value exceeds its specified
size limit, in which case it will also remove the value from self.data entirely.
Ns�rH�rr�r�z,Binary data bigger than the limit ({limit}b)rkz from r�l��)rrr�r�r�r�rmr��crc32�compressobj�DEFLATEDr��
DEF_MEM_LEVELrr,r[�compressr�r�r�r�r%r�rr�r��pack)rr{r��gzip_header�crc�bc�size�outblockrorqrks&&         r�_generate_compressed_chunks�)ProblemReport._generate_compressed_chunks�sk����	�	�#����e�n�o�>�?�?��,�,�.�.�.���-�
.��j�j��!�
"��
�	����j�j��o��
�
�
�a���������AS�AS�UV�
W�����e�S�)�)�)�)��e�U�#�#��C��J��D��*�*�U�(�C��{�{�5�)�H������E��5�z�Q��5��8�#7��a����u�Q�x��(�(��!�H����q��4�(������z�*����E�
�"���j�j��,���$��|� �I�I�c�N�0�J����!�{�{�5�1�H��&�� ���5��8�V�,�,����	��5�z�Q��5��8�8��1�9�!�9�#��f�S��q��]�O�T���
���
��
����T�3��#3�4�4��
����T�4�*�#4�5�5����
/�s'�AL�L�G	L�L�)AL�:B	Lc�N<�V^8�dQhRS[PS[,RS[RR/#rgrh)rrs"�rrr��s.���
�
��I�I�e�$�
�+.�
�	
�
rc�n�VPWVPV44R# \dR#i;i)z?Write the binary keys with gzip compression and base64 encodingN)r}r�r%)rr�r{s&&&rr[�7ProblemReport._write_binary_item_compressed_and_encoded�s9��	��2�2��4�;�;�C�@�
��"�	��	�s�!%�4�4c�*<�V^8�dQhRS[RS[RR/#)r	�
reportfile�
keep_timesr*N)rro)rrs"�rrr��s"���-�-�#�-�4�-�D�-rc�>�\P!V4p\VR4;_uu_4p\P!V^4VP	V4RRR4V'd-\P
!WPVP34\P!WP4R# +'giLf;i T'd-\P
!YPTP34\P!YP4i;i)z�Add this report's data to an already existing report file.

The file will be temporarily chmod'ed to 000 to prevent frontends
from picking up a hal-updated report file. If keep_times
is True, then the file's atime and mtime restored after updating.
�abN)	r��statr��chmodr��utime�st_atime�st_mtime�st_mode)rr�r��st�reports&&&  r�add_to_existing�ProblemReport.add_to_existing�s����W�W�Z�
 ��	-��j�$�'�'�6�����Q�'��
�
�6�"�(������k�k�2�;�;�%?�@��H�H�Z���,�
(�'�������k�k�2�;�;�%?�@��H�H�Z���,�s#�C�)B3�C�3C	�>C�ADc�$�VPV4\VPP44pRp.pRV9d$VP	R4VP^R4V'd?^p	VF6p
W�9gKVP	V
4VPW�4V	^,
p	K8	VEF�pV'd	W�9dKVPV,pRp
\
V\4'dVPp
EMZ\
V\\,4'g�Rp
\V^,R4'dV^,pM\V^,R4pVPR4'dVP4p
M�\P !4p\"P$!VRV^R7;_uu_4pVP\&4pV'dVP)V4K1RRR4TP+4p
VP-4MFVP/V4'd0VPR4'dTp
M\W�4Pp
V
'd�\0P2P4P7R	R
4pVPR4'dVP9RRVR
7MVP9RRVR,R
7VP;V
4\0P<P?V4VPAV4EKd\CV4p\
V\4'dVPERR4p\
V\4'gQh\CVPG44pVR8:d8V^8Xd1VPI4pW{R,V,R,,
pEKVR8:dgVV8:d`W{R,,
pVPR4'g
VR,
pW|PK4PMRR4R,,
pEKs\0P2PNPQVRR7pVP9RRVR,R
7VPAV4EK�	\0P2PNPQVRR7pVP9RR4VP^V4\0P2PRPU4pV'd+VPW4Fwr�VP9W�4K	VFpVPYV4K	VP)VP[4P]R44VP)R4R# +'giEL�;i)aWrite MIME/Multipart RFC 2822 formatted data into file.

file must be a file-like object, not a path.  It needs to be opened in
binary mode.

If a value is a string or a CompressedValue, it is written directly.
Otherwise it must be a tuple containing the source file and an optional
boolean value (in that order); the first argument can be a file name or
a file-like object, which will be read and its content will become the
value of this key.  The file will be gzip compressed, unless the key
already ends in .gz.

attach_treshold specifies the maximum number of lines for a value to be
included into the first inline text part. All bigger values (as well as
all non-ASCII ones) will become an attachment, as well as text
values bigger than 1 kB.

Extra MIME preamble headers can be specified, too, as a dictionary.

skip_keys is a set/list specifying keys which are filtered out and not
written to the destination file.

priority_fields is a set/list specifying the order in which keys should
appear in the destination file.
�r�Nr�r�z.gzr�r��applicationzx-gzipzContent-Disposition�
attachment)r�rHrni�z: �
z:
 z
 )�_charsetz.txt�inlinerW)/rrrrrrSrr�r�r,rr�r�r\r�r�r�r�r�r�r�r�r�rD�email�mime�base�MIMEBase�
add_header�set_payload�encoders�
encode_base64rbr[rwr��rstriprZrn�text�MIMEText�	multipart�
MIMEMultipartr"�attach�	as_stringrm)rr��attach_treshold�
extra_headers�	skip_keys�priority_fieldsrr��attachments�counter�priority_fieldr^rd�attach_valuerqr�r�rk�attr��lines�msg�as&&&&&&                 r�
write_mime�ProblemReport.write_mime�s/��H	
���d�#��d�i�i�n�n�&�'�������D� ��K�K�
�&��K�K��=�)���G�"1��!�)��K�K��/��K�K��8��q�L�G�	#2��A��Q�^���	�	�!��A��L��!�_�-�-� �1�1�� ��5�3�;�/�/�!���1�Q�4��(�(��!��A��Q�q�T�4�(�A��:�:�e�$�$�#$�6�6�8�L��*�*�,�C����q�t�S��J�J�b�"�$%�F�F�:�$6�E�$� "����� %�
K�$'�<�<�>�L����	�����"�"��:�:�e�$�$�#$�L�#2�1�#8�#I�#I�L���j�j�o�o�.�.�}�h�G���:�:�e�$�$��N�N�#8�,�QR�N�S��N�N�-�|�a�%�i�#������-����,�,�S�1��"�"�3�'��1�v���a��'�'�����)�4�A�!�!�S�)�)�)�)��A�L�L�N�+���4�<�E�Q�J����
�A���H�q�L�4�/�/�D��T�\�e��&>���J�&�D��:�:�d�+�+��T�	���G�G�I�-�-�d�E�:�T�A�A�D� �*�*�/�/�2�2�1�w�2�G�C��N�N�-�|�a�&�j�#�� �&�&�s�+�[�`�j�j�o�o�&�&�t�g�&�>�����,�h�7����1�c�"��j�j�"�"�0�0�2���%�+�+�-������q�$�.��A��J�J�q�M��	
�
�
�3�=�=�?�)�)�'�2�3��
�
�5��KK�J�J�s�0U>�U>�>Vc�*<�V^8�dQhRS[RS[RR/#)r	r^rdr*N)rrL)rrs"�rrr��s#���+�+�S�+�%7�+�D�+rc��\VR4'gQhVPRR4PRR4PRR4P4'g\RVR24h\	V\
\34'g�\VR4'g�\	V\4'dq\V4^8Xg/\V4^8�dQ\V4^8:dAV^,R
9d3\V^,R4'g)\V^,R4'g\RVR	24hVPPW4#)�isalnum�.r��-r>zkey 'zT' contains invalid characters (only numbers, letters, '.', '_', and '-' are allowed)r�zvalue for key z7 must be a string, CompressedValue, or a file reference>FT)r�rnr�rvrr�r�rnr[�	TypeErrorr�__setitem__)rr^rds&&&rr��ProblemReport.__setitem__�s���q�)�$�$�$�$��y�y��b�!�)�)�#�r�2�:�:�3��C�K�K�M�M����s�J�K��
�
�q�>�?�;�<�<��q�)�$�$��1�e�$�$���F�a�K��A��!���A��!���!��
�8M��Q�q�T�9�-�-���1��v�1F�1F�� ���$'�(��
�
�y�y�$�$�Q�*�*rc�0<�V^8�dQhRS[S[,/#r3r+)rrs"�rrr��s���5�5�#�c�(�5rc�j�\VPP44VP,
#)zyReturn newly added keys.

Return the set of keys which have been added to the report since it
was constructed or loaded.
)r�rrr�r�s&r�new_keys�ProblemReport.new_keys�s#���4�9�9�>�>�#�$�t�}�}�4�4rc�$<�V^8�dQhRS[RR/#r�)r
)rrs"�rrr��s���S�S�v�S�$�Src�8�\VR4'dQR4hR#)z0Assert that given file object is in binary mode.�encodingz"file stream must be in binary modeN)r�)r�s&rr�ProblemReport._assert_bin_mode�s ���4��,�,�R�.R�R�,�,r)r�)�CrashN)TNrFr<)�NNN)rrrrrrrrr(rr8r<r�rD�classmethodrrTr�rYrZr}r�r[r�r�r�r�rr r!r"r#s@@rr�r�Ms����;�(�(�2�2�6.�6.�p(?�(?�T,�,���$%�%���������#�#�JD�D�< � �@%�%�N���� J�J�X
�
�-�-�"S�j+�+�85�5��S��S�Srr�c�@�V^8�dQh/^\9d
\;R&#)r	rL)�__conditional_annotations__r)rs"rrrs��.�.�R
W�V�I�V�S
/r)0r�rrGrI�collections�dataclasses�email.encodersr��email.mime.base�email.mime.multipart�email.mime.textr�r�r1r�r�r�r�r��collections.abcrrrrr�r�r�rvrrbr%r'rLrRr^rdrlr~�	dataclassr�r�r,rrnrL�UserDictr�r)r�s@r�<module>r�s����.����������	�
�	�
��
��9�9��
�
�#��,��
�Z�
�I��I� %�8� %�F?��($�	(�-�/�<
���E�E��E�<r-�r-�j!&�� 6�� H�3� N�QV� V��V�k	S�K�(�(�k	Sr

Youez - 2016 - github.com/yon3zu
LinuXploit