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


امتیاز موضوع:
  • 18 رای - 2.89 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: [C\C++] VMWare Detection
حالت موضوعی
#1
شناسایی ماشین مجازی یا همان vm در c++

کد:
#include <windows.h>
#include <iostream>

int main()
{

int flag = 0;
__try {
__asm {
push edx;
push ecx;
push ebx;
mov eax, 'VMXh';
mov ebx, 0; // This can be any value except
mov ecx, 10; // "CODE" to get the VMware Version
mov edx, 'VX'; // Port Number
in eax, dx; // Read port
//On return EAX returns the VERSION
cmp ebx, 'VMXh'; // is it VMware
setz [flag]; // set return value
pop ebx;
pop ecx;
pop edx;
}
}
__except(EXCEPTION_EXECUTE_HANDLER) {
flag = 0;
MessageBoxA(NULL, "No VMware Instance Detected", "No VMware", MB_OK);
}
if (flag != 0) { MessageBox(NULL, "VMware Detected", "VMware Detected", MB_OK); }

getchar();

}
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  Virtual Machine Detection Amin_Mansouri 3 6,906 06-20-2014، 08:54 AM
آخرین ارسال: Amin_Mansouri
  VM Detection UDF Amin_Mansouri 0 2,664 08-30-2011، 12:34 PM
آخرین ارسال: Amin_Mansouri

پرش به انجمن:


Browsing: 2 مهمان