403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/landscape/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pyc
ó
}9Rc@s2dZddlZddlmZdd„ZdS(sG
Network introspection utilities using ioctl and the /proc filesystem.
i˙˙˙˙N(t	read_filet/c
s€‡fd†}ddg}t||ƒ}|dƒ}tjj|ƒrLdSttjj|ƒredS|dƒ}tjj|ƒr–tj|ƒr–dSt}|dƒ}tjj|ƒrt|ƒ}x?|j	d	ƒD]+}|j
d
ƒrÖd|krÖt}PqÖqÖWn|sdS|d
ƒ}	tjj|	ƒs4dSt|	ƒ}d|krPdSd|kr`dSd|ksxd|kr|dSdS(sŇ
    This is a utility that returns the virtualization type

    It loops through some possible configurations and return a string with
    the name of the technology being used or None if there's no match
    cstjjˆ|ƒS(N(tostpathtjoin(R(t	root_path(s9/usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pytjoin_root_pathssproc/sys/xensproc/xensproc/vztopenvztxenssys/bus/xen/devicessproc/cpuinfos
tflagst
hypervisortssys/class/dmi/id/sys_vendorsVMware, Inc.tvmwaresMicrosoft CorporationthypervtBochst	OpenStacktkvm(tmapRRtexiststfiltertisdirtlistdirtFalseRtsplitt
startswithtTrue(
RRt	xen_pathstvz_pathtsys_xen_paththas_hypervisor_flagt
cpu_info_pathtcontenttlinetsys_vendor_path((Rs9/usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pytget_vm_info	s@!(t__doc__Rtlandscape.lib.fsRR"(((s9/usr/lib/python2.7/dist-packages/landscape/lib/vm_info.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit