403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/keyring/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/keyring/__pycache__/core.cpython-311.pyc
�

%�c_��t�dZddlZddlZddlZddlZddlZddlmZmZddl	m
Zddlm
Z
eje��Zdad�Zdejfd	�Zd
�Zdededejefd
�Zdedededdfd�Zdededdfd�Zdedejedejejfd�Zd�Zdd�Zdd�Zd�Z d�Z!d�Z"d�Z#d�Z$dS)z1
Core API functions and initialization routines.
�N�)�backend�credentials)�	platform_)�failc�\�t|tj��std���|adS)zSet current keyring backend.z1The keyring must be an instance of KeyringBackendN)�
isinstancer�KeyringBackend�	TypeError�_keyring_backend)�keyrings �./usr/lib/python3/dist-packages/keyring/core.py�set_keyringrs5���g�w�5�6�6�M��K�L�L�L������returnc�t�t�t��tjtjt��S)zGet current keyring backend.)r�init_backend�typing�castrr
�rr�get_keyringrs'���������;�w�-�/?�@�@�@rc��tj��}	tj|��n#t$rYnwxYwtj�|d��}tj�|��rd|��}t|���t|d��5}|�
d��ddd��dS#1swxYwYdS)z4
    Configure the null keyring as the default.
    �
keyringrc.cfgzRefusing to overwrite �wz7[backend]
default-keyring=keyring.backends.null.KeyringN)�platform�config_root�os�makedirs�OSError�path�join�exists�RuntimeError�open�write)�root�filename�msg�files    r�disabler*$s'����!�!�D�
�
��D�������
�
�
���
�����w�|�|�D�/�2�2�H�	�w�~�~�h��� �1�x�1�1���3����	
�h��	�	�O���
�
�M�N�N�N�O�O�O�O�O�O�O�O�O�O�O�O����O�O�O�O�O�Os�*�
7�7�C�C�C�service_name�usernamec�F�t���||��S)z(Get password from the specified service.)r�get_password�r+r,s  rr.r.5s���=�=�%�%�l�H�=�=�=r�passwordc�L�t���|||��dS)z3Set password for the user in the specified service.N)r�set_password)r+r,r0s   rr2r2:s$���M�M���|�X�x�@�@�@�@�@rc�J�t���||��dS)z:Delete the password for the user in the specified service.N)r�delete_passwordr/s  rr4r4?s"���M�M�!�!�,��9�9�9�9�9rc�F�t���||��S)z+Get a Credential for the specified service.)r�get_credentialr/s  rr6r6Ds���=�=�'�'��h�?�?�?rc��|jdkS)Nr)�priority)rs r�recommendedr9Ks����q� � rc�>�tt|����dS)z"
    Load a detected backend.
    N)r�_detect_backend��limits rrrOs �����&�&�'�'�'�'�'rc���|t_t��pYt��pKt	t|tj����tj��tj	���S)z�
    Return a keyring specified in the config file or infer the best available.

    Limit, if supplied, should be a callable taking a backend and returning
    True if that backend should be included for consideration.
    )�default�key)
r�_limit�load_env�load_config�max�filter�get_all_keyringr�Keyring�by_priorityr<s rr;r;Vs_���G�N��
�
�	
��=�=�	
���5�'�1�3�3�4�4��L�N�N��#�	
�
�
�	rc��|�d��\}}}t|��tj|}t	||��S)a�
    Load the keyring class indicated by name.

    These popular names are tested to ensure their presence.

    >>> popular_names = [
    ...      'keyring.backends.Windows.WinVaultKeyring',
    ...      'keyring.backends.macOS.Keyring',
    ...      'keyring.backends.kwallet.DBusKeyring',
    ...      'keyring.backends.SecretService.Keyring',
    ...  ]
    >>> list(map(_load_keyring_class, popular_names))
    [...]
    �.)�
rpartition�
__import__�sys�modules�getattr)�keyring_name�module_name�sep�
class_name�modules     r�_load_keyring_classrUlsH��$0�#:�#:�3�#?�#?� �K��j��{����
�[��
%�F��6�:�&�&�&rc�B�t|��}|j|��S)z�
    Load the specified keyring by name (a fully-qualified name to the
    keyring, such as 'keyring.backends.file.PlaintextKeyring')
    )rUr8)rP�class_s  r�load_keyringrX�s#��
!��
.�
.�F�
�O�O��6�8�8�Orc�d�	ttjd��S#t$rYdSwxYw)z6Load a keyring configured in the environment variable.�PYTHON_KEYRING_BACKENDN)rXr�environ�KeyErrorrrrrBrB�s?��
��B�J�'?�@�A�A�A���
�
�
����
���s�!�
/�/c�x�d}tj�tj��|��}tj�|��sdSt
j��}|�|��t|��	|�
d��r)|�dd�����}nt
j
dd���nL#tj
tf$r3tjd��}|�dd|zz��YdSwxYwt%|��S)z8Load a keyring using the config file in the config root.rNrzdefault-keyringr
z/Keyring config file contains incorrect values.
zConfig file: %s)rr r!rrr"�configparser�RawConfigParser�read�_load_keyring_path�has_section�get�strip�
NoOptionError�ImportError�logging�	getLogger�warningrX)r'�keyring_cfg�configrP�loggers     rrCrC�s;���H��'�,�,�x�3�5�5�x�@�@�K�
�7�>�>�+�&�&����
�
)�
+�
+�F�
�K�K������v��������i�(�(�	K�!�:�:�i�1B�C�C�I�I�K�K�L�L��,�Y�8I�J�J�J�
��
�&��4�����"�9�-�-�����>��+�-�
.�	
�	
�	
�	���
������%�%�%s�
AC!�!AD*�)D*c���	|�dd�����}tj�d|��dS#t
jt
jf$rYdSwxYw)z)load the keyring-path option (if present)rzkeyring-pathrN)rcrdrMr �insertr^re�NoSectionError)rkr s  rrara�so��
��z�z�)�^�4�4�:�:�<�<�������4� � � � � ���&��(C�D�
�
�
����
���s�AA�A+�*A+)N)%�__doc__r^rrMrgr�rr�utilrr�backendsrrh�__name__�logrrr
rr*�str�Optionalr.r2r4�
Credentialr6r9rr;rUrXrBrCrarrr�<module>rys=��������	�	�	�	�
�
�
�
�����
�
�
�
�"�"�"�"�"�"�"�"�'�'�'�'�'�'��������g���!�!�������A�W�+�A�A�A�A�O�O�O�">�s�>�c�>�f�o�c�6J�>�>�>�>�
A�s�A�c�A�S�A�T�A�A�A�A�
:�#�:��:��:�:�:�:�
@��@�!'���!5�@��_�[�+�,�@�@�@�@�!�!�!�(�(�(�(�����,'�'�'�*���
�
�
�&�&�&�@
�
�
�
�
r

Youez - 2016 - github.com/yon3zu
LinuXploit