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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/sos/helpers.pyo
?Jc@sdZddkZddkZddkZddkZddkZddkZddklZlZddk	Z	ddk
lZdZdZ
dZdd	Zd
ZdZgdZeiieiid
ZdZdS(s0
helper functions used by sosreport and plugins
iN(ttimetsleep(tmkdtempcCsFy"t|tt|g}Wntj
odSXt||S(s9 Import a plugin to extend capabilities of sosreport
    N(t
__import__tglobalstlocalstImportErrortNonetgetattr(t
pluginnametnametplugin((s//usr/lib/python2.6/site-packages/sos/helpers.pytimportPlugin!s
"cCstdd}|S(sYFind a temp directory to form the root for our gathered information
    and reports.
    ttsos_(R(tworkingBase((s//usr/lib/python2.6/site-packages/sos/helpers.pyt
sosFindTmpDir+scCsmti|ti}y!ti|ti|tiBWn0tj
o$ti|ti|tiBnXdS(sE Make the file descriptor non-blocking. This prevents deadlocks.
    N(tfcntltF_GETFLtF_SETFLtostO_NDELAYtAttributeErrortFNDELAY(tafdtfl((s//usr/lib/python2.6/site-packages/sos/helpers.pytmakeNonBlocking3s
!i,cCsUtid}xtididD]}|idid}tii|o%titii	||ti
p)tii|oti|ti
oPq&q&W|itid|dSti
\}}ti}|otti|ti|}t}	d}
d	}|itid
|||fxtoti|gggd}||djo|
|i}
nyti|tiWn,yti|dd}WnnXPnXt|	|joF|itid|||fyti|tiWnnXPqDqDW|
d	d
jo|
d	 }
n||
t|	fSti|dti|dti|dd	dk}
|
i|
id}t|
dp
d|
_ n||
i jo
t!}nx>t"d|D]-}yti|Wqt#j
oqXqWti$ddd|ti%ddS(sD Execute a command and gather stdin, stdout, and return status.
    tsostPATHt:t(is-binary '%s' does not exist or is not runnableiR
is.forked command "%s" with pid %d, timeout is %disBkilling hung child with pid %s after %d seconds (command was "%s")s
iNt
RLIM_INFINITYlis/bin/shs-c(iR
i(&tloggingt	getLoggerRtenvirontsplittstriptpathtisabstaccesstjointX_OKtlogtVERBOSEtpipetforktclosetfdopenRtVERBOSE2tTruetselecttreadtwaitpidtWNOHANGtkilltsignaltSIGKILLtdup2tresourcet	getrlimitt
RLIMIT_NOFILEthasattrRtMAXFDtrangetOSErrortexeclt_exit(tcommandttimeouttsoslogR%tcmdfiletrtwtpidtr_fdtstimettxttststreadyR:tmaxfdtfd((s//usr/lib/python2.6/site-packages/sos/helpers.pytsosGetCommandOutput=st9)	
	  


	cCs&|p	dGHndGHtiidS(se Complete a status line that has been output to the console,
    providing pass/fail indication.
    s    [   OK   ]s    [ FAILED ]N(tsyststdouttflush(tstat((s//usr/lib/python2.6/site-packages/sos/helpers.pyt	sosStatuss
	
cCs5|d}x$|dD]}||jotSqWtS(s= return True if all the elements are equal, otherwise False. ii(tFalseR1(telementst
first_elementt
other_element((s//usr/lib/python2.6/site-packages/sos/helpers.pytallEquals

	cCsot|djp(t|djp|d|djo|||gfSt|d|d||dgS(s return a list of common elements at the start of all sequences,
        then a list of lists that are the unique tails of each sequence. ii(tlentcommonPrefix(tl1tl2tcommon((s//usr/lib/python2.6/site-packages/sos/helpers.pyR]s;cCsry1t|i||i|\}\}}Wntj
o|SX|p|S|i|gt||S(s return a relative path from path1 equivalent to path path2.
        In particular: the empty string, if path1 == path2;
                       path2, if path1 and path2 have no common prefix.
    (R]R#RR(R\(tpath1tpath2tseptpardirR`tu1tu2((s//usr/lib/python2.6/site-packages/sos/helpers.pyt
sosRelPaths1cCs)t|d}|i}|i|S(s& reads a file and returns its contentsRG(topenR3R.(tfnametfptcontent((s//usr/lib/python2.6/site-packages/sos/helpers.pytsosReadFiles
(t__doc__RRR2RRtcommandsR7RRR ttempfileRRRRRQRVR[R]R%RcRdRgRl(((s//usr/lib/python2.6/site-packages/sos/helpers.pyt<module>sH	
		
F		

Youez - 2016 - github.com/yon3zu
LinuXploit