MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/lib64/python2.4/Demo/pysvr/pysvr.pyc
mò
‚=5Dc@sœdZdkZdkZdkZdkZdkZdkZdkZdZd„Z	dd„Zd„Zd„Z
d„Zd„Zd	klZe	ƒdS(
sIA multi-threaded telnet-like server that gives a Python prompt.

This is really a prototype for the same thing in C.

Usage: pysvr.py [port]

For security reasons, it only accepts requests from the current host.
This can still be insecure, but restricts violations from people who
can log in on your machine.  Use with caution!

Ni cCsÚyFtitiddƒ\}}t|ƒdjotid‚nWn"tij
o}t|ƒnXx|D]\}}qrW|o=yti|dƒ}WqÌtj
o}t|ƒqÌXnt}t|ƒdS(NitsToo many arguments.i(tgetopttsystargvtoptstargstlenterrortmsgtusagetotatstringtatoitportt
ValueErrortPORTtmain_thread(RRR
RRR((t(/usr/lib64/python2.4/Demo/pysvr/pysvr.pytmains cCs5tit_|o	|GHndGtGtidƒdS(Ns
i(RtstderrtstdoutRt__doc__texit(R((RR	%s
	cCs¼tititiƒ}|id|fƒ|idƒdG|GdGHxp|iƒ\}}|d|i
ƒdjo"|iƒdG|dGdGHqHnti
t||fƒ~~qHWdS(	NRisListening on ports...iis'Refusing connection from non-local hostt.(tsockettAF_INETtSOCK_STREAMtsocktbindRtlistentaccepttconntaddrtgetsocknametclosetthreadtstart_new_threadtservice_thread(RR!RR ((RR,s


cCsl|\}}dttiƒƒ|fG|idƒ}|iddƒ}t
||ƒdttiƒƒGdS(Ns"Thread %s has connection from %s.
trtwisThread %s is done.
(R!tcaddrtcporttstrR$t	get_identR tmakefiletstdinRtrun_interpreter(R R!R.RR)R*((RR&:s
cCsŒh}yttiƒWndt_nXd}xH|itiƒ|iƒ}|d djo
d}n|o
|oPn|ddjo|d d}n||}yt
|ƒ}Wn7tj
o+}d}tit|dd	|ƒq3nX|pq3nd}yt||||ƒWq3tj
oF}|o5yt|ƒ}Wn
d}nX|id
|ƒnPq3Xq3W|idƒdS(Ns>>> Riisÿìiþÿÿÿs
s
tfilesExit %s
s

Goodbye.
(tglobalsR+Rtps1tsourceRtwriteR.treadlinetlinetcompile_commandtcodetSyntaxErrorterrt	tracebacktprint_exceptiontNonetrun_commandt
SystemExitthow(R.RR8R:R@R3R1R6((RR/CsJ



c	BsÔeieieif}zœ|e_e_|e_y||UWnpej
o}e|ei	ƒd‚nGei	ƒ\}}}|o
|i
}nei|||ƒ~nXWd|\e_e_e_XdS(Ni(RR.RRtsaveR8R1R?R@texc_infottypetvaluettbttb_nextR;R<(	R8R.RR1RERDR@RARC((RR>is 	
(scompile_command(RRtosRRR$RR;RRR=R	RR&R/R>R8R7(RR$R/R7R;RRR	RR&RRGRR>R((Rt?
s?					&