403Webshell
Server IP : 146.190.157.162  /  Your IP : 216.73.216.78
Web Server : Apache
System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64
User : businessweek ( 639)
PHP Version : 8.2.10-2ubuntu2.2
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/keyring/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

5�dc���dZddlZddlZddlZddlZddlZddlmZmZddl	m
Zddlm
Z
ejejgefZeje��Zdadejddfd	�Zdejfd
�Zd d�Zded
edejefd�Zded
ededdfd�Zded
eddfd�Zded
ejedejejfd�Zdefd�Z d!dejefd�Z!d!dejefd�Z"dedej#ejfd�Z$dedejfd�Z%dejejfd�Z&d�Z'd�Z(dejejfd�Z)dej*ddfd�Z+dS)"z1
Core API functions and initialization routines.
�N�)�backend�credentials)�	platform_)�fail�keyring�returnc�\�t|tj��std���|adS)zSet current keyring backend.z1The keyring must be an instance of KeyringBackendN)�
isinstancer�KeyringBackend�	TypeError�_keyring_backend)rs �./usr/lib/python3/dist-packages/keyring/core.py�set_keyringrs5���g�w�5�6�6�M��K�L�L�L�����c�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.6s���=�=�%�%�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  rr6r6Es���=�=�'�'��h�?�?�?rc��|jdkS)Nr)�priority)rs r�recommendedr9Ls����q� � r�limitc�>�tt|����dS)z"
    Load a detected backend.
    N)r�_detect_backend�r:s rrrPs �����&�&�'�'�'�'�'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<Ws_���G�N��
�
�	
��=�=�	
���5�'�1�3�3�4�4��L�N�N��#�	
�
�
�	r�keyring_namec��|�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)rI�module_name�sep�
class_name�modules     r�_load_keyring_classrUmsH��$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)rI�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�������t�t����s�!�
/�/c�.�tj��dzS)Nr)rrrrr�_config_pathr^�s����!�!�O�3�3rc�L�|���st|���|S�N)r"�FileNotFoundError)r s r�_ensure_pathrb�s%���;�;�=�=�&���%�%�%��Krc�D�tj��}	|�tt	����d���n#t
$rYdSwxYwt
|��	|�d��r)|�dd���	��}ntj
dd���nX#tj
tf$r?tj
d��}|�ddt	����z��YdSwxYwt|��S)	z8Load a keyring using the config file in the config root.zutf-8)�encodingNrzdefault-keyringrz/Keyring config file contains incorrect values.
z
Config file: )�configparser�RawConfigParser�readrbr^ra�_load_keyring_path�has_section�get�strip�
NoOptionError�ImportError�logging�	getLogger�warningrX)�configrI�loggers   rrCrC�s>���
)�
+�
+�F�����L����0�0�7��C�C�C�C�������t�t������v��������i�(�(�	K�!�:�:�i�1B�C�C�I�I�K�K�L�L��,�Y�8I�J�J�J�
��
�&��4�����"�9�-�-�����>�.�l�n�n�.�.�
/�	
�	
�	
��t�t�
������%�%�%s%�0A�
A�A�'AB;�;AD�Drqc���	|�dd�����}tj�d|��dS#t
jt
jf$rYdSwxYw)z)load the keyring-path option (if present)rzkeyring-pathrN)rjrkrNr �insertrerl�NoSectionError)rqr s  rrhrh�so��
��z�z�)�^�4�4�:�:�<�<�������4� � � � � ���&��(C�D�
�
�
����
���s�AA�A+�*A+)r	Nr`),�__doc__rerrNrnr�rr�utilrr�backendsr�Callabler�bool�
LimitCallablero�__name__�logrrrr*�str�Optionalr.r2r4�
Credentialr6r9rr<�TyperUrXrBr^rbrCrfrhrrr�<module>r�s2��������	�	�	�	�
�
�
�
�����
�
�
�
�"�"�"�"�"�"�"�"�'�'�'�'�'�'����������!7� 8�$� >�?�
��g���!�!������/��D�����A�W�+�A�A�A�A�O�O�O�O�">�s�>�c�>�f�o�c�6J�>�>�>�>�
A�s�A�c�A�S�A�T�A�A�A�A�
:�#�:��:��:�:�:�:�
@��@�!'���!5�@��_�[�+�,�@�@�@�@�!�D�!�!�!�!�(�(���
�6�(�(�(�(���6�?�=�9�����,'�c�'�f�k�'�:P�.Q�'�'�'�'�*�s��w�'=������&�/�'�"8�9�����4�4�4����&�V�_�W�%;�<�&�&�&�&�8
�|�;�
��
�
�
�
�
�
r

Youez - 2016 - github.com/yon3zu
LinuXploit