403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.12/site-packages/dnf/yum/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.12/site-packages/dnf/yum/__pycache__/misc.cpython-312.opt-1.pyc
�

�(f+��F�dZddlmZmZddlmZddlmZmZmZddl	�ddl
ZddlZddl
ZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZdgZdad�Zdad	�Z d
�Z!Gd�de"�Z#d
�Z$d�Z%dd�Z&d�Z'd�Z(d�Z)dd�Z*d�Z+da,d�Z-dd�Z.dd�Z/y)z%
Assorted utility functions for yum.
�)�print_function�absolute_import)�unicode_literals)�base64_decodebytes�
basestring�unicode)�*N�sha256c�b�t�tjd�jat|�S)z( Tests if a string is a shell wildcard. z[*?]|\[.+\])�_re_compiled_glob_match�re�compile�search)�ss �1/usr/lib/python3.12/site-packages/dnf/yum/misc.py�re_globr0s*���&�"$�*�*�^�"<�"C�"C��"�1�%�%�c��t�Btjd�j}tjd�j}||fatD]}||�s�yy)zC Tests if a string needs a full nevra match, instead of just name. z.*([-.*?]|\[.+\]).z[0-9]+:TF)�_re_compiled_full_matchr
r�match)r�one�two�recs    r�re_full_search_neededr8sV���&��j�j�.�/�5�5���j�j��#�)�)��#&��*��&���q�6��'�rc��tdS)Nr)�_default_checksums�rr�get_default_chksum_typerFs
���a� � rc�0�eZdZdZdd�Zd�Zd�Zd�Zd�Zy)	�
GenericHolderz�Generic Holder class used to hold other objects of known types
       It exists purely to be able to do object.somestuff, object.someotherstuff
       or object[key] and pass object to another function that will
       understand itNc��||_y�N)�_GenericHolder__iter)�self�iters  r�__init__zGenericHolder.__init__Os	����rc�L�|j�t||j�Syr")r#r%)r$s r�__iter__zGenericHolder.__iter__Rs%���;�;�"���T�[�[�)�*�*�#rc�H�t||�rt||�St|��r")�hasattr�getattr�KeyError)r$�items  r�__getitem__zGenericHolder.__getitem__Vs#���4����4��&�&��4�.� rc��t|�j�D��cic]\}}t|�tur||��c}}Scc}}w)z!Return a dictionary of all lists.)�vars�items�type�list)r$�key�list_s   r�	all_listszGenericHolder.all_lists\sH��-1�$�Z�-=�-=�-?�(�-?�z�s�E���;�$�&��U�
�-?�(�	(��(s�?c��|j�j�D]/\}}t|�j|g�j	|��1|S)z7 Concatenate the list attributes from 'other' to ours. )r6r1r0�
setdefault�extend)r$�otherr4�vals    r�merge_listszGenericHolder.merge_listsasD���/�/�+�1�1�3�J�S�#���J�!�!�#�r�*�1�1�#�6�4��rr")	�__name__�
__module__�__qualname__�__doc__r&r(r.r6r<rrrr r Is ���
�+�!�(�
rr c��tjdd|�}tj�}d}d}|j	d�D]o}|jd�rd}�|r|j
�dk(rd}�/|r|jd�rn.|r|jd�rn|s�\|j|dz��qt|j��S)	z,Convert ASCII-armored GPG key to binary
    s
