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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/debian/__pycache__/debfile.cpython-314.pyc
+
�
4i�Q��>�Rt^RIt^RIt^RIt^RIt^RIt^RIHt^RI	H
t
HtHtH
t
HtHtHtHtHtHt^RIHt^RIHtHtHt^RIHt^RItRtRt .ROt!R	t".ROt#R
t$Rt%Rt&R
t'!RR](4t)!RR]PT4t+!RR]4t,!RR4t-!RR]-4t.!RR]-4t/!RR]4t0]1R8XdN]0!]Pd^,R7t3]3PhPk4t5]6!]5PoR
44R#R# ]dL�i;i) zWRepresentation of Debian binary package (.deb) files


Debfile Classes
===============
N)�Path)
�Any�BinaryIO�Dict�IO�Iterator�List�Optional�Text�Union�overload)�Literal)�ArFile�ArError�ArMember)�	Changelogzdata.tarzcontrol.tarz
debian-binary�controlzusr/share/doc/%s/changelog.gzz$usr/share/doc/%s/changelog.Debian.gz�md5sumsc�6a�]tRt^FtoRtV3RlRltRtVtR#)�_NormedFilePatha^File path class for squashing ./ at the start of files for TarFile

This class only replaces the __eq__ method of the file path comparison
so that "./" is always added to the start of the file path
meaning that "is this the right file to extract" will be true when
the code asks for "./control" but the control.tar member contains
the file "control"
c�&<�V^8�dQhRS[RS[/#)��value�return)r�bool)�format�
__classdict__s"��0/usr/lib/python3/dist-packages/debian/debfile.py�__annotate__�_NormedFilePath.__annotate__Ps�����C��D��c���\V4p\V4pVR8XdRpM VPR4'g
RV,pVR8XdRpW#8H#VPR4'g
RV,pW#8H#)�.�./)�str�
startswith)�selfr�s1�s2s&&  r�__eq__�_NormedFilePath.__eq__Psn��
��Y��
��Z��
��9��B����t�$�$����B�
��9��B��x�����t�$�$����B��x�r �N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r)�__static_attributes__�__classdictcell__�rs@rrrFs������r rc�ja�]tRt^^toRtRtV3RlRltV3RlRlt]!]]4t	V3Rlt
RtVtR#)	�_NormedTarInfoaTarInfo replacement that uses file path comparison that squashes ./

This class uses the above _NormedFilePath class for file paths when
iterating or inspecting the members of a TarFile. The _NormedFilePath
normalises the file path when inspecting or extracting from a .deb file.

The class replaces the 'name' member that is normally a str with
a property that addresses a _NormedFilePath.

The control tarball members of the .deb may contain an optional entry
for "." and prefix all entries in the tarball with "./".  Archives
generated by dpkg have this prefix but third party tools might not. The
published spec for the .deb file format, deb(5) from dpkg-dev, explicitly
permits this difference and thus it should be supported here.

See https://bugs.debian.org/1031674 for more detail.
Nc�0<�V^8�dQhRS[S[,/#�rr�r	r$)rrs"�rr�_NormedTarInfo.__annotate__ss�����8�C�=�r c��VP#�N��_name�r&s&r�	_get_name�_NormedTarInfo._get_namess���z�z�r c�$<�V^8�dQhRS[RR/#)r�namerN�r$)rrs"�rrr9vs���+�+�c�+�d�+r c�&�\V4VnR#r;)rr=)r&rBs&&r�	_set_name�_NormedTarInfo._set_namevs��$�T�*��
r c�6<�V^8�dQh/S[S[,;R&#)rr=r8)rrs"�rrr9^s����&�C�=��'r r<)
r,r-r.r/r0r=r?rE�propertyrB�__annotate_func__r1r2r3s@rr5r5^s:�����$ �E���+�+��I�y�)�D�7�r r5c��]tRt^|tRtR#)�DebErrorr+N�r,r-r.r/r1r+r rrKrK|s��r rKc��a�]tRt^�toRtRtRt]R4tV3RlRlt	RRlt
]RR	l4t]RR
l4tRRlt]RRl4t
]RR
l4t
RRlt
RtRtRtV3RlRltRtVtR#)�DebPartal'Part' of a .deb binary package.

A .deb package is considered as made of 2 parts: a 'data' part
(corresponding to the possibly compressed 'data.tar' archive embedded
in a .deb) and a 'control' part (the 'control.tar.gz' archive). Each of
them is represented by an instance of this class. Each archive should
be a compressed tar archive although an uncompressed data.tar is permitted;
supported compression formats are: .tar.gz, .tar.bz2, .tar.xz .

When referring to file members of the underlying .tar.gz archive, file
names can be specified in one of 3 formats "file", "./file", "/file". In
all cases the file is considered relative to the root of the archive. For
the control part the preferred mechanism is the first one (as in
deb.control.get_content('control') ); for the data part the preferred
mechanism is the third one (as in deb.data.get_file('/etc/vim/vimrc') ).
c� �WnRVnR#r;)�_DebPart__member�
_DebPart__tgz)r&�members&&r�__init__�DebPart.__init__�s���
���
r c�Ha�V3RlpSPf�SPPp\PPV4^,R,pV\9gV\8XgV\8XdNVR8XdV!RR.4pMSPp\P!VR\R7SnSP#\R
V,4hSP# \P\P3dp\R	T,4hRp?ii;i)z�Return a TarFile object corresponding to this part of a .deb
package.

Despite the name, this method gives access to various kind of
compressed tar archives, not only gzipped ones.
c��<a�^RIp^RIoVPVVPVPRV3RlR7pTPSPP44^,pTP^8wd.\
R	RPT4:R
TP:R24h\P!T4# \\
3d)p\
RRPT4:RT:R24hRp?ii;i)�NFc�P<�SPSPSP4#r;)�signal�SIGPIPE�SIG_DFL)rYs�r�<lambda>�9DebPart.tgz.<locals>._custom_decompress.<locals>.<lambda>�s����M�M�&�.�.�&�.�.�Ar )�stdin�stdout�universal_newlines�
preexec_fnzerror while running command '� z' as subprocess: '�'z	command 'z' has failed with code ')�
subprocessrY�Popen�PIPE�OSError�
ValueErrorrK�join�communicaterP�read�
returncode�io�BytesIO)�command_listrd�proc�e�datarYr&s&    @�r�_custom_decompress�'DebPart.tgz.<locals>._custom_decompress�s����
<�!��"�'�'� �$�/�/�*�/�/�',� B�	(����#�#�D�M�M�$6�$6�$8�9�!�<�D����!�#�� #���� 6���� I�J�J��:�:�d�#�#���Z�(�
<�� #���� 6�� ;�<�<��
<�s�6B>�>C7�#C2�2C7N��NN�zst�unzstdz--stdoutzr:*)�fileobj�mode�tarinfoz#tarfile has returned an error: '%s'z"part '%s' has unexpected extension)rQrPrB�os�path�splitext�	PART_EXTS�	DATA_PART�	CTRL_PART�tarfile�openr5�	ReadError�CompressionErrorrK)r&rsrB�	extension�bufferrqsf     r�tgz�DebPart.tgz�s����	$�4�:�:���=�=�%�%�D����(�(��.�q�1�"�5�I��I�%���):�d�i�>O���%�/��:�0F�G�F�!�]�]�F�N�!(���f�5�R`�!a�D�J�
�z�z���C�d�J�K�K��z�z���	 �)�)�7�+C�+C�D�N�"�#H�1�#L�M�M��N�s�"C%�%%D!�
D�D!c���\V4PRR4pVPR4'dV#VPR4'd
RV,#VR8XdR#RV,#)zntry (not so hard) to obtain a member file name in a form that is
stored in the .tar.gz, i.e. starting with ./ �\�/r#r")r$�replacer%)�fnames&r�__normalize_member�DebPart.__normalize_member�s_���E�
�"�"�4��-�����D�!�!��L����C� � ���;���C�<���e�|�r c�6<�V^8�dQhRS[RS[S[,/#)rr}r)r$r	)rrs"�rr�DebPart.__annotate__�s#���#F�#F�s�#F�x��}�#Fr c��.pVPR4R,F�pVPV4\PP	RPV44p\PV4pVP4PV4pVP4'gK�VPPR4'd*VPPR4pVPpK�VPVR&K�	\P\PP	X44# \dR#i;i)z�walk the path following symlinks

returns:
    resolved_path, info

if the path is not found even after following symlinks within the
archive, then None is returned.
r�ruN���)�split�appendr|r}�normpathrirN�_DebPart__normalize_memberr��	getmember�issym�linknamer%�KeyError)r&r}�resolved_path_parts�pathpart�currpath�tinfos&&    r�__resolve_symlinks�DebPart.__resolve_symlinks�s��	�"$�� �J�J�s�O�B�/�/��#�*�*�8�4��7�7�+�+�C�H�H�5H�,I�J��"�5�5�h�?�����
�,�,�X�6���;�;�=�=��~�~�0�0��5�5�.3�n�n�.B�.B�3�.G�+�#(�>�>��38�.�.�+�B�/�%0�0�)�)�"�'�'�*:�*:�8�*D�E�E��	�	��	�s�B#D9�* D9�<D9�9E�Ec��\PV4pVP4P4pW9dR#V'dVP	V4pVRJ#W9#)z]Check if this part contains a given file name.

Symlinks within the archive can be followed.
TN)rNr�r��getnames�_DebPart__resolve_symlinks)r&r��follow_symlinks�names�
fname_reals&&&  r�has_file�DebPart.has_filesV���*�*�5�1�����
�#�#�%���>����0�0��7�J��T�)�)��~�r Nc��R#r;r+�r&r��encoding�errorsr�s&&&&&r�get_file�DebPart.get_file���	
r c��R#r;r+r�s&&&&&rr�r�r�r c�N�\PV4pV'd#VPV4pVf\R4hTpVP	4PV4pTf\R4hTe\P!YbTR7#T# \d
\R4hi;i)z�Return a file object corresponding to a given file name.

If encoding is given, then the file object will return Unicode data;
otherwise, it will return binary data.

If follow_symlinks is True, then symlinks within the archive will be
followed.
zFile not found inside package�r�r�)	rNr�r�rKr��extractfiler�rm�
TextIOWrapper)r&r�r�r�r�r��fobjs&&&&&  rr�r�"s����*�*�5�1����0�0��7�J��!��>�?�?��E�	<��8�8�:�)�)�%�0�D��<��:�;�;����#�#�D�F�K�K�����	<��:�;�;�	<�s�B
�
B$c��R#r;r+r�s&&&&&r�get_content�DebPart.get_contentB���	
r c��R#r;r+r�s&&&&&rr�r�Lr�r c��VP\V4W#VR7pRpV'd!VP4pVP4V#)aReturn the string content of a given file, or None (e.g. for
directories).

If encoding is given, then the content will be a Unicode object;
otherwise, it will contain binary data.

If follow_symlinks is True, then symlinks within the archive will be
followed.
)r�r�r�N)r�r$rk�close)r&r�r�r�r��f�contents&&&&&  rr�r�VsG�� 
�M�M���J��+�
�
��
����f�f�h�G�
�G�G�I��r c�P�\VP4P44#r;)�iterr�r�r>s&r�__iter__�DebPart.__iter__ss���D�H�H�J�'�'�)�*�*r c�$�VPV4#r;)r��r&r�s&&r�__contains__�DebPart.__contains__ws���}�}�U�#�#r c�$�VPV4#r;)r�r�s&&r�__getitem__�DebPart.__getitem__{s������&�&r c�<�V^8�dQhRR/#�rrNr+)rrs"�rrr�s�����t�r c�:�VPP4R#r;)rPr�r>s&rr��
DebPart.closes���
�
���r )�__member�__tgz)F)NNF)NF)r,r-r.r/r0rSr��staticmethodr�r�r�rr�r�r�r�r�r�r1r2r3s@rrNrN�s������"�
4�l����&#F�#F�J�$�
��
��
��
��@�
��
��
��
��:+�$�'��r rNc��]tRtRtRtR#)�DebDatai�r+NrLr+r rr�r��s��r r�c�a�]tRtRtoV3RlRltV3RlRlt]RRl4t]R
V3RlR	ll4tRR
ltRtVt	R#)�
DebControli�c�6<�V^8�dQhRS[S[S[3,/#r7�rr$�bytes)rrs"�rr�DebControl.__annotate__�s������c�5�j�)�r c��/p\F7pVPV4'gKVPV4pVfK3W1V&K9	V#)zfReturn a dictionary of maintainer scripts (postinst, prerm, ...)
mapping script names to script text. )�
MAINT_SCRIPTSr�r�)r&�scriptsr�rrs&   rr��DebControl.scripts�sF��%'��"�E��}�}�U�#�#��'�'��.���#�%)�E�N�	#��r c�H<�V^8�dQhRS[PP/#r7��debian�deb822r�)rrs"�rrr��s!���H�H�F�M�M�4�4�Hr c�f�\PPVP\44#)z�Return the debian/control as a deb822.DebControl (a Debian-specific dict-like
class) object.

For a string representation of debian/control try
.get_content('control') )r�r�r�r��CONTROL_FILEr>s&r�
debcontrol�DebControl.debcontrol�s$���}�}�'�'��(8�(8��(F�G�Gr Nc��R#r;r+�r&r�r�s&&&rr�DebControl.md5sums�r�r c�R<�V^8�dQhRS[RS[S[,RS[S[S[3,/#�rr�r�r�r$r	r)rrs"�rrr��s/���
�
��
�X�c�]�
�d�3�PS�8�n�
r c��R#r;r+r�s&&&rrr�����r c��VP\4'g\R\,4hVP\WR7p/pRpVfRpVP	4FTpVPV4P
R^4wrx\V\4'dVP4WH&KPWtV&KV	VP4V#)a�Return a dictionary mapping filenames (of the data part) to
md5sums. Fails if the control part does not contain a 'md5sum' file.

Keys of the returned dictionary are the left-hand side values of lines
in the md5sums member of control.tar.gz, usually file names relative to
the file system root (without heading '/' or './').

The returned keys are Unicode objects if an encoding is specified,
otherwise binary. The returned values are always Unicode.z('%s' file not found, can't list MD5 sumsr�z
Ns
)r��MD5_FILErKr��	readlines�rstripr��
isinstancer��decoder�)	r&r�r��md5_file�sums�newline�line�md5r�s	&&&      rrr��s����}�}�X�&�&��:�X�E�G�
G��=�=��H�=�L��!��%+�����G��&�&�(�D����W�-�3�3�D�!�<�J�C��#�u�%�%�!�j�j�l���!�U��
)�	�����r r+�NNr;)
r,r-r.r/r�r�rrr1r2r3s@rr�r��sR������H�H��
��
��
�
��
��r r�c�a�]tRtRtoRtRRltV3RlRlt]V3RlRl4t]R	4t	]R
4t
V3RlRltV3R
lRlt]
RRl4t]
RV3RlRll4tRRltRtV3RlRltV3RlRltV3RlRltRtVtR#)�DebFilei�a�Representation of a .deb file (a Debian binary package)

DebFile objects have the following (read-only) properties:
    - version       debian .deb file format version (not related with the
                    contained package version), 2.0 at the time of writing
                    for all .deb packages in the Debian archive
    - data          DebPart object corresponding to the data.tar.gz (or
                    other compressed or uncompressed tar) archive contained
                    in the .deb file
    - control       DebPart object corresponding to the control.tar.gz (or
                    other compressed tar) archive contained in the .deb
                    file
Nc�<a�\P!WW#4\VP44oRV3Rllp\S9d\R\,4h/Vn\VPV!\444VP\&\VPV!\444VP\&RVnVP\4pVP4P4VnVP!4R#)c�0�V^8�dQhR\R\/#)r�basenamerrC)rs"rr�&DebFile.__init__.<locals>.__annotate__�s��	"�	"�3�	"�3�	"r c�X<�\Uu.uFq:RV:2NK
	ppV\\39dVPV4SP	\V44pV'g\
RV,4h\V4^8�d\
RV,4h\V4^,#uupi)r"z9missing required part in given .deb (expected one of: %s)z>too many parts in given .deb (was looking for only one of: %s))	rr�r�r��intersection�setrK�len�list)r��ext�
candidates�parts�actual_namess&   �r�compressed_part_name�.DebFile.__init__.<locals>.compressed_part_name�s����?H�I�y��X�s�3�y�J�I��I�y�1�1��!�!�(�+� �-�-�c�*�o�>�E���-�/9�:�;�;��5�z�A�~��9�;E�F�G�G���;�q�>�!��Js�B'z4missing required part in given .deb (expected: '%s')N)rrSrr��	INFO_PARTrK�_DebFile__partsr�r�r�r�r��_DebFile__pkgnamerk�strip�_DebFile__versionr�)r&�filenamerzryr
r�r	s&&&&  @rrS�DebFile.__init__�s���������6��4�=�=�?�+��	"�	"�$�L�(��$�&/�0�1�
1����",�T�^�^� ��+�.-�#.����Y��")�$�.�.� ��+�+-�#.����Y������N�N�9�%��������)���	���	r c�<�V^8�dQhRR/#r�r+)rrs"�rr�DebFile.__annotate__s���6�6��6r c�>�VP4R,VnR#)�packageN)r�rr>s&r�__updatePkgName�DebFile.__updatePkgNames�����*�9�5��r c� <�V^8�dQhRS[/#r7)r�)rrs"�rrrs������r c��VP#r;)rr>s&r�version�DebFile.versions���~�~�r c�0�VP\,#r;)r
r�r>s&rrr�DebFile.data	����|�|�I�&�&r c�0�VP\,#r;)r
r�r>s&rr�DebFile.controlrr c�H<�V^8�dQhRS[PP/#r7r�)rrs"�rrrs���)�)�F�M�M�4�4�)r c�6�VPP4#)zSee .control.debcontrol() )rr�r>s&rr��DebFile.debcontrols���|�|�&�&�(�(r c�6<�V^8�dQhRS[S[S[3,/#r7r�)rrs"�rrrs���&�&��c�5�j�)�&r c�6�VPP4#)zSee .control.scripts() )rr�r>s&rr��DebFile.scriptss���|�|�#�#�%�%r c��R#r;r+r�s&&&rr�DebFile.md5sumsr�r c�R<�V^8�dQhRS[RS[S[,RS[S[S[3,/#r�r�)rrs"�rrr#s.���
�
��
�X�c�]�
�D��c��N�
r c��R#r;r+r�s&&&rrr)"r�r c�:�VPPWR7#)zSee .control.md5sums() r�)rrr�s&&&rrr)&s���|�|�#�#�X�#�E�Er c��VPfVP4\VP,\VP,3FdpVPPVRR7p\P!TR7;_uu_4pTP4pRRR4\X4u#	R# \dKxi;i +'giL3;i)z}Return a Changelog object for the changelog.Debian.gz of the
present .deb package. Return None if no changelog can be found. NT)r�)ry)r�_DebFile__updatePkgName�CHANGELOG_DEBIAN�CHANGELOG_NATIVErrr�rK�gzip�GzipFilerkr)r&r��fh�gz�
raw_changelogs&    r�	changelog�DebFile.changelog+s���
�>�>�!�� � �"�&����7�&����7�9�E�
��Y�Y�'�'��t�'�D�����r�*�*�b� "���	�
�+��]�+�+�9����
��
��+�*�s�B7�
C	�7C�C�	Cc�<�V^8�dQhRR/#r�r+)rrs"�rrr@s�����t�r c�n�VPP4VPP4R#r;)rr�rrr>s&rr��
DebFile.close@s ���������	�	���r c�<�V^8�dQhRR/#)rrr�r+)rrs"�rrrDs�����9�r c��V#r;r+r>s&r�	__enter__�DebFile.__enter__Ds���r c�0<�V^8�dQhRS[RS[RS[RR/#)r�exc_type�exc_val�exc_tbrN)r)rrs"�rrrGs)�������s��C��D�r c�&�VP4R#r;)r�)r&r@rArBs&&&&r�__exit__�DebFile.__exit__Gs���
�
�r )�__parts�	__pkgname�	__version)N�rNr�r;)r,r-r.r/r0rSr.rHrrrrr�r�rrr6r�r=rDr1r2r3s@rr�r��s������%�N6�6������'��'��'��'�)�)�&�&��
��
��
�
��
�F�
�*�����r r��__main__)r)r4�bz2�xz�lzmarw)�preinst�postinst�prerm�postrm�config)8r0r1rmr��sys�os.pathr|�pathlibr�typingrrrrrrr	r
rr�typing_extensionsr
�ImportError�
debian.arfilerrr�debian.changelogr�
debian.deb822r�r�r�rrr�r�r0r/r�r$r�TarInfor5rKrNr�r�r�r,�argv�debrr��printr�r+r r�<module>r`s,���0�	��
������	��4�3�&��
�	��	�.�	��	�D�
���2��9����
�c��0*�W�_�_�*�<	�w�	�@�@�F	�g�	�
@��@�F}�f�}�@�z��
�3�8�8�A�;�
'�C�

�+�+�/�/�
�C�	�#�-�-�	�
"�#���w�	��	�s�D�D�D

Youez - 2016 - github.com/yon3zu
LinuXploit