MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/task/3/cwd/usr/lib/python2.4/Demo/pdist/server.pyc
mò
‚=5Dc@s~dZdkZdkZdkZdklZdklZdZdfd„ƒYZdkl	Z	dee	fd	„ƒYZ
dS(
sRPC Server module.N(sfnmatch(srepritServercBs€tZdZed„Zd„Zd„Zd„Zd„Zd„Z	ddd	d
gZ
d„Zd„Zd
„Z
ed„ZRS(sDRPC Server class.  Derive a class to implement a particular service.cCsŒt|ƒtdƒjod|f}n||_||_d|_titi	ti
ƒ|_|ii|ƒ|iidƒd|_
dS(Niti(ttypetaddresstselft_addresstverboset_verbosetNonet_sockettsockettAF_INETtSOCK_STREAMtbindtlistent
_listening(RRR((t'/usr/lib/python2.4/Demo/pdist/server.pyt__init__s			cCs
||_dS(N(RRR(RR((Rt_setverbosescCs|iƒdS(N(Rt_close(R((Rt__del__ scCs1d|_|io|iiƒnd|_dS(Ni(RRR	tcloseR(R((RR#s	
cCs x|io|iƒqWdS(N(RRt_serve(R((Rt_serverloop)s
cCså|io	dGHn|iiƒ\}}|iodt|ƒGHn|i||ƒp!dt|ƒGH|iƒdSn|i	dƒ}|i	dƒ}d}xA|o9|i
ƒ|idjo	dGHn|i||ƒ}q WdS(NsWait for connection ...sAccepted connection from %ss*** Connection from %s refusedtrtwisWait for next request ...(RRR	taccepttconnRtreprt_verifyRtmakefiletrftwftoktflusht
_dorequest(RR R!RRR((RR-s$
	


	s192.16.201.*s192.16.197.*s132.151.1.*s
129.6.64.*cCs<|\}}x)|iD]}t||ƒodSqqWdS(Nii(RthosttportRt_validtpattfnmatch(RRRR'R$R%((RR?s
cCs‹ti|ƒ}y|iƒ}Wntj
odSnX|idjodt	|ƒGHnyŽ|\}}}
d|jod|i||ƒ|
f}	nP|ddjotdt	|ƒ‚n(t||ƒ}dt||ƒ|
f}	Wntiti|
f}	nX|
djo2|	d d
jo!|idjo	dGHndSn|idjod	t	|	ƒGHnti|ƒ}|i|	ƒdS(NiisGot request: %st.t_sillegal method name %sisSuppress replysSend reply: %s(NN(tpicklet	UnpicklerRtrptloadtrequesttEOFErrorRRRt
methodnametargstidRt_specialtreplyt	NameErrortgetattrtmethodtapplytsystexc_typet	exc_valuetPicklerR twptdump(RRR R>R-R2R/R8R1R5R3((RR#Es4	
	
cCsX|djo4t|dƒpt|iƒƒ|_n|iSntdt|ƒ‚dS(Ns.methodst_methodss#unrecognized special method name %s(R1thasattrRttuplet_listmethodsR@R6R(RR1R2((RR4_s

cCs‹|p
|i}n|iiƒ}td„|ƒ}|iƒxE|iD]:}|i
|ƒ}t|d„|ƒ}||t|ƒ)qIW|S(NcCs|ddjS(NiR*(tx(RD((Rt<lambda>iscCs
||jS(N(RDtnames(RDRF((RREms(
tclRt	__class__t__dict__tkeysRFtfiltertsortt	__bases__tbaseRCt	basenamestlen(RRGRNRFRO((RRCfs


(t__name__t
__module__t__doc__tVERBOSERRRRRRR&RR#R4RRC(((RRs								(sSecuritytSecureServercBstZd„Zd„ZRS(NcGs(tti|f|ƒti|ƒdS(N(R9RRRR2tSecurity(RR2((RRwscCs0dk}|iƒ}|id|ƒd}xJd|jo<t|ƒdjo)|idƒ}|pPn||}q/Wy|i
|i|ƒƒ}Wn=|ij
o.|i
djodGt|ƒGHndSnX|i||ƒp+|i
djodGt|ƒGHndSn|i
djo	d	GHndS(
Ns%d
Rs
idisInvalid response syntaxsInvalid response valueis&Response matches challenge.  Go ahead!(tstringRt_generate_challenget	challengeRtsendtresponseRPtrecvtdatatatoltstript
atol_errorRRt_compare_challenge_response(RRRRWRYR]R[((RR{s.	 		(RQRRRR(((RRUus	(RSR:R
R+R(RRTRtsecurityRVRU(	RTRURRR:R(RVR+R
((Rt?s			

d