• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 10 رای - 3.5 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: VM Detection UDF
حالت موضوعی
#1
small UDF with 3 functions.

These are:
_AntiVirtualPC ()
_AntiVirtualBox ()
_AntiVmWare ()



کد:
#include-once

;=================================================================================================
; AutoIt Version:    3.3.6.1
; Language:            English
; Platform:            All Windows
; Author:            killax2x
;=================================================================================================
;
; Functions:
;
;=================================================================================================
; Function:            _AntiVirtualPC()
; Description:
; Return Value(s):  Returns 1 when the Script is in a Virtual PC.
;                    Returns 0 when the Script is not in a Virtual PC.
; Author(s):        killax2x
;=================================================================================================
; Function:            _AntiVirtualBox()
; Description:
; Return Value(s):  Returns 1 when the Script is in a Virtual Box.
;                    Returns 0 when the Script is not in a Virtual Box.
; Author(s):        killax2x
;=================================================================================================
; Function:            _AntiVmWare()
; Description:
; Return Value(s):  Returns 1 when the Script is in a VmWare.
;                    Returns 0 when the Script is not in a VmWare.
; Author(s):        killax2x
;=================================================================================================


Global Const $crtset = RegEnumKey("HKEY_LOCAL_MACHINE\SYSTEM", 2)
Global Const $vide = "HKEY_LOCAL_MACHINE\SYSTEM\" & $crtset & "\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000"
Global Const $read = RegRead($vide, "driverdesc")

If _AntiVirtualPC() = 1 Then
    MsgBox(0,"","Detected!")
EndIf

Func _AntiVirtualBox()
    If $read = "VirtualBox Graphics Adapter" Then
        Return 1
    Else
        Return 0
    EndIf
EndFunc

Func _AntiVirtualPC()
        If $read = "VM Additions S3 Trio32/64" Then
        Return 1
    Else
        Return 0
    EndIf
EndFunc

Func _AntiVmWare()
        If $read = "VMware SVGA II" Then
        Return 1
    Else
        Return 0
    EndIf
EndFunc
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  Virtual Machine Detection Amin_Mansouri 3 4,825 06-20-2014، 08:54 AM
آخرین ارسال: Amin_Mansouri
  [C\C++] VMWare Detection Amin_Mansouri 0 2,124 08-30-2011، 12:04 PM
آخرین ارسال: Amin_Mansouri

پرش به انجمن:


Browsing: 1 مهمان