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/idlelib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/idlelib//RemoteDebugger.pyo
Ñò
ÉÉŽJc@sdZddkZddkZddkZdZdadZhZhZhZ	hZ
d„Zd„Zddd	„ƒYZ
d
dd„ƒYZd„Zd
dd„ƒYZddd„ƒYZddd„ƒYZdd d„ƒYZdd!d„ƒYZd„Zd„Zd„Zd„ZdS("sÎSupport for remote Python debugging.

Some ASCII art to describe the structure:

       IN PYTHON SUBPROCESS          #             IN IDLE PROCESS
                                     #
                                     #        oid='gui_adapter'
                 +----------+        #       +------------+          +-----+
                 | GUIProxy |--remote#call-->| GUIAdapter |--calls-->| GUI |
+-----+--calls-->+----------+        #       +------------+          +-----+
| Idb |                               #                             /
+-----+<-calls--+------------+         #      +----------+<--calls-/
                | IdbAdapter |<--remote#call--| IdbProxy |
                +------------+         #      +----------+
                oid='idb_adapter'      #

The purpose of the Proxy and Adapter classes is to translate certain
arguments and return values that cannot be transported through the RPC
barrier, in particular frame and traceback objects.

iÿÿÿÿNitidb_adaptertgui_adaptercCst|ƒ}|t|<|S(N(tidt
frametable(tframetfid((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt
wrap_frame)s
cCsQ|djodS|d}t|ƒ}|t|<|d|d|f}|SdS(s0replace info[2], a traceback instance, by its IDiiiN(tNoneRttracebacktable(tinfot	tracebackttraceback_idt
modified_info((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt	wrap_info.s


tGUIProxycBseZd„Zdd„ZRS(cCs||_||_dS(N(tconntoid(tselfRtgui_adap_oid((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt__init__<s	cCs5|ii|id|t|ƒt|ƒfhƒdS(Ntinteraction(Rt
remotecallRRR
(RtmessageRR	((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR@sN(t__name__t
__module__RRR(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR:s	t
IdbAdaptercBs³eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„ZRS(cCs
||_dS(N(tidb(RR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRIscCs|iiƒdS(N(Rtset_step(R((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRNscCs|iiƒdS(N(Rtset_quit(R((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRQscCs|iiƒdS(N(Rtset_continue(R((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRTscCst|}|ii|ƒdS(N(RRtset_next(RRR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRWs
cCst|}|ii|ƒdS(N(RRt
set_return(RRR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR[s
c	Csƒt|}|djo
d}nt|}|ii||ƒ\}}g}|D]\}}|t|ƒ|fqQ~}||fS(N(RRRRt	get_stackR(	RRttbidRttbtstacktit_[1]tk((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR _s



3cCs&ddk}|ii||iƒdS(Niÿÿÿÿ(t__main__Rtrunt__dict__(RtcmdR'((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR(lscCs|ii||ƒ}|S(N(Rt	set_break(Rtfilenametlinenotmsg((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR+pscCs|ii||ƒ}|S(N(Rtclear_break(RR,R-R.((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR/tscCs|ii|ƒ}|S(N(Rtclear_all_file_breaks(RR,R.((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR0xscCst|}t||ƒS(N(Rtgetattr(RRtnameR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt
frame_attr~s
cCs-t|}|i}t|ƒ}|t|<|S(N(Rt	f_globalsRt	dicttable(RRRtdicttdid((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt
frame_globals‚s

	
cCs-t|}|i}t|ƒ}|t|<|S(N(Rtf_localsRR5(RRRR6R7((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pytframe_locals‰s

	
cCs-t|}|i}t|ƒ}|t|<|S(N(Rtf_codeRt	codetable(RRRtcodetcid((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt
frame_codes

	
cCst|}|iS(N(R<tco_name(RR>R=((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt	code_name™s
cCst|}|iS(N(R<tco_filename(RR>R=((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt
code_filenames
cCst|}|iƒS(N(R5tkeys(RR7R6((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt	dict_keys£s
cCs$t|}||}t|ƒ}|S(N(R5trepr(RR7tkeyR6tvalue((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt	dict_item§s

(RRRRRRRRR R(R+R/R0R3R8R:R?RARCRERI(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRGs&							
												cCs>t||ƒ}ti|ƒ}t|ƒ}|it|ƒtS(s|Start the debugger and its RPC link in the Python subprocess

    Start the subprocess side of the split debugger and set up that side of the
    RPC link by instantiating the GUIProxy, Idb debugger, and IdbAdapter
    objects and linking them together.  Register the IdbAdapter with the
    RPCServer to handle RPC requests from the split debugger GUI via the
    IdbProxy.

    (RtDebuggertIdbRtregistertidb_adap_oid(t
rpchandlerRt	gui_proxyRtidb_adap((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pytstart_debugger°s

t
FrameProxycBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs(||_||_d|_h|_dS(NR(t_connt_fidt_oidt
_dictcache(RRR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRÈs			cCs‹|d djo
t|‚n|djo|iƒS|djo|iƒS|djo|iƒS|ii|id|i|fhƒS(Nit_R;R4R9R3(tAttributeErrort_get_f_codet_get_f_globalst
_get_f_localsRSRRURT(RR2((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt__getattr__Îs



cCs:|ii|id|ifhƒ}t|i|i|ƒS(NR?(RSRRURTt	CodeProxy(RR>((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRYÚs$cCs1|ii|id|ifhƒ}|i|ƒS(NR8(RSRRURTt_get_dict_proxy(RR7((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRZÞscCs1|ii|id|ifhƒ}|i|ƒS(NR:(RSRRURTR^(RR7((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR[ãscCsH|ii|ƒo|i|St|i|i|ƒ}||i|<|S(N(RVthas_keyt	DictProxyRSRU(RR7tdp((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR^ès

(RRRR\RYRZR[R^(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRRÆs					R]cBseZd„Zd„ZRS(cCs||_||_||_dS(N(RSRUt_cid(RRRR>((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRòs		cCsd|djo#|ii|id|ifhƒS|djo#|ii|id|ifhƒSdS(NR@RARBRC(RSRRURb(RR2((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR\÷s

(RRRR\(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR]ðs	R`cBs,eZd„Zd„Zd„Zd„ZRS(cCs||_||_||_dS(N(RSRUt_did(RRRR7((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRs		cCs"|ii|id|ifhƒS(NRE(RSRRURc(R((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRDscCs%|ii|id|i|fhƒS(NRI(RSRRURc(RRG((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt__getitem__
scCs
t|‚dS(N(RX(RR2((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR\s(RRRRDRdR\(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR`s			t
GUIAdaptercBseZd„Zd„ZRS(cCs||_||_dS(N(Rtgui(RRRf((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRs	cCs,t|i|ƒ}|ii|||ƒdS(N(RRRRfR(RRRRR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRs(RRRR(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRes	tIdbProxycBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(cCs||_||_||_dS(N(RRtshell(RRRhR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR!s		cOs"|ii|i|||ƒ}|S(N(RRR(Rt
methodnametargstkwargsRH((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pytcall&scCs4|ii|id|fhƒ}||ii_dS(NR((Rt
asyncqueueRRhtinterpt
active_seq(RR*tlocalstseq((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR(,s!cCsa|id|i|ƒ\}}g}|D]%\}}|t|i|ƒ|fq)~}||fS(NR (RlRTRRR(RRR!R#R$R%RR&((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR 1s9cCs|idƒdS(NR(Rl(R((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR7scCs|idƒdS(NR(Rl(R((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR:scCs|id|iƒdS(NR(RlRT(RR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR=scCs|id|iƒdS(NR(RlRT(RR((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR@scCs|idƒdS(NR(Rl(R((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRCscCs|id||ƒ}|S(NR+(Rl(RR,R-R.((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR+FscCs|id||ƒ}|S(NR/(Rl(RR,R-R.((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR/JscCs|id|ƒ}|S(NR0(Rl(RR,R.((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyR0Ns(RRRRlR(R RRRRRR+R/R0(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRgs											cCsb|iddtfhƒat||tƒ}ti||ƒ}t||ƒ}|it|ƒ|S(s]Start the subprocess debugger, initialize the debugger GUI and RPC link

    Request the RPCServer start the Python subprocess debugger and link.  Set
    up the Idle side of the split debugger by instantiating the IdbProxy,
    debugger GUI, and debugger GUIAdapter objects and linking them together.

    Register the GUIAdapter with the RPCClient to handle debugger GUI
    interaction requests coming from the subprocess debugger via the GUIProxy.

    The IdbAdapter will pass execution and environment requests coming from the
    Idle debugger GUI to the subprocess debugger via the IdbProxy.

    texectstart_the_debugger(RRRMRgRJReRL(trpcclttpyshellt	idb_proxyRftgui_adap((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pytstart_remote_debuggerRscCst|ƒ|itƒdS(s]Shut down subprocess debugger and Idle side of debugger RPC link

    Request that the RPCServer shut down the subprocess debugger and link.
    Unregister the GUIAdapter, which will cause a GC on the Idle process
    debugger and RPC link objects.  (The second reference to the debugger GUI
    is deleted in PyShell.close_remote_debugger().)

    N(tclose_subprocess_debuggert
unregisterR(Rt((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pytclose_remote_debuggerjs	
cCs|iddtfhƒdS(NRrtstop_the_debugger(RRM(Rt((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyRyvscCs|iddtfhƒ}dS(NRrRs(RR(Rttidb_adap_oid_ret((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pytrestart_subprocess_debuggerys((((((((t__doc__ttypestrpcRJt	debuggingRMRRR5R<RRR
RRRQRRR]R`ReRgRxR{RyR~(((s,/usr/lib/python2.6/idlelib/RemoteDebugger.pyt<module>s0		
i	*3			

Youez - 2016 - github.com/yon3zu
LinuXploit