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/papyon/msnp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/papyon/msnp/command.pyo
Ñò
œ  Jc@sedZddklZlZddklZdgZdefd„ƒYZdefd„ƒYZ	dS(	sMSN protocol commands.iÿÿÿÿ(tquotetunquote(tMessagetCommandtCommandPrintercBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCs
||_dS(N(tcommand(tselfR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt__init__scCs&t|d|ii|iƒ}|ƒS(Nt_print_(tgetattrRtnamet_print_default(Rtprinter((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt__unicode__!scCsµ|i}|i}|idj	o|dt|iƒ7}n|idj	odt|iƒdjoNg}|iD]}|t|ƒidƒqq~}|ddi|ƒ7}n|S(Nt isutf-8(	RR
ttransaction_idtNonetstrt	argumentstlentdecodetjoin(RRtresultt_[1]targumentR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt_print_default_header&s		&3cCsŠ|i}|iƒ}|idj	oattdt|iƒƒƒ}t|ƒ}|djo&|dt|ƒd7}||7}q†n|S(NiRs
(RRtpayloadRtreprRRR(RRRRtlength((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt
_print_MSG3s	
cCsD|i}|iƒ}|idj	o|dt|iƒ7}n|S(Ns
(RRRRR(RRR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt
_print_UUM?s
	cCsM|i}|iƒ}|idj	o$|dttd|iƒƒ7}n|S(Ns
(RRRRRR(RRR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt
_print_UBMGs
	$cCs~|i}|iƒ}|idj	oUt|iƒ}t|iƒ}|djo&|dt|ƒd7}||7}qzn|S(NiRs
(RRRRRRR(RRRRR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt
_print_QRYOs	
cCs™|i}|iƒ}|idj	opt|iƒ}t|iƒ}|djoA|dt|ƒd7}|iƒp|d7}q‘||7}q•n|S(NiRs
s
	[payload](RRRRRRRtis_error(RRRRR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyR[s	

(
t__name__t
__module__RR
RRRRR R(((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyRs			
				cBszeZdZd%Zd&Zd'Zd(Zd„Zd„Zd)d„Z
d„Zd „Zd!„Z
d"„Zd#„Zd$„ZRS(*sÕAbstraction of MSN commands, this class enables parsing and construction
    of commands.

        @ivar name: the 3 uppercase letters name of the command
        @type name: string

        @ivar transaction_id: the transaction id of the command or None
        @type transaction_id: integer

        @ivar arguments: the arguments of the command
        @type arguments: tuple()

        @ivar payload: the payload of the command
        @type payload: string or NonetOUTtPNGtQNGtIPGtNOTtNLNtFLNtGCFtQRYtSBStUBNtUBMtUBXtRNGtJOItBYEtMSGtSDCtPGDtADLtRMLtUUNtUUMtUUXtFQYt241t509cCs|iƒdS(N(t_reset(R((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyRscCs(d|_d|_d|_d|_dS(sResets the object valuestN(R
RRRR(R((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyR?s			cGs(||_||_||_||_dS(sÂUpdates the command with the given parameters

            @param name: the command name (3 letters) (e.g. MSG NLN ...)
            @type name: string

            @param transaction_id: the transaction ID
            @type transaction_id: integer

            @param arguments: the command arguments
            @type arguments: string, ...

            @param payload: is the data to send with the command
            @type payload: string
        N(R
RRR(RR
RRR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pytbuild˜s			cCse|iƒ|iddƒ}|i|dƒt|ƒdjo!|d|_|id |_ndS(s}Fills the Command object according parsing a string.

            @param buf: the data to parse
            @type buf: strings
iiiÿÿÿÿN(R?tsplitt_Command__parse_commandRRR(Rtbuftlines((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pytparse¬s

cCs0yt|iƒWntj
otSXtSdS(sGTells if the current command is an error code

            @rtype: boolN(tintR
t
ValueErrortFalsetTrue(R((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyR!¹s
cCs
|idj	S(sKTells if the current comment is a payload command

            @rtype: boolN(RR(R((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt
is_payloadÄscCs|i}|idj	o|dt|iƒ7}n|idj	o[t|iƒdjoEg}|iD]}|t|ƒqi~}|ddi|ƒ7}n|idj	oMt|iƒ}t|ƒ}|djo!|dt|ƒd|7}|Sn|dS(NRis
(R
RRRRRRR(RRRtargRRR((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt__str__Ës
&*
	cCstt|ƒƒS(N(tunicodeR(R((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyR
ÝscCs¤|iƒ}|dd|_}|d|ijoH|d|ijo4t|ƒ|jo!t||ƒ|_|d7}nt|ƒ|jo|||_ndS(Nii(RBR
tINCOMING_NO_TRIDtOUTGOING_NO_TRIDRRGRR(RRDtwordstpos((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt__parse_commandàs(R$R%(R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4(
R,R5R6R7R8R9R:R;R4R<(R+R4R.R/R0R'R(R7R8R<R=R>N(R"R#t__doc__RPROtOUTGOING_PAYLOADtINCOMING_PAYLOADRR?RRARFR!RKRMR
RC(((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyRks&			
				N(
RTturllibRRtpapyon.msnp.messageRt__all__tobjectRR(((s7/usr/lib/python2.6/site-packages/papyon/msnp/command.pyt<module>s
	N

Youez - 2016 - github.com/yon3zu
LinuXploit