AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/keyring/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/keyring/__pycache__/core.cpython-310.pyc
o

���a_�@s:dZddlZddlZddlZddlZddlZddlmZmZddl	m
Zddlm
Z
e�e�Zdadd�Zd	ejfd
d�Zdd
�Zdeded	ejefdd�Zdededed	dfdd�Zdeded	dfdd�Zdedejed	ejejfdd�Zdd�Zd)dd�Zd)dd�Zdd �Z d!d"�Z!d#d$�Z"d%d&�Z#d'd(�Z$dS)*z1
Core API functions and initialization routines.
�N�)�backend�credentials)�	platform_)�failcCst|tj�s
td��|adS)zSet current keyring backend.z1The keyring must be an instance of KeyringBackendN)�
isinstancer�KeyringBackend�	TypeError�_keyring_backend)�keyring�r�./usr/lib/python3/dist-packages/keyring/core.py�set_keyringsr�returncCstdurt�t�tjt�S)zGet current keyring backend.N)r
�init_backend�typing�castrrrrrr
�get_keyringsrcCs�t��}zt�|�Wn	tyYnwtj�|d�}tj�|�r+d|��}t|��t	|d��}|�
d�Wd�dS1sAwYdS)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�filerrr
�disable$s�
"�r%�service_name�usernamecC�t��||�S)z(Get password from the specified service.)r�get_password�r&r'rrr
r)5sr)�passwordcCst��|||�dS)z3Set password for the user in the specified service.N)r�set_password)r&r'r+rrr
r,:sr,cCst��||�dS)z:Delete the password for the user in the specified service.N)r�delete_passwordr*rrr
r-?sr-cCr()z+Get a Credential for the specified service.)r�get_credentialr*rrr
r.Dsr.cCs
|jdkS)Nr)�priority)rrrr
�recommendedKs
r0cCstt|��dS)z"
    Load a detected backend.
    N)r�_detect_backend��limitrrr
rOsrcCs0|t_t�pt�ptt|t���t��tj	d�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_priorityr2rrr
r1Vs	���r1cCs,|�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�modulerrr
�_load_keyring_classls

rIcCst|�}|j|�S)z�
    Load the specified keyring by name (a fully-qualified name to the
    keyring, such as 'keyring.backends.file.PlaintextKeyring')
    )rIr/)rD�class_rrr
�load_keyring�srKcCs&zttjd�WStyYdSw)z6Load a keyring configured in the environment variable.�PYTHON_KEYRING_BACKENDN)rKr�environ�KeyErrorrrrr
r7�s
�r7c	Cs�d}tj�t��|�}tj�|�sdSt��}|�|�t	|�z|�
d�r/|�dd���}nt�
dd��Wt|�Stj
tfyTt�d�}|�dd|�YdSw)z8Load a keyring using the config file in the config root.rNrzdefault-keyringrz/Keyring config file contains incorrect values.
zConfig file: %s)rrrrrr�configparser�RawConfigParser�read�_load_keyring_path�has_section�get�strip�
NoOptionError�ImportError�logging�	getLogger�warningrK)r"�keyring_cfg�configrD�loggerrrr
r8�s,

��
���r8c	CsBz|�dd���}tj�d|�WdStjtjfy YdSw)z)load the keyring-path option (if present)rzkeyring-pathrN)rTrUrAr�insertrOrV�NoSectionError)r\rrrr
rR�s�rR)N)%�__doc__rOrrArXr�rr�utilrr�backendsrrY�__name__�logr
rrrr%�str�Optionalr)r,r-�
Credentialr.r0rr1rIrKr7r8rRrrrr
�<module>s@
��

�

 

Anon7 - 2022
AnonSec Team