check_vm.py
check_output invoked with shell=Truesubprocess.check_output call
SHA-256253beee4b9149c90e742aab3974748295af24588e18e49b78a5744309a7b3e43
MaleculeH₂(FPo₂)
Evidence
3:11… VM():
4 if os_type == "windows":
5 try:
6 import wmi
7 objWMI = wmi.WMI()
8 for objDiskDrive in objWMI.query("Select * from Win32_DiskDrive"):
9 if "vbox" in objDiskDrive.Caption.lower() or "virtual" in objDiskDrive.Caption.lower():
10 return "\n\033[1;32;31m[!]\x1b[0m Virtual Machine detected \033[1;32;31m[!]\n\x1b[0m"
11 retu …
13:99… 2;31m[-]\n\x1b[0m"
14 else:
15 try:
16 checkVM = subprocess.check_output(
17 'grep -q ^flags.*\ hypervisor /proc/cpuinfo && echo "This machine is a VM"', shell=True)
18 if checkVM == "This machine is a VM":
19 return "\n\033[1;32;31m[!]\x1b[0m Virtual Machine detected 0 …