Warning: chmod(): No such file or directory in /home/tuempresavirtual.cl/public_html/wp-content/plugins/appointment-hour-booking/app-booking-plugin.php on line 3
403WebShell
403Webshell
Server IP : 186.64.123.29  /  Your IP : 216.73.217.94
Web Server : LiteSpeed
System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : tuemp9827 ( 1016)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/secretstorage/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/secretstorage/__pycache__/util.cpython-310.pyc
o

��!`r�@sndZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
ddlmZddlmZmZmZmZmZmZmZmZmZmZddlmZmZddlmZm Z dd	l!m"Z"m#Z#m$Z$dd
l%m&Z&dZ'edZ(ed
Z)Gdd�de�Z*dedefdd�Z+dede,de-dee-e,e,e-ffdd�Z.dede-dee/ee-ffdd�Z0dedee-de/fdd�Z1deddfdd �Z2dS)!zkThis module provides some utility functions, but these shouldn't
normally be used by external applications.�N)�Any�List�Tuple)�DBusAddress�DBusErrorResponse�	MatchRule�Message�MessageType�new_method_call�
Properties)�DBusConnection)
�DBUS_UNKNOWN_METHOD�DBUS_NO_SUCH_OBJECT�DBUS_SERVICE_UNKNOWN�
DBUS_NO_REPLY�DBUS_NOT_SUPPORTED�DBUS_EXEC_FAILED�SS_PATH�	SS_PREFIX�ALGORITHM_DH�ALGORITHM_PLAIN)�Session�int_to_bytes)�ItemNotFoundException�"SecretServiceNotAvailableException)�Cipher�
algorithms�modes)�default_backendzorg.freedesktop.secretsZService�Promptc@s�eZdZdZdedededdfdd�Zd	edefd
d�Z	ded
ededefdd�Z
dedefdd�Zded
ededdfdd�ZdS)�DBusAddressWrapperz�A wrapper class around :class:`jeepney.wrappers.DBusAddress`
	that adds some additional methods for calling and working with
	properties, and converts error responses to SecretStorage
	exceptions.

	.. versionadded:: 3.0
	�path�	interface�
connection�returnNcCst�||t|�||_dS�N)r�__init__�BUS_NAME�_connection)�selfr!r"r#�r*�4/usr/lib/python3/dist-packages/secretstorage/util.pyr&'s
zDBusAddressWrapper.__init__�msgc
Csxz	|jj|dd�WSty;}z&|jttfvrtd�|�|jttt	fvr6|j
}t|t�r1|d}t
|�|��d}~ww)NT)ZunwrapzItem does not exist!r)r(�send_and_get_replyr�namer
rrrrr�data�
isinstance�tupler)r)r,�respr/r*r*r+r-,s
�

��z%DBusAddressWrapper.send_and_get_reply�method�	signature�bodycGst||||�}|�|�Sr%)r
r-)r)r3r4r5r,r*r*r+�call:s
zDBusAddressWrapper.callr.cCs"t|��|�}|�|�\\}}|Sr%)r�getr-)r)r.r,r4�valuer*r*r+�get_property>szDBusAddressWrapper.get_propertyr8cCs t|��|||�}|�|�dSr%)r�setr-)r)r.r4r8r,r*r*r+�set_propertyCszDBusAddressWrapper.set_property)
�__name__�
__module__�__qualname__�__doc__�strrr&rrr-r6r9r;r*r*r*r+r s
�
�r r#r$c	
Cs�ttt|�}t�}z|�ddtdt|j�f�\}}Wn%ty?}z|j	t
kr(�|�ddtd�\}}d|_WYd}~nd}~ww|\}}|dksJJ�t
�|d�}|�|�||_|S)z%Returns a new Secret Service session.ZOpenSession�svZay)�s�FNZbig)r r�
SERVICE_IFACErr6rrZ
my_public_keyrr.rr�	encrypted�int�
from_bytesZset_server_public_key�object_path)	r#�service�session�output�resultr2r4r8�keyr*r*r+�open_sessionHs.�
���
rNrJ�secret�content_typecCs�t|t�r|�d�}n	t|t�std��|jdusJ�|js%|jd||fS|jdus,J�dt|�d@}|t|f|�7}t	�
d�}t�|j�}t
|t�|�t����}|�|�|��}|j|||fS)zHFormats `secret` to make possible to pass it to the
	Secret Service API.zutf-8zsecret must be bytesN���)r0r@�encode�bytes�	TypeErrorrHrEZaes_key�len�os�urandomrZAESrrZCBCr�	encryptor�updateZfinalize)rJrOrPZpaddingZaes_ivZaesrZZencrypted_secretr*r*r+�
format_secret_s&


�r\�prompt_pathcCs�t|t|�}t|tdtjd�}|�|��}|�ddd�|�|�j\}}Wd�n1s.wY|dus9J�|dus?J�||fS)z�Executes the prompt in a blocking mode.

	:returns: a tuple; the first element is a boolean value showing
	          whether the operation was dismissed, the second element
	          is a list of unlocked object paths
	Z	Completed)r!r"�member�typerrBrCN)	r �PROMPT_IFACErr	�signal�filterr6Zrecv_until_filteredr5)r#r]�prompt�ruleZsignals�	dismissedrLr*r*r+�exec_promptzs��rf�pathscCsPttt|�}|�dd|�\}}t|�dkr&t||�\}\}}|dks$J�|SdS)z�Requests unlocking objects specified in `paths`.
	Returns a boolean representing whether the operation was dismissed.

	.. versionadded:: 2.1.2ZUnlockZao�F)r rrDr6rWrf)r#rgrIZunlocked_pathsrcrer4Zunlockedr*r*r+�unlock_objects�sricCs6tttd�}tdd|d�}d|_|�dd|���dS)z�Adds match rules for the given connection.

	Currently it matches all messages from the Prompt interface, as the
	mock service (unlike GNOME Keyring) does not specify the signal
	destination.

	.. versionadded:: 3.1
	)Zsenderr"z/org/freedesktop/DBuszorg.freedesktop.DBus)r!r"r#ZAddMatchrBN)rr'r`r Zbus_namer6Z	serialise)r#rdZdbusr*r*r+�add_match_rules�s	�rj)3r?rX�typingrrrZjeepneyrrrrr	r
rZjeepney.io.blockingrZsecretstorage.definesr
rrrrrrrrrZsecretstorage.dhcryptorrZsecretstorage.exceptionsrrZ&cryptography.hazmat.primitives.ciphersrrrZcryptography.hazmat.backendsrr'rDr`r rNrUr@r\�boolrfrirjr*r*r*r+�<module>s6$0)
�
��
�

Youez - 2016 - github.com/yon3zu
LinuXploit