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/share/system-config-lvm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-lvm//fdisk_wrapper.pyo
Ñò
=®Jc@s‹ddkZddkZddkZddklZlZlZlZlZl	Z	ddk
TdZdZdZ
dZdd
d	„ƒYZdS(iÿÿÿÿN(texecWithCapturetexecWithCaptureErrorStatustexecWithCaptureStatustexecWithCaptureProgresst"execWithCaptureErrorStatusProgresstexecWithCaptureStatusProgress(t*s/sbin/sfdisks/sbin/fdisks	/bin/bashs9/tmp/one_extremely_long_name_hoping_nobody_is_gona_use_ittFDiskcBs5eZd„Zd„Zd„Zd„Zd„ZRS(c
	Cstttdgƒ}|iƒ}tƒ}xš|D]’}tid|ƒpq1n|idƒ}|diƒ}tid|ƒp@tttd|gƒ\}}|djon|i	|ƒq1q1WxK|D]B}	tttd|	gƒ}tid|ƒo|i
|	ƒqÏqÏW|S(Ns-ss^/dev/t:is.*[0-9]s-Vs.*cannot get geometry.*(RtSFDISKt
splitlinestlisttretmatchtsplittstripRtappendtremove(
tselftrestlinestdevicestlinetwordstdevnametouttrettdev((s-/usr/share/system-config-lvm/fdisk_wrapper.pytgetDeviceNamess(	
cCsd}d}d}d}d}tttdd|gƒ}|iƒ}xe|D]]}	tid|	ƒoS|	iƒ}
|
t|
ƒddjot|
t|
ƒdƒ}q©d|‚qLtid|	ƒoÞ|	iƒ}
|
t|
ƒdd	jo9|
t|
ƒd
djot|
t|
ƒdƒ}nd|‚|
d
i	dƒd
jot|
dƒ}nd|‚|
di	dƒdjot|
dƒ}q©d|‚qLqLW|djp'|djp|djp
|djod|‚n||||||gS(Ns-ls-us ^Units = sectors .* [0-9]* bytesitbytesisbad fdisk output for device s?.* [0-9]* sectors/track, [0-9]* cylinders, total [0-9]* sectorstsectorsittotalt,s
sectors/trackit	cylindersi(
tNoneRtFDISKR
RR
Rtlentinttrstrip(RRRt
sectorSizetspttspctcylsRRRR((s-/usr/share/system-config-lvm/fdisk_wrapper.pytgetDeviceGeometry2s86

4c
Cs`|i|ƒd}tƒ}tttdd|gƒ}|iƒ}x|D]}tid|ƒpqJn|iƒ}|diƒ}t	|t
|ƒƒ}	|d=|ddjot}
|d=nt}
|d \}}}
}|djoqJn
t	|ƒ}|djoqJn
t	|ƒ}t	|d	ƒ}t
||||	|
|ƒ}|i|ƒqJW|S(
Nis-ls-uSs^/dev/iRit-i(R+RRR	R
RR
RRR%R$tTruetFalset	PartitionR(RRR'tpartsRRRRttmptpart_numtbootabletbegtendtignoretidtpart((s-/usr/share/system-config-lvm/fdisk_wrapper.pyt
getPartitionsTs6	

cCs½g}xx|D]p}|itjoZ|i|ƒ|itjo9x6|iD]'}|itjo|i|ƒqJqJWq}q
q
W|}d}x+|D]#}|i|jo
|i}q”q”Wtƒ}x|D]}|i|iƒqËWx|td|dƒD]g}||joT|djo,tddt|t	dƒ}|i|ƒq`dG|dGHt
iƒqùqùWxˆtt|ƒdddƒD]j}xat|ƒD]S}	||	i||	dijo.||	d}
||	||	d<|
||	<q”q”WqWtƒ}x¡|D]™}|itjod}d}
n"t
|iƒ}t
|iƒƒ}
t|iƒd	}d
}|io
d}n|i|d|
d|d|ƒqÿWtd
}t|dƒ}x|D]}|i|dƒq¼W|iƒ|iƒtd}t|dƒ}|idtdƒ|itd|d|dƒ|iƒ|iƒti|dƒt|i|ƒƒdjo%t||gtdƒƒ\}}nti|ƒti|ƒdS(Niiis$A gap in extended partition nums fors!!!iÿÿÿÿtt0iR,RR t_inputtws
t_commands#!s -uS -L -f s < iÀs,Please wait while partition is being created(R7tID_EMPTYRt
ID_EXTENDStchildrentnumRtrangeR/R.tsystexitR$tstrR4tgetSizethexR3tTMP_FILEtopentwritetflushtclosetBASHR	tostchmodR9Rt_R(RRR0t	new_partsR8tptmaxt	part_numstitjR1tcommandsR4tsizeR7tboottTMP_FILE_INPUTtfiletcommandtTMP_FILE_COMMANDRR((s-/usr/share/system-config-lvm/fdisk_wrapper.pyt
savePartTableys†

!	



	


)



!

%
cCs¬tttdgƒ}|iƒ}x„|D]|}d|joq(n|iƒdjoq(nt|d iƒdƒ}|diƒ}t|ƒGdGd|ddGHq(WdS(	Ns-TtIdR:iiRs'R (RR	R
RR%RF(RtresultRRR7tname((s-/usr/share/system-config-lvm/fdisk_wrapper.pytprintSupportedPartitionsÌs
(t__name__t
__module__RR+R9R_Rc(((s-/usr/share/system-config-lvm/fdisk_wrapper.pyRs
		"	%	S((RORDRtexecuteRRRRRRR/R	R#RNRIR(((s-/usr/share/system-config-lvm/fdisk_wrapper.pyt<module>s.


Youez - 2016 - github.com/yon3zu
LinuXploit