?�
rs$-----BEGIN PGP PUBLIC KEY BLOCK-----�rs"-----END PGP PUBLIC KEY BLOCK-----�=)
r
�sub�io�BytesIO�split�
startswith�strip�writer�getvalue)�rawkey�block�inblock�pastheaders�lines     r�
procgpgkeyrRgs���
�V�V�H�e�V�
,�F�
�J�J�L�E��G��K����U�#���?�?�B�C��G�
������,��K�
����)N�O��
�T�_�_�T�2��
��K�K��u��%�$��e�n�n�.�/�/rc��|jdd�D])}|d|k(s�t|dd�}||k(ry||kryyy	)
ab
    Return if the GPG key described by the given keyid and timestamp are
    installed in the rpmdb.

    The keyid and timestamp should both be passed as integers.
    The ts is an rpm transaction set object

    Return values:
        - -1      key is not installed
        - 0       key with matching ID and timestamp is installed
        - 1       key with matching ID is installed but has an older timestamp
        - 2       key with matching ID is installed but has a newer timestamp

    No effort is made to handle duplicates. The first matching keyid is used to
    calculate the return result.
    �namez
gpg-pubkey�version�release�rrC����)�dbMatch�int)�ts�keyid�	timestamp�hdr�installedtss     r�keyInstalledra�sS��$�z�z�&�,�/���y�>�U�"��c�)�n�b�1�K��i�'���y�(���0�rc�V�d}tj|td��tjj|�stj|�tjjt|d�|�|r�|dz}tjj|�s�tj|d��tj|dz�D]U}tjj|�}|d	z|z}tj||�tj|d��Wy
)zB It is used internally by deprecated function `import_repo_keys`. zQFunction `import_key_to_pubring` is deprecated. Will be removed after 2023-10-30.rX)�
stacklevelzutf-8z-roi�)�modez/*�/T)�warnings�warn�DeprecationWarning�os�path�exists�makedirs�libdnf�repo�importKeyToPubring�str�glob�basename�shutil�copy�chmod)	rMr]�gpgdir�make_ro_copy�msg�rodir�frr�ro_fs	         r�import_key_to_pubringr|�s���^�C��M�M�#�)�a�8�
�7�7�>�>�&�!�
���F���K�K�"�"�3�v�w�#7��@�������w�w�~�~�e�$��K�K��E�*��Y�Y�v��}�-���7�7�+�+�A�.���s�{�X�-�����A�t�$�����u�%�	.�rc��tj�}	tj|�}tj
j
|d�}tjj�d|�d�}tjj�d|�d�}ttj|��}|D]D}tj|�}t|d�s�'t|d�dk(s�9|d|k(s�B|cSt!j"|tjj��}|S#t$r#tjj�d|�d�}Y��wxYw)zqreturn a path to a valid and safe cachedir - only used when not running
       as root or when --tempcache is setr�-rer	i��)�prefix�dir)ri�geteuid�pwd�getpwuid�dnf�i18n�ucd�const�PREFIXr,�TMPDIR�sortedrq�lstat�S_ISDIR�S_IMODE�tempfile�mkdtemp)	�uid�usertup�usernamer��dirpath�	cachedirs�thisdir�stats�cachedirs	         r�getCacheDirr��s��
�*�*�,�C�4��,�,�s�#���8�8�<�<���
�+�� �Y�Y�-�-�x�8��
�)�)�*�*�F�3�G��t�y�y��)�*�I�������!���5��8����q��!2�c�!9�e�A�h�#�o��N�����v�3�9�9�3C�3C�D�H��O���4� �Y�Y�-�-�s�3��4�s�AD%�%)E�Ec��g}t|�}t|�}d}||kDr)||z}|j|||�||z
}||z}||kDr�)|j||d�|S)zE Given a seq, split into a list of lists of length max_entries each. rN)�lenr3�append)�seq�max_entries�ret�num�beg�ends      r�
seq_max_splitr��sy��
�C�

�c�(�C�
�s�)�C�
�C�

��
��K����
�
�3�s�3�<� ��{����{���	��
�
�J�J�s�3�4�y���Jrc��	tj|�y#t$r(}|jtjk7r�Yd}~yd}~wwxYw)z| Call os.unlink, but don't die if the file isn't there. This is the main
        difference between "rm -f" and plain "rm". N)ri�unlink�OSError�errno�ENOENT)�filename�es  r�unlink_fr��s;���
�	�	�(������7�7�e�l�l�"��#���s��	A	�A�A	c��	tj|�S#t$r[}|jtjtj
fvrYd}~y|r"|jtjk(rYd}~y�d}~wwxYw)zF Call os.stat(), but don't die if the file isn't there. Returns None. N)ri�statr�r�r��ENOTDIR�EACCES)r��
ignore_EACCESr�s   r�stat_fr��sZ����w�w�x� � �����7�7�u�|�|�U�]�]�3�3���Q�W�W����4��
���s ��	A;�,A6�A6�5A6�6A;c���	td�5}|j�}t|�cddd�S#1swYyxYw#ttf$rtj�cYSwxYw)z� Get the audit-uid/login-uid, if available. os.getuid() is returned
        instead if there was a problem. Note that no caching is done here. z/proc/self/loginuidN)�open�readr[�IOError�
ValueErrorri�getuid)�fo�datas  r�_getloginuidr��sQ��
�
�'�
(�B��7�7�9�D��t�9�)�
(�
(��
�Z� ���y�y�{���s#�>�2�	>�;�>�>�#A$�#A$c�.�t�
t�atS)z� Get the audit-uid/login-uid, if available. os.getuid() is returned
        instead if there was a problem. The value is cached, so you don't
        have to save it. )�_cached_getloginuidr�rrr�getloginuidr�s��
�"�*�n���rc�"�|r|}nGd}|jd�}|dkDr||d}|dvr|d|}|�tjjd��|r5t	|�}t	|�}|r|r|j
|j
k(r|S	tjj||d�|r.r,tj||j
|j
f�|S#t$r-}tjjt|���d}~wwxYw)z�take a filename and decompress it into the same relative location.
       When the compression type is not recognized (or file is not compressed),
       the content of the file is copied to the destinationN�.r)z.zckz.xzz.bz2z.gzz.lzmaz.zstz(Could not determine destination filenamei�)
�rfindr��
exceptions�	MiscErrorr��st_mtimerm�utils�
decompress�RuntimeErrorrpri�utime)	r��dest�check_timestamps�out�dot_pos�ext�fir�r�s	         rr�r�
s��
������.�.��%���Q�;��7�8�$�C��E�E��x��(���;��.�.�*�*�+U�V�V��
�H�
��
�C�[��
�"�������3��J�/�	������#�u�5��B�
����r�{�{�B�K�K�0�1��J��
�/��n�n�&�&�s�1�v�.�.��/�s�!C�	D�!(D	�	Dc��g}tj|�D]�}t|�5}|D]�}tjd|�r�|j	�}|j�}|s�=|rD|j
dd�}|j
dd�}|j|j����|j|���	ddd���|S#1swY��xYw)a( Takes a glob of a dir (like /etc/foo.d/\*.foo) returns a list of all
       the lines in all the files matching that glob, ignores comments and blank
       lines, optional parameter 'line_as_list tells whether to treat each line
       as a space or comma-separated list, defaults to True.
    z\s*(#|$)�
� �,N)
rqr�r
r�rstrip�lstrip�replacer9rHr�)�thisglob�line_as_list�results�fnamerzrQs      r�read_in_items_from_dot_dirr�1s����G����8�$��
�%�[�A����8�8�K��.���{�{�}���{�{�}������<�<��c�2�D��<�<��S�1�D��N�N�4�:�:�<�0�����t�$���[�%��N��[�s�BC�C	)NT)F)NF)T)0r@�
__future__rrr�
dnf.pycomprrrr��libdnf.reporm�libdnf.utils�	dnf.constr��
dnf.crypto�dnf.exceptions�dnf.i18nr�rqrFri�os.pathr�r
rsr�rfrrrrrr�objectr rRrar|r�r�r�r�r�r�r�r�r�rrr�<module>r�s���&�7�'�>�>����������	�	��
�	�
����Z����&����!��F��<0�:�>�2�0��	�
����!�Hr

Youez - 2016 - github.com/yon3zu
LinuXploit