KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21571/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/usr/lib64/python2.4/getpass.pyc
mò
‚=5Dc@sódZdkZddgZdd„Zdd„Zdd„Zdd	„Zd
„ZydkZei	ei
fWnueefj
ocy
dk
Z
WnFej
o:ydklZWnej
o
eZqäXeZqïXeZnXeZdS(s)Utilities to get a password and/or the current user name.

getpass(prompt) - prompt for a password, with echo turned off
getuser() - get the user name from the environment or password database

On Windows, the msvcrt module will be used.
On the Mac EasyDialogs.AskPassword is used, if available.

Ntgetpasstgetusers
Password: cCs§ytiiƒ}Wnt|ƒSnXti|ƒ}|}|dti
@|d<z&ti|ti|ƒt
|ƒ}Wdti|ti|ƒXtiidƒ|S(sXPrompt for a password, with echo turned off.

    Restore terminal settings at end.
    iNs
(tsyststdintfilenotfdtdefault_getpasstpromptttermiost	tcgetattrtoldtnewtECHOt	tcsetattrt	TCSADRAINt
_raw_inputtpasswdtstdouttwrite(RR
RRR((t/usr/lib64/python2.4/getpass.pytunix_getpassscCsÛtitij	ot|ƒSndk}x|D]}|i|ƒq1Wd}xl|i	ƒ}|djp
|djoPn|djo
t
‚n|djo|d }qQ||}qQW|idƒ|idƒ|S(	s9Prompt for password with echo off, using Windows getch().Ntis
s
ssiÿÿÿÿ(RRt	__stdin__RRtmsvcrttctputchtpwtgetchtKeyboardInterrupt(RRRR((Rtwin_getpass+s*	




cCsdGHt|ƒS(Ns7Warning: Problem with getpass. Passwords may be echoed.(RR(R((RRBsRcCsjt|ƒ}|otii|ƒntiiƒ}|p
t‚n|ddjo|d }n|S(Niÿÿÿÿs
(	tstrRRRRRtreadlinetlinetEOFError(RR ((RRGs
cCs[dk}x/dD]'}|ii|ƒ}|o|SqqWdk}|i|iƒƒdS(sÂ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.

    NtLOGNAMEtUSERtLNAMEtUSERNAMEi(R"R#R$R%(tostnametenvirontgettusertpwdtgetpwuidtgetuid(R+R&R'R*((RRUs		(sAskPassword(t__doc__Rt__all__RRRRRRR	R
tImportErrortAttributeErrorRtEasyDialogstAskPasswordR(RRR/RRRRRRRR3((Rt?	s*			


Anon7 - 2021