Detect Virtual Machines 09-18-2012, 07:27 PM
#1
It's a long Way to detect if running on a Virtual Machine , not special , just for pass time
Hope enjoy
Hope enjoy
Code:
;=========================================
; Detect Virtual PC >> Vmware |VirtualBox
; Autor : M3
;=========================================
Func _DetectVirtualPC()
Local $sWMI, $sFind ,$sActive , $VM , $VBox
$VM = "VMwaretray.exe"
$VBox = "VboxSvc.exe"
$sWMI = ObjGet("winmgmts:")
$sFind = $sWMI.InstancesOf("win32_process")
For $sActive In $sFind
Select
Case $VM
If $sActive.Caption = $VM Then
Msgbox(0,"","Yeah I`m running on Vmware")
Exit
EndIf
Case $VBox
If $sActive.Caption = $VBox Then
Msgbox(0,"","Yeah I`m Running on VirtualBox")
Exit
EndIf
EndSelect
Next
Endfunc
![[Image: 337AU3.jpg]](http://dekoderspicture.com/images/337AU3.jpg)
![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: fow57.jpg]](http://i.imgur.com/fow57.jpg)


![[Image: AQiSh.jpg]](http://i.imgur.com/AQiSh.jpg)