MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/lib/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/getpass.pyo
mň
Ď=Ec@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/lib/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