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/smolt/client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/smolt/client/smolt.pyo
Jc@sddklZddkZddkZddkZddkZddkZddkl	Z	ddklZddk
lZddk
Z
ddkZddkl
Z
ddkZddkZddklZddklZdd	klZdd
klZddkZdZdZd
ZdZedddddgZeieddddddge Z!ede"Z#ede"Z$eddZ%edd
Z&eddZ'ed d!Z(d"Z)d#Z*d#gZ+d$e*Z,d%Z-e.Z/e"Z0dZ1d
Z2dZ3d&Z4d'Z5d(Z6d)Z7d&Z8d
Z9dZ:d&Z;d'Z<d)Z=d*Z>d'Z?d
Z@dZAd&ZBd)ZCd(ZDd
ZEdZFd&ZGd'ZHd)ZId+ZJd
ZKdZLd&ZMd'ZNd(ZOd,ZPd+ZQd-ZRd.ZSd)ZTd-ZUd
ZVdZWd&ZXd'ZYd)ZZd/Z[d
Z\dZ]d&Z^d'Z_d(Z`d)Zad0Zbd
ZcdZdd&Zed'Zfd(Zgd,Zhd1d2Zid3fd4YZjd5fd6YZkd7Zld8Zmd9enfd:YZod;Zpd<Zqd=Zrd>Zsd?enfd@YZtdAenfdBYZudCenfdDYZvdEfdFYZwe.axdGZydHZzdIZ{dJZ|dKZ}dLZ~dMZdNZe.adOZe,e%e-dPZdS(Qi(t_N(turljoin(turlparse(t	urlencode(tJSONEncoder(tget_config_attr(t
get_fslist(tGate(tUuidDbtWITHHELDiitFS_TYPEStext2text3txfstreiserfst	FS_MOUNTSt/s/homes/etcs/vars/boottFS_M_FILTERtFS_T_FILTERt	SMOON_URLshttp://smolts.org/tSECUREtHW_UUIDs/etc/smolt/hw-uuidtADMIN_TOKENts1.3.2s0.97ssmolt/%sgN@iiiiPiiiiii	isutf-8cCsQt|tp|St|to
|}nt||}ti|ddS(Ntasciitignore(t
isinstancet
basestringtunicodetcodecstencode(totcurrent_encodingts((s /usr/share/smolt/client/smolt.pytto_asciis
tDevicecBseZdZRS(cCsct|_t||_y|di|_Wntj
od|_nX|idjoyc|di}|di}|i|do|t|d}nd||f|_Wntj
onXy#|d	}|i	|}|}Wqtj
oqXny|d
i|_
Wntj
od|_
nXy|d|i
|_Wntj
od|_nXy|d
|i
|_
Wntj
od|_
nXy|d|i
|_Wntj
od|_nXy|d|i
|_Wntj
od|_nXy|di|_Wntj
od|_nXdS(Nsinfo.productsNo DescriptiontPRINTERsprinter.vendorsprinter.productt is%s %ssinfo.parentslinux.subsystemtUnknowns%s.vendor_ids
%s.product_ids%s.subsys_vendor_ids%s.subsys_product_idsinfo.linux.driver(tgetUUIDtUUIDtclassify_halttypetstriptdescriptiontKeyErrort
startswithtlentget_properties_for_uditbustvendoridtNonetdeviceidtsubsysvendoridtsubsysdeviceidtdriver(tselftpropsthardwaretvendortproductt
parent_uditparent_props((s /usr/share/smolt/client/smolt.pyt__init__sZ

	(t__name__t
__module__R?(((s /usr/share/smolt/client/smolt.pyR#stHostcBseZdZRS(c
Cst}t}t|_tidtit|_	tidti
d|_tid|iddd|_
tid|iddt|_tid|id	dt|_tid|id
dd|_tid|iddd|_tid|iddd|_tid|id
dd|_tid|iddd|_tid|dd|_tid|dd|_tidt	idt|_tido7yt	id|_WqNtj
od|_qNXn
t|_y|d}Wntj
o
d}nXtid|t|_tidoM|id|_|ip|id|_n|ip
d|_qn
t|_tid	o}|id|_|ipF|id|_|ido |id |id7_qqn|ip
d|_qn
t|_tid!o(y|d"|_ Wqd|_ qXn
t|_ |d#jo|id$o|d$d% d&jo
d&|_n|d$d'd(!}hd)d*6d+d,6d+d-6d+d.6d+d/6d0d16d2d36}y>||}tid	||_tid!d4|_ Wqtj
oqXqntid5o)yddk!}y-|i"d6jo
t#|_$n
t%|_$Wnt%|_$nXy|i&d6|_'Wnd|_'nXyg|i(}	|	djo
d7|_)n>|	d6jo
d8|_)n$|	djo
d9|_)n
d:|_)Wnd|_)nXWqt*j
o"t%|_$d;|_'d;|_)qXnt+|_$t|_'t|_)dS(<Ntdistrot	run_levelitcputbogomipsiR*Rtmodeltcpu_steppingt
cpu_familyt
cpu_model_numtcounttspeedtram_sizetramt	swap_sizetswaptkernelitlanguagetLANGR&ssystem.kernel.machinetarchR;s
system.vendorssystem.hardware.vendorssystem.productssystem.hardware.productssystem.hardware.versionR%tform_factorssystem.formfactortppc64sopenfirmware.modelitIBMiitJS20t8842tJS21t6779t6778t7988t8844tQS20t0200tQS21t0792tBladetselinuxit
Permissivet	EnforcingtDisabledtFUBARDs
Not Installed(,tread_cpuinfotread_memoryR'R(Rtprocesstsoftwaretread_ostWITHHELD_MAGIC_STRINGtost
read_runleveltdefaultRunleveltgetRFt	cpuVendortcpuModelRHRIRJtnumCpustcpuSpeedtsystemMemoryt
systemSwaptunamet
kernelVersiontgrantstenvironRRR-tplatformtsystemVendortsystemModelt
formfactorRdtis_selinux_enabledtSELINUX_ENABLEDtselinux_enabledtSELINUX_DISABLEDtselinux_getpolicytypetselinux_policytsecurity_getenforcetselinux_enforcetImportErrortSELINUX_WITHHELD(
R8thostInfotcpuInfotmemoryttempformRGt	model_mapt
model_nameRdtenforce((s /usr/share/smolt/client/smolt.pyR?s		!!''''''''%	

	
$
		















				(R@RAR?(((s /usr/share/smolt/client/smolt.pyRBscCstidpgSto<g}tD]!}|itjo||q-q-~}n
t}g}|D]$}|iido||qoqo~}to2xI|D]#}|i	t
jo
t|_	qqWnx|D]}t|_	qW|S(Ntfile_systemss/dev/(RR{tfs_t_filterRtfs_typetfs_typestmnt_devR.tfs_m_filtertmnt_pntt	fs_mountsRn(t_[1]tfsRt_[2]((s /usr/share/smolt/client/smolt.pytget_file_systemsGs<	8
cCsd}|idjodS|idjo|idjodS|idjo|idjodS|idjo|idjodS|idjo%|idjp|idjodSdS(	NiR&tusbthubtsoundtpnptsystemi(R1R*R3R7(tdeviceR((s /usr/share/smolt/client/smolt.pytignoreDevice\s   0tServerErrorcBseZdZdZRS(cCs
||_dS(N(tvalue(R8R((s /usr/share/smolt/client/smolt.pyR?kscCs
t|iS(N(treprR(R8((s /usr/share/smolt/client/smolt.pyt__str__ms(R@RAR?R(((s /usr/share/smolt/client/smolt.pyRjs	cCsx|idD]}d|jo|idSd|joQtd|iddGHd|jo$ttd	|iddqqqWdS(
Ns
sUUID:isServerMessage:sServer Message: "%s"sServerMessage: itCriticalsCould not contact server: %s(tsplitR+RR(tpagetline((s /usr/share/smolt/client/smolt.pyt
serverMessageps


cCsti|IJdS(N(tsyststderr(tmessage((s /usr/share/smolt/client/smolt.pyterrorzscCsto	|GHndS(N(tDEBUG(R((s /usr/share/smolt/client/smolt.pytdebug}scCsVddk}y|id}|i}Wn$ttfj
odGHd}nX|S(sbAttempt to reset the system hostname resolver.
    returns 0 on success, or -1 if an error occurs.iNslibresolv.so.2s4Warning: could not find __res_init in libresolv.so.2(tctypestCDLLt
__res_inittOSErrortAttributeError(Rtresolvtr((s /usr/share/smolt/client/smolt.pytreset_resolverstSystemBusErrorcBseZddZdZRS(cCs||_||_dS(N(tmsgthint(R8RR((s /usr/share/smolt/client/smolt.pyR?s	cCs
t|iS(N(tstrR(R8((s /usr/share/smolt/client/smolt.pyRsN(R@RAR3R?R(((s /usr/share/smolt/client/smolt.pyRst	UUIDErrorcBseZdZdZRS(cCs
||_dS(N(R(R8R((s /usr/share/smolt/client/smolt.pyR?scCs
t|iS(N(RR(R8((s /usr/share/smolt/client/smolt.pyRs(R@RAR?R(((s /usr/share/smolt/client/smolt.pyRs	tPubUUIDErrorcBseZdZdZRS(cCs
||_dS(N(R(R8R((s /usr/share/smolt/client/smolt.pyR?scCs
t|iS(N(RR(R8((s /usr/share/smolt/client/smolt.pyRs(R@RAR?R(((s /usr/share/smolt/client/smolt.pyRs	t	_HardwarecBseZhZdZdZdZedZedZedZ	dZ
dZee
eedZee
ed	Zd
ZdZdZd
ZdZdZdZRS(cCsyti}WnttdnXy(|i|ddd}|i}WnttdnX||_xj|D]b}|i|}ti	dot
|||i|<n|djot||_
qzqzWt|_dS(Ns)Could not bind to dbus.  Is dbus running?sorg.freedesktop.Hals/org/freedesktop/Hal/Managersorg.freedesktop.Hal.ManagersNCould not connect to hal, is it running?
Run "service haldaemon start" as roottdevicess%/org/freedesktop/Hal/devices/computer(tdbust	SystemBusRRtdbus_get_interfacet
GetAllDevicest	systemBusR0RR{R#RRBthostRtfss(R8Rtmgrtall_dev_lsttudiR9((s /usr/share/smolt/client/smolt.pyR?s$	
cCs%|i|id|d}|iS(Nsorg.freedesktop.Halsorg.freedesktop.Hal.Device(RRtGetAllProperties(R8Rtdev((s /usr/share/smolt/client/smolt.pyR0scCsld}ttdddjo(|i||}ti||}n"|i|}|i||}|S(Ntversionii((iii(ii(i(R3tgetattrRt
get_objectt	Interfacetget_service(R8R1tservicetobjectt	interfacetifacetproxytsvc((s /usr/share/smolt/client/smolt.pyRscCsg}x|iD]}y|i|i}|i|i}|i|i}|i|i}|i|i}|i|i}	|i|i}
|i|i}Wn
qqXt	|i|pI|i
h|d6|d6|d6|d6|d6|	d6|
d6|d6qqW|S(	Nt	vendor_idt	device_idtsubsys_vendor_idtsubsys_device_idR1R7R*R,(RR1R2R4R5R6R7R*R,Rtappend(R8tprotocol_versiont
my_devicesRtBustVendorIDtDeviceIDtSubsysVendorIDtSubsysDeviceIDtDrivertTypetDescription((s /usr/share/smolt/client/smolt.pytget_sendable_devicess0
cCs"h|iid6|iid6|iid6|iid6|iid6|iid6|iid6|iid6|ii	d	6|ii
d
6|iid6|iid6|ii
d
6|iid6|iid6|iid6|iid6|iid6|iid6|iid6|iid6|iid6S(NtuuidRotdefault_runlevelRRR}RFt
cpu_vendort	cpu_modelRHRIRJtnum_cpust	cpu_speedt
system_memorytsystem_swapR;Rtkernel_versionRRRR(RR(RoRqRRR}RFRsRtRHRIRJRuRvRwRxR~RRzRRRR(R8R((s /usr/share/smolt/client/smolt.pytget_sendable_hosts,



















cCs(g}|iD]}||iq~S(N(Rtto_dict(R8RRR((s /usr/share/smolt/client/smolt.pytget_sendable_fssscCs^t|}y tit|i|Wn+tj
o}tiit	dnXdS(Ns&	Your pub_uuid could not be written.

(
RRtset_pub_uuidR'thostnamet	ExceptionRRtwriteR(R8tsmoonURLtpub_uuidtsmoonURLparsedte((s /usr/share/smolt/client/smolt.pytwrite_pub_uuids cCsmt|}|d|i7}yt|di|Wn/tj
o#}tiitd|nXdS(Nt-tws+	Your admin token  could not be cached: %s
(RRtfileRRRRR(R8Rtadmintadmin_token_fileRR((s /usr/share/smolt/client/smolt.pytwrite_admin_tokenscCsgtd}ttiid|d|d|}y-|it|dd|iit}Wn0tii	j
o}t
td|d!SX|i
}	z|yPti|	}
|
d	tjo|
d	}nt
td
d"S|
d}Wn%tj
o}t
tdnXWd|iX|i|}
|i|}|i|}||
d
<||
d<||
d<td|||
dt}d|d|ii|tf}td|tdyE|it|ddtd|dddt|fd#f}Wn0tii	j
o}t
td|d$SXt|i
}|i|i||y-|it|dd|iit}Wn<tii	j
o*}t
td|tidnX|i
}ti|}|d	tjo|d	}nt
td
d%S|d}tdjp|i||tnd ||fS(&NcSs?|od}t}n
d}t}td|d|i|S(Nitindentt	sort_keys(tTrueR3tFalseRR(RthumanRR((s /usr/share/smolt/client/smolt.pyt	serializes
t
user_agentttimeouttproxiesRs/tokens/token_json?uuid=%ssError contacting Server: %sitprefered_protocols7Wrong version, server incapable of handling your clientttokens%Something went wrong fetching a tokenRRtsmolt_protocolssmoon server URL: %sR
s
uuid=%s&host=s&token=%s&smolt_protocol=%sssendHostStr: %ssSending Hosts/client/add_jsontdatathttp_headerssContent-lengths%isContent-types!application/x-www-form-urlencodeds /tokens/admin_token_json?uuid=%ss4An error has occured while contacting the server: %sRi(iNN(iNN(sContent-types!application/x-www-form-urlencoded(iNN(iNN(R	Rt
urlgrabbertgrabbert
URLGrabberturlopenRRR(tURLGrabErrorRRR3treadt
simplejsontloadstsupported_protocolst
ValueErrortcloseRRRRt
smoltProtocolR/RRRtexitRR(R8RRR
RRRRRttok_strttok_objRttokt
send_host_objRtmy_fsstserialized_host_obj_machinet
send_host_strRRtadmin_tokent	admin_strt	admin_objR((s /usr/share/smolt/client/smolt.pytsendst	!-



"
-

cCstiid|d|}y*|it|dd|ii}Wn<tiij
o*}tt	d|t
idnXti
|id}|i|||S(NRR
Rs#/client/regenerate_pub_uuid?uuid=%ssError contacting Server: %siR(RRRRRRR(RRRRR RRRR(R8RRR
Rtnew_uuidRR((s /usr/share/smolt/client/smolt.pytregenerate_pub_uuidis*cCsh|iitd6|iitd6|iitd6}g}x7t|iD]#\}}|id||fqXW|iddi|S(NtOSsDefault run leveltLanguages%s: %ss...s
(	RRoRRqRRtsortedtitemsRtjoin(R8tdtlinestktv((s /usr/share/smolt/client/smolt.pytget_general_info_excerptus
cCsg}xst|iD]_\}\}}}}}}}	}
|djoPn|id|||||||	|
fqW|iddi|S(Nis(%s:%s:%s:%s) %s, %s, %s, %ss...s
(t	enumeratet
deviceIterRR2(R8R4tiRRRRRRRR((s /usr/share/smolt/client/smolt.pytget_devices_info_excerpts$

cCsrg}|idxBt|iD]1\}}|djoPn|it|q#W|iddi|S(NsCdevice mtpt type bsize frsize blocks bfree bavail file ffree favailis...s
(RR8RRR2(R8R4R:R6((s /usr/share/smolt/client/smolt.pytget_file_system_info_excerpts


cCsdS(NsNo data, yet((R8((s /usr/share/smolt/client/smolt.pytget_distro_info_excerptsc

Cstg}|idtd|idtd|idtd|id|idtd|id|id|itd|id	x|iD]\}}y|id
||fWqtj
oXy$|id
t|d|fWqDtj
o|id||fqDXqXqW|io|id|id|itd
|id	xU|iD]G\}}}}}}	}
}|id||||||	|
|fqW|id|id|itd|id	|id|idx$|iD]}|it|qBW|idn|S(Ns# s7This is a Smolt report shown within your default pager.s:Below you can see what data you will submit to the server.s6To get back to Smolt exit the pager (try hitting "q").t#s<NOTE:  Editing this file does not change the data submitted.RtGenerals!=================================s%s: %ssutf-8s%r: %rtDevicess(%s:%s:%s:%s) %s, %s, %s, %ssFilesystem InformationsCdevice mtpt type bsize frsize blocks bfree bavail file ffree favailsC-------------------------------------------------------------------(	RRthostItertUnicodeDecodeErrorRRR9RR(
R8tprintBuffertlabelRRRRRRRRRR((s /usr/share/smolt/client/smolt.pyt
getProfilesL




$%




-





ccstd|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|ii	fVtd	|ii
fVtd
|iifVtd|iifVtd|ii
fVtd
|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|iifVtd|iifVdS(sIterate over host information.R(R.sDefault run levelR/tPlatformtBogoMIPSs
CPU Vendors	CPU ModelsCPU Steppings
CPU Familys
CPU Model NumsNumber of CPUss	CPU Speeds
System MemorysSystem SwaptVendortSystemsForm factortKernelsSELinux EnabledsSELinux PolicysSELinux EnforceN(RRR(RoRqRRR}RFRsRtRHRIRJRuRvRwRxR~RRRzRRR(R8((s /usr/share/smolt/client/smolt.pyRAs,c
csx|iD]}y|i|i}|i|i}|i|i}|i|i}|i|i}|i|i}|i|i}|i|i}	|	i	d}	Wn
q
q
Xt
|i|p!||||||||	fVq
q
WdS(sIterate over our devices.tlatin1N(RR1R2R4R5R6R7R*R,tdecodeR(
R8RRRRRRRRR((s /usr/share/smolt/client/smolt.pyR9s 
(R@RARR?R0RRRRRRRRRR
RR+R-R7R;R<R=RERAR9(((s /usr/share/smolt/client/smolt.pyRs$			
		
T			
		,	cCstdjo
tantS(s1Simple singleton wrapper with lazy initializationN(t_hardware_instanceR3R(((s /usr/share/smolt/client/smolt.pytHardwares

cCs|idodS|ido|dtjodSn|idoa|idoQ|ddjo<d|dijodSd	|dijod
Sqn|ido|dtjodS|dtjo|dtjod
S|dtjoF|dtjodS|dtjodS|dt	jodSn|dt
jo|dtjodS|dtjo|dt
jodS|dtjoA|dtjodS|dtjp|dtjodSn|dtjo|dtjodS|dtjo'|dtjp|dtjodSn|ido\|ddjodS|ddjodS|ddjodS|ddjodSn|id od!S|id"p|id#od$SdS(%Ns
net.interfacetNETWORKspci.device_classsinfo.products
info.categorytinputtkeyboardtKEYBOARDtmousetMOUSEtVIDEOspci.device_subclasstUSBtIDEtSCSItRAIDtMODEMtSCANNERtCAPTUREtAUDIOtFIREWIREtSOCKETsstorage.drive_typetcdromtCDROMtdisktHDtfloppytFLOPPYttapetTAPEsprinter.productR$spci.product_idsusb.product_idtOTHER(thas_keytPCI_BASE_CLASS_NETWORKtlowertPCI_BASE_CLASS_DISPLAYtPCI_BASE_CLASS_SERIALtPCI_CLASS_SERIAL_USBtPCI_BASE_CLASS_STORAGEtPCI_CLASS_STORAGE_IDEtPCI_CLASS_STORAGE_SCSItPCI_CLASS_STORAGE_RAIDtPCI_BASE_CLASS_COMMUNICATIONtPCI_CLASS_COMMUNICATION_MODEMtPCI_BASE_CLASS_INPUTtPCI_CLASS_INPUT_SCANNERtPCI_BASE_CLASS_MULTIMEDIAtPCI_CLASS_MULTIMEDIA_VIDEOtPCI_CLASS_MULTIMEDIA_AUDIOtPCI_CLASS_MULTIMEDIA_HD_AUDIOtPCI_CLASS_SERIAL_FIREWIREtPCI_BASE_CLASS_BRIDGEtPCI_CLASS_BRIDGE_PCMCIAtPCI_CLASS_BRIDGE_CARDBUSR3(tnode((s /usr/share/smolt/client/smolt.pyR)st	 
				c
Csd}tidtiphStddi}tidi}hdd6dd6}|d	d
jo|ddjp
|d
jo;d	}h}x|idD]}t|pqn|d}|djoqnx|idD]t}t|pqn|id}t|djoqn|d	i	|di	}	}
|
||	i<qWqW|d
jod
|d<nd|d<||d<||d|d<||d|d<||d|d<||d|d<||d|d<||d|d<||d|d <||d!|d"<||d#|d#<||d$|d%<||d&}|d'jo
d(}ny$t
tt|d|d)<Wq
t
j
od*|d)<q
Xn|dSjoh}x|idD]z}t|pqn|id}t|djoqn|d	i	|di	}	}
|
i||	i<qWd+|d<||d-|d<||d.|d<||d/|d<||d0|d<d1||d2||d3f|d4<||d5|d6<d'|d"<||d#|d#<||d7|d%<||d8}|i}y(t
tt|d	d9|d)<Wq
t
j
od*|d)<q
XnJ|dTjoh}d	}x|idD]}t|pqn|d}|djoqnx|idD]z}t|pqn|id}t|djoqn|d	i	|di	}	}
|
i||	i<qWqW||d<||d<||d;|d<||d<|d<||d=|d<||d>|d6<||d#|d#<|d&}y$t
tt|d|d)<Wnt
j
od*|d)<nX||d?|d%<n|dUjoh}d	}x|idBD]}t|pqn|d}|djoqnx|idD]z}t|pqn|id}t|djoqn|d	i	|di	}	}
|
i||	i<qWqW||d<||d<||d.|d<||d>|d<||d#|d#<||dC|d;<||d.idDodE|d<n||d|d<||dF|dG<||dHdI }y$t
tt|d|d)<Wq
t
j
od*|d)<q
Xn|dVjoh}d	}
x|idD]}t|pqnx|idD]}t|pqn|id}t|djoqn|d	i	|di	}	}
|	idLo3|
d	jot
tt|
}
qqqn|
i||	i<qWqWd'}tidMtip
dN}ntidMtiotdMdi}n||d<||dO|d<||d.|d<||d|d<||d|d<|
|d#<dP|d;<d'|d"<t
tt|
d}||d)<||dG<no||d<d|d<||d<||d<d'|d<d'|d<d'|d6<d'|d"<d'|d#<d'|d%<d	|d)<|dpd|d<nLyt
|d|d<Wnd|d<n X|dd	jod|d<ntiidQo*t
tdQii	dR|d)<n|S(WNcSs)|i}|i|pdS||S(NR(RkRi(tatentryR((s /usr/share/smolt/client/smolt.pyt	get_entry[ss
/proc/cpuinfoRitCPUtclasst	ProcessortdesciR:it86tx86_64s

is
t:iR}ti386RKRR*s
model nameRGs
cpu familytmodel_numbert	model_vertsteppingRHRIRJs
cache sizetcacheRFtflagstotherscpu mhzRs-1RLitalphatalphaev6s
cpus detectedREs	cpu models
cpu variations%s/%sssystem typessystem variationt
model_versionscpu revisiont	model_revsplatform stringscycle frequency [Hz]i@Btia64R;tfamilytarchrevtrevisiontfeaturesRVtppct	processortmachinetppc970RWsdetected asRtclockitsparc64tsparctBogos/proc/openprom/banner-nameR&sncpus probedtsuns5/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freqi(RR(R(sppc64R(RR(RotaccesstR_OKtopenRRyRkRR/R+tinttroundtfloatRR.tendswithtpathtexistsR(RtcpulistRythwdictRKttmpdictREtcpu_attrtvalstnameRt	mhz_speedthz_speedRFRRL((s /usr/share/smolt/client/smolt.pyRiZs	

/



!




$

!

(




!


$




!

$


!

















*cCsLti}|d}|d djotS|d djotSdS(Niis2.6s2.4(RoRytread_memory_2_6tread_memory_2_4(tunRQ((s /usr/share/smolt/client/smolt.pyRjTs
cCstidtiphStddi}|id}|d}|i}h}d|d<tt|dd}|djo|d	|d	}n|d
|d
}t||d<|d}|i}tt|dd}t||d
<|S(Ns
/proc/meminfoRs
itMEMORYRii iiRNiRPii(	RoRRRRRRtlongR(tmeminfoR4tcurlinetmemlisttmemdicttmegs((s /usr/share/smolt/client/smolt.pyR\s$



cCsLtidtiphStddi}|id}h}x^|D]V}|idd}|d}t|djoqLn|di}|||<qLWh}d|d<|d	}|id
}	t|	d}
t|
d}|d}|id
}	t|	d}
t|
d}t	||d
<t	||d<|S(Ns
/proc/meminfoRs
RiiRRtMemTotalR%it	SwapTotalRNRP(
RoRRRRRR/R+RR(RR4tdictRtblobstkeyRRt	total_strtblipsttotal_kRtswap_strtswap_kt	swap_megs((s /usr/share/smolt/client/smolt.pyRss4



cCsytSWnptj
od}ttdd|i|idj	o#tdtdd|intidnXdS(NsError:R%s	sHint:i(	RNRRRRRR3RR (R((s /usr/share/smolt/client/smolt.pytget_profiles#cCst|d|S(Ns/client/show/%s(R(RR((s /usr/share/smolt/client/smolt.pytget_profile_linksc	CstdjotSyttii}Wntj
oytdii}yttdi|WnRtj
oF}t	i
itdt	i
itd|t	idnXWqtj
o&t	i
itdt
dqXnX|a|S(Ns/proc/sys/kernel/random/uuidRs#Unable to save UUID, continuing...
s(Your UUID file could not be created: %s
i	s$Unable to determine UUID of system!
s$Could not determine UUID of system!
(thw_uuidR3Rthw_uuid_fileRR+tIOErrorRRRRRR R(R(R((s /usr/share/smolt/client/smolt.pyR's$
c	Cst|}tit|i}|o|Stiid|d|dt}yn|i	t
|ddt}ti|i
}|itit|i|d|dSWnHtj
o<}ttd|tiitdtd	nXdS(
NRR
RRs/client/pub_uuid/%sRs!Error determining public UUID: %ss!Unable to determine Public UUID!
s!Could not determine Public UUID!
(RRtget_pub_uuidR'RRRRRRRRRRRRRRRRRRR(	RRR
RtresRRtpudictR((s /usr/share/smolt/client/smolt.pyt
getPubUUIDs!#
 (ti18nRRRlRoturlgrabber.grabberRRRRturllibRRRtdatetimetconfigtsmolt_configRtfs_utilRtgateRtuuiddbRRRnRRRRRtfromkeysRRR	RRRtsecureRRt
clientVersionRRRR
R3RRRoRqRptPCI_CLASS_STORAGE_FLOPPYtPCI_CLASS_STORAGE_IPIRrtPCI_CLASS_STORAGE_OTHERRjtPCI_CLASS_NETWORK_ETHERNETtPCI_CLASS_NETWORK_TOKEN_RINGtPCI_CLASS_NETWORK_FDDItPCI_CLASS_NETWORK_ATMtPCI_CLASS_NETWORK_OTHERtPCI_CLASS_NETWORK_WIRELESSRltPCI_CLASS_DISPLAY_VGAtPCI_CLASS_DISPLAY_XGAtPCI_CLASS_DISPLAY_3DtPCI_CLASS_DISPLAY_OTHERRwRxRytPCI_CLASS_MULTIMEDIA_PHONERztPCI_CLASS_MULTIMEDIA_OTHERR|tPCI_CLASS_BRIDGE_HOSTtPCI_CLASS_BRIDGE_ISAtPCI_CLASS_BRIDGE_EISAtPCI_CLASS_BRIDGE_MCtPCI_CLASS_BRIDGE_PCIR}tPCI_CLASS_BRIDGE_NUBUSR~tPCI_CLASS_BRIDGE_RACEWAYtPCI_CLASS_BRIDGE_OTHERRstPCI_CLASS_COMMUNICATION_SERIALt PCI_CLASS_COMMUNICATION_PARALLELt#PCI_CLASS_COMMUNICATION_MULTISERIALRttPCI_CLASS_COMMUNICATION_OTHERRutPCI_CLASS_INPUT_KEYBOARDtPCI_CLASS_INPUT_PENtPCI_CLASS_INPUT_MOUSERvtPCI_CLASS_INPUT_GAMEPORTtPCI_CLASS_INPUT_OTHERRmR{tPCI_CLASS_SERIAL_ACCESStPCI_CLASS_SERIAL_SSARntPCI_CLASS_SERIAL_FIBERtPCI_CLASS_SERIAL_SMBUSR"R#RBRRRRRRRRRRRRRMRNR)RiRjRRRRRR'R(((s /usr/share/smolt/client/smolt.pyt<module>!s*	

5x			
			P	
	]				#	
		

Youez - 2016 - github.com/yon3zu
LinuXploit