ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python2.7/Demo/pdist/cmptree.pyc
ó
¿œ^c@s¨dZddlZddlmZddlZddlZddlZd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
edkr¤eƒndS(
sQCompare local and remote dictionaries and transfer differing files -- like rdist.iÿÿÿÿN(treprcCs-tjƒ}td|ƒ}|r>tj|ƒtjƒ}ntddƒ}d}d}d}dGHtd|ƒ}|rƒ|}n||f}tjƒ}tjƒ}tj||ƒ}	t	||	|ƒ|	j
ƒ|j
ƒtjƒ}
|
|}t|d	ƒ\}}
|Gd
Gt|
ƒGdGHtdƒdS(
Nschdir [%s] thostsvoorn.cwi.nliitsMode should be a string of characters, indicating what to do with differences.
r - read different files to local file system
w - write different files to remote file system
c - create new files, either remote or local
d - delete disappearing files, either remote or local
s
mode [%s] i<sminutes andtsecondss[Return to exit] (
tostgetcwdt	raw_inputtchdirtaskttimetFSProxytFSProxyLocalt
FSProxyClienttcomparet_closetdivmodtround(tpwdtsRtporttverbosetmodetaddresstt1tlocaltremotett2tdttminstsecs((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pytmain	s2
	


cCs td||fƒ}|p|S(Ns%s [%s] (R(tprompttdefaultR((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR)scCs3td|t|ƒfƒ}|r/tj|ƒS|S(Ns%s [%s] (Rtstrtstringtatoi(RR R((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pytaskint-s
cCsÜHdGttjƒƒGH|jdƒ}|jdƒ}|jƒdGHi}x$|jƒD]\}}|||<qVWdGH|j|ƒ}dGt|ƒGHi}	x|D]\}}
|
|	|<|j|ƒst|ƒGdGHd|kr¬d	|kr¬t	|||ƒq¬q ||}||
kr t|ƒG|j
|ƒ}|j
|ƒ}
||
krrd
Gd|kr¨t	|||ƒq¨n6|
|kr¤dGd|kr¨t|||ƒq¨nd
GHq q Wx‘|jƒD]ƒ}|	jƒs½t|ƒGdGt
ƒd|krd	|krt|||ƒn-d|kr<d|kr<tj|ƒdGHnHq½q½WdGH|j|ƒ}g}xÚ|D]Ò}|j|ƒr™dGt|ƒGH|j|ƒqedGt|ƒGdGHd|kred	|kredt|ƒ}d|kréd}nt|dƒ}|d dkr7|j|ƒdt|ƒGH|j|ƒq7qeqeW|jƒ}x0|D](}||krNdGt|ƒGdGHqNqNWx[|D]S}dGt|ƒGH|j|ƒ|j|ƒt|||ƒ|jƒ|jƒqWdS(NsPWD =tsumlisttlistsubdirsscalculating local sums ...sgetting remote sums ...tgotsonly remotetrtcsremote newerslocal newertws same mtime but different sum?!?!sonly locallytdsremoved.sgettin subdirs ...sCommon subdirectorysRemote subdirectorysnot found locallys"Create local subdirectory %s? [y] tyitYsSubdirectory %s madesLocal subdirectorysnot found remotelysEntering subdirectory(R,R-(RRRt_sendt_flushR%t_recvtlenthas_keytrecvfiletmtimetsendfiletkeystfltunlinktisdirtappendRtmkdirR&tcdR
tback(RRRtsums_idt
subdirs_idtlsumdicttnametinfotsumstrsumdicttrsumtlsumtrmtimetlmtimetsubdirstcommontprtoktlsubdirs((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR
2s”






	





cCsÜy|j|ƒWn&ttjfk
r9}dG|GHdSXdGtƒt|ƒjƒ}tjƒ}|jd||ƒ|j	ƒtjƒ}||}t
|ƒGdGt|ƒGdG|r×dGtt
|ƒ|ƒGdGnHdS(Nscannot create:ssending ...twritesbytes inRsi.e.s	bytes/sec(tcreatetIOErrorRterrorR7topentreadR	t
_send_noreplyR/R1R(RRRAtmsgtdataRRR((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR5‚s"	

cCsPd}z t|||ƒ}d}|SWd|sKd|fGH|j|ƒnXdS(Niis#*** recvfile of %r failed, deleting(t
recvfile_realtdelete(RRRARLtrv((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR3›scCscy|j|ƒWn&ttjfk
r9}dG|GHdSXdGtƒt|dƒ}tjƒ}d}d}|jd|||ƒ}|jƒxe||}	|jd||	|ƒ}
|j	|ƒ}|
}|sÒPn|j
|ƒ|j|ƒ|	}q‘W|jƒ}tjƒ}
|j
ƒ|
|}|GdGt|ƒGd	G|rQd
G||GdGnH|j	|ƒdS(
Nscannot create:s
receiving ...R*iiiRSsbytes inRsi.e.s	bytes/seci(RORPRRQR7RRR	R.R/R0tseekRNttelltcloseR(RRRARUtfRtlengthtoffsettidt	newoffsettnewidRVtsizeRR((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyRW¦s@	






cCstjjƒdS(N(tsyststdouttflush(((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR7Ìst__main__(t__doc__RdRR
R	RRRR$R
R5R3RWR7t__name__(((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyt<module>s	 			P			&