403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/laragon/bin/python/python-3.10/Lib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/laragon/bin/python/python-3.10/Lib/__pycache__/getpass.cpython-310.pyc
o

�L�b�@s�dZddlZddlZddlZddlZddlZgd�ZGdd�de�Zddd�Z	dd	d
�Z
ddd�Zddd�Zdd�Z
zddlZejejfWn"eefyhzddlZWn
eybeZYYdSwe
ZYdSwe	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eZdZdS)rN)�__name__�
__module__�__qualname__�rr�C:\python3.10-64\lib\getpass.pyrsr�
Password: c

Cs�d}t����}z%t�dtjtjB�}t�|d�}|�|�t�	|�}|�|�|s+|}Wn/t
y[|��ztj
��}WnttfyPd}t||�}Ynwtj
}|sYtj}Ynw|dur�zLt�|�}|dd�}|dtjM<tj}	ttd�r�|	tjO}	zt�||	|�t|||d�}Wt�||	|�|��nt�||	|�|��wWntjy�|dur��||ur�|��t||�}Ynw|�d�|Wd�S1s�wYdS)aPrompt 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_RDWRZO_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_flagsrrr	�unix_getpasssb



����



��
$�r0cCs�tjtjurt||�S|D]}t�|�q
d}	t��}|dks$|dkr%n|dkr+t�|dkr6|dd�}n||}qt�d�t�d�|S)	z:Prompt for password with echo off, using Windows getwch().���
r��N���)rr�	__stdin__r�msvcrt�putwch�getwch�KeyboardInterrupt)r)r*�c�pwrrr	�win_getpassas$
�


r>cCs0tjdtdd�|s
tj}td|d�t||�S)Nz%Can not control echo on the terminal.�)�
stacklevelz&Warning: Password input may be echoed.)�file)�warnings�warnrrr �printr%)r)r*rrr	rxs�
rr1cCs�|stj}|s
tj}t|�}|r7z|�|�Wnty2|�|jd�}|�|j�}|�|�Ynw|�	�|�
�}|s?t�|ddkrK|dd�}|S)N�replacer6r)rr r�strr(�UnicodeEncodeError�encode�encoding�decoder&�readline�EOFError)r)r*r
�linerrr	r%�s(�r%cCs<dD]}tj�|�}|r|Sqddl}|�t���dS)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.

    )ZLOGNAME�USERZLNAME�USERNAMErN)r�environ�get�pwd�getpwuid�getuid)�name�userrRrrr	r�s�r)r
N)r1NN)�__doc__rrrrrB�__all__�UserWarningrr0r>rr%rr!r"r$�ImportErrorrr8rrrrr	�<module>s2

D

	�
�

Youez - 2016 - github.com/yon3zu
LinuXploit