⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
97.74.87.16
Server:
Linux 16.87.74.97.host.secureserver.net 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
lib64
/
python3.9
/
__pycache__
/
View File Name :
getpass.cpython-39.opt-1.pyc
a �����DOgf����������������������@���s����d�Z�ddlZddlZddlZddlZddlZg�d�ZG�dd��de�Zddd�Z dd d �Z ddd�Zddd�Zdd��Z zddlZejejf�W�n>�eefy����zddlZW�n�ey����eZY�n0�e ZY�n0�e ZdS�)a���Utilities to get a password and/or the current user name. getpass(prompt[, stream]) - Prompt for a password, with echo turned off. getuser() - Get the user name from the environment or password database. GetPassWarning - This UserWarning is issued when getpass() cannot prevent echoing of the password contents while reading. On Windows, the msvcrt module will be used. �����N)�getpass�getuser�GetPassWarningc�������������������@���s���e�Zd�ZdS�)r���N)�__name__� __module__�__qualname__��r���r����/usr/lib64/python3.9/getpass.pyr�����������r���� Password: c����������� ��� ���C���s���d}t�������}zJt�dtjtjB��}t�|d�}|�|��t� |�}|�|��|sX|}W�n^�t y����|����ztj ���}W�n$�ttfy����d}t|�|�}Y�n0�tj }|s�tj}Y�n0�|du�r�z�t�|�}|dd��}|d��tj�M��<�tj} ttd��r| tjO�} z6t�|| |��t|�||d�}W�t�|| |��|����nt�|| |��|����0�W�n>�tj�y����|du�r|��||u�r�|����t|�|�}Y�n0�|�d��|W��d����S�1��s�0����Y��dS�)a��Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: 'Password: ' stream: A writable file object to display the prompt. Defaults to the tty. If no tty is available defaults to sys.stderr. Returns: The seKr3t input. Raises: EOFError: If our input tty or stdin was closed. GetPassWarning: When we were unable to turn echo off on the input. Always restores terminal settings before returning. Nz/dev/ttyzw+�����TCSASOFT)�input� )� contextlib� ExitStack�os�open�O_RDWR�O_NOCTTY�io�FileIO� enter_context� TextIOWrapper�OSError�close�sys�stdin�fileno�AttributeError� ValueError�fallback_getpass�stderr�termios� tcgetattrZECHOZ TCSAFLUSH�hasattrr ���� tcsetattr� _raw_input�flush�error�write) �prompt�stream�passwd�stack�fdZttyr����old�newZtcsetattr_flagsr���r���r ����unix_getpass���sV���� � r2���c�����������������C���s����t�jt�jurt|�|�S�|�D�]}t�|��qd}t���}|dkst|dkrHqt|dkrTt�|dkrj|dd��}q.||�}q.t�d��t�d��|S�)z:Prompt for password with echo off, using Windows getwch().��� r�����N���)r���r���� __stdin__r!����msvcrtZputwchZgetwch�KeyboardInterrupt)r+���r,����cZpwr���r���r ����win_getpassa���s ���� r<���c�����������������C���s0���t�jdtdd��|stj}td|d��t|�|�S�)Nz%Can not control echo on the terminal.����)� stacklevelz&Warning: Password input may be echoed.)�file)�warnings�warnr���r���r"����printr'���)r+���r,���r���r���r ���r!���x���s�����r!���r3���c�����������������C���s����|s t�j}|st�j}t|��}�|�rnz|�|���W�n6�tyd���|��|jd�}�|��|j�}�|�|���Y�n0�|� ���|� ��}|s~t�|d�dkr�|d�d��}|S�)N�replacer7���r���)r���r"���r����strr*����UnicodeEncodeError�encode�encoding�decoder(����readline�EOFError)r+���r,���r����liner���r���r ���r'�������s&����r'���c������������������C���s<���dD�]}�t�j�|��}|r|��S�qddl}|�t�����d�S�)z�Get the username from the environment or password database. First try various environment variables, then the password database. This works on Windows as long as USERNAME is set. )ZLOGNAMEZUSERZLNAME�USERNAMEr���N)r����environ�get�pwd�getpwuid�getuid)�name�userrO���r���r���r ���r�������s���� r���)r���N)r���N)r���N)r3���NN)�__doc__r���r���r���r���r@����__all__�UserWarningr���r2���r<���r!���r'���r���r#���r$���r&����ImportErrorr���r9���r���r���r���r���r ����<module>���s,��� D