本帖最后由 w12345yuang 于 2016-4-19 08:22 编辑
学术来之网上分享:
在当今信息安全领域,特别是恶意软件分析中,经常需要利用到虚拟机技术,以提高病毒分析过程的安全性以及硬件资源的节约性,因此它在恶意软件领域中是应用 越来越来广泛。这里我们所谓的虚拟机(Virtual Machine)是指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算 机系统。通过虚拟机软件(比如VMware,Virtual PC ,VirtualBox),你可以在一台物理计算机上模拟出一台或多台虚拟的计算机, 这些虚拟机完全就像真正的计算机那样进行工作,例如你可以安装操作系统、安装应用程序、访问网络资源等等。攻击者为了提高恶意程序的隐蔽性以及破坏真实主 机的成功率,他们都在恶意程序中加入检测虚拟机的代码,以判断程序所处的运行环境。当发现程序处于虚拟机(特别是mi-guan系统)中时,它就会改变操作行为或者 中断执行,以此提高反病毒人员分析恶意软件行为的难度。本文主要针对基于Intel CPU的虚拟环境VMware中的Windows XP SP3系统 进行检测分析,并列举出当前常见的几种虚拟机检测方法。
方法一:通过执行特权指令来检测虚拟机
Vmware为真主机与虚拟机之间提供了相互沟通的通讯机制,它使用“IN”指令来读取特定端口的数据以进行两机通讯,但由于IN指令属于特权指令,在 处于保护模式下的真机上执行此指令时,除非权限允许,否则将会触发类型为“EXCEPTION_PRIV_INSTRUCTION”的异常,而在虚拟机中 并不会发生异常,在指定功能号0A(获取VMware版本)的情况下,它会在EBX中返回其版本号“VMXH”;而当功能号为0x14时,可用于获取 VMware内存大小,当大于0时则说明处于虚拟机中。VMDetect正是利用前一种方法来检测VMware的存在,其检测代码分析如下:
代码:
bool IsInsideVMWare() { bool rc = true; __try { __asm { push edx push ecx push ebx mov eax, 'VMXh' mov ebx, 0 // 将 ebx设置为非幻数’VMXH’的其它值 mov ecx, 10 // 指定功能号,用于获取VMWare版本,当它为0x14时用于 获取VMware内存大小 mov edx, 'VX' // 端口号 in eax, dx // 从端口dx读取 VMware版本到eax//若上面指定功能号为0x14时,可通过判断eax中的值是否大于0,若是则说明处于虚拟机 中 cmp ebx, 'VMXh' // 判断ebx中是否包含VMware版本’VMXh’,若是则在虚拟机 中 setz [rc] // 设置返回 值 pop ebx pop ecx pop edx } } __except(EXCEPTION_EXECUTE_HANDLER) // 如果未处于VMware中,则触发此异常 { rc = false; } return rc;}
测试结果:
图1 如图1所示,VMDetect成功检测出VMWare的存在。
图1
如图1所示,VMDetect成功检测出VMWare的存在。
方法二:利用IDT基址检测虚拟机
利用IDT基址检测虚拟机的方法是一种通用方式,对VMware和Virtual PC均适用。中断描述符表 IDT(Interrupt Descriptor Table)用于查找处理中断时所用的软件函数,它是一个由256项组成的数据,其中每一中断对应一 项函数。为了读取IDT基址,我们需要通过SIDT指令来读取IDTR(中断描述符表寄存器,用于IDT在内存中的基址),SIDT指令是以如下格式来存 储IDTR的内容:
代码:
typedef struct{ WORD IDTLimit; // IDT的大小 WORD LowIDTbase; // IDT的低位地址 WORD HiIDTbase; // IDT的高位地址} IDTINFO;
由于只存在一个IDTR,但又存在两个操作系统,即虚拟机系统和真主机系统。为了防止发生冲突,VMM(虚拟机监控器)必须更改虚拟机中的IDT地址,利 用真主机与虚拟机环境中执行sidt指令的差异即可用于检测虚拟机是否存在。著名的“红丸”(redpill)正是利用此原理来检测VMware的。 Redpill作者在VMware上发现虚拟机系统上的IDT地址通常位于0xFFXXXXXX,而Virtual PC通常位于0xE8XXXXXX, 而在真实主机上正如图2所示都位于0x80xxxxxx。Redpill仅仅是通过判断执行SIDT指令后返回的第一字节是否大于0xD0,若是则说明它 处于虚拟机,否则处于真实主机中。Redpill的源码甚是精简,源码分析如下:
代码:
#include <stdio.h>int main () { unsigned char m[2+4], rpill[] = "\x0f \x01\x0d\x00\x00\x00\x00\xc3"; //相当于SIDT[adrr],其中addr用于保存IDT地址 * ((unsigned*)&rpill[3]) = (unsigned)m; //将sidt[addr]中的addr设为m的地 址 ((void(*)())&rpill)(); //执行SIDT指令,并将读取后IDT地址保存在数组m 中 printf ("idt base: %#x\n", *((unsigned*)&m[2])); //由于前2字节为IDT大 小,因此从m[2]开始即为IDT地 址 if (m[5]>0xd0) printf ("Inside Matrix!\n", m[5]); //当IDT基址大于 0xd0xxxxxx时则说明程序处于VMware中 else printf ("Not in Matrix.\n"); return 0;}
测试结果如图2所示:
2
图2
利用此IDT检测的方法存在一个缺陷,由于IDT的值只针对处于正在运行的处理器而言,在单CPU中它是个常量,但当它处于多CPU时就可能会受到影响 了,因为每个CPU都有其自己的IDT,这样问题就自然而然的产生了。针对此问题,Offensive Computing组织成员提出了两种应对方法, 其中一种方法就是利用Redpill反复地在系统上循环执行任务,以此构造出一张当前系统的IDT值变化统计图,但这会增加CPU负担;另一种方法就是 windows API函数SetThreadAffinityMask()将线程限制在单处理器上执行,当执行此测试时只能准确地将线程执行环境限制在 本地处理器,而对于将线程限制在VM处理器上就可能行不通了,因为VM是计划在各处理器上运行的,VM线程在不同的处理器上执行时,IDT值将会发生变 化,因此此方法也是很少被使用的。为此,有人提出了使用LDT的检测方法,它在具有多个CPU的环境下检测虚拟机明显优于IDT检测方法,该方法具体内容 参见下节内容。
方法三:利用LDT和GDT的检测方法
在 《Intel® 64 and IA- 32 Architecture Software Developer’s Manual Volume 3A: System Programming Guide》 第二章的Vol.3 2-5 一页(我的Intel开发手册是2008版的)中对于LDT和GDT的描述如下(以下内容为个人翻译):
在 保护模式下,所有的内存访问都要通过全局描述符表(GDT)或者本地描述符表(LDT)才能进行。这些表包含有段描述符的调用入口。各个段描述符都包含有 各段的基址,访问权限,类型和使用信息,而且每个段描述符都拥有一个与之相匹配的段选择子,各个段选择子都为软件程序提供一个GDT或LDT索引(与之相 关联的段描述符偏移量),一个全局/本地标志(决定段选择子是指向GDT还是LDT),以及访问权限信息。
若想访问段中的某一字节,必须同时提供一个段选择子和一个偏移量。段选择子为段提供可访问的段描述符地址(在GDT 或者LDT 中)。通过段描述符, 处理器从中获取段在线性地址空间里的基址,而偏移量用于确定字节地址相对基址的位置。假定处理器在当前权限级别(CPL)可访问这个段,那么通过这种机制 就可以访问在GDT 或LDT 中的各种有效代码、数据或者堆栈段,这里的CPL是指当前可执行代码段的保护级别。
……
GDT的线性基址被保存在GDT寄存器(GDTR)中,而LDT的线性基址被保存在LDT寄存器(LDTR)中。
由于虚拟机与真实主机中的GDT和LDT并不能相同,这与使用IDT的检测方法一样,因此虚拟机必须为它们提供一个“复制体”。关于GDT和LDT的基 址可通过SGDT和SLDT指令获取。虚拟机检测工具Scoopy suite的作者Tobias Klein经测试发现,当LDT基址位于 0x0000(只有两字节)时为真实主机,否则为虚拟机,而当GDT基址位于0xFFXXXXXX时说明处于虚拟机中,否则为真实主机。具体实现代码如 下:
代码:
#include <stdio.h>void LDTDetect(void){ unsigned short ldt_addr = 0; unsigned char ldtr[2]; _asm sldt ldtr ldt_addr = *((unsigned short *)&ldtr); printf("LDT BaseAddr: 0x%x\n", ldt_addr); if(ldt_addr == 0x0000) { printf("Native OS\n"); } else printf("Inside VMware\n");}void GDTDetect(void){ unsigned int gdt_addr = 0; unsigned char gdtr[4]; _asm sgdt gdtr gdt_addr = *((unsigned int *)&gdtr[2]); printf("GDT BaseAddr:0x%x\n", gdt_addr); if((gdt_addr >> 24) == 0xff) { printf("Inside VMware\n"); } else printf("Native OS\n");}int main(void){ LDTDetect(); GDTDetect(); return 0;}
测试结果如图3所示:
3
方法四:基于STR的检测方法
在保护模式下运行的所有程序在切换任务时,对于当前任务中指向TSS的段选择器将会被存储在任务寄存器中,TSS中包含有当前任务的可执行环境状态,包括 通用寄存器状态,段寄存器状态,标志寄存器状态,EIP寄存器状态等等,当此项任务再次被执行时,处理器就会其原先保存的任务状态。每项任务均有其自己的 TSS,而我们可以通过STR指令来获取指向当前任务中TSS的段选择器。这里STR(Store task register)指令是用于将任务寄存 器 (TR) 中的段选择器存储到目标操作数,目标操作数可以是通用寄存器或内存位置,使用此指令存储的段选择器指向当前正在运行的任务的任务状态 段 (TSS)。在虚拟机和真实主机之中,通过STR读取的地址是不同的,当地址等于0x0040xxxx时,说明处于虚拟机中,否则为真实主机。实现代 码如下:
代码:
#include <stdio.h>int main(void) { unsigned char mem[4] = {0}; int i; __asm str mem; printf (" STR base: 0x"); for (i=0; i& lt;4; i++) { printf("%02x",mem); } if ( (mem[0]==0x00) & amp;& (mem[1]==0x40)) printf("\n INSIDE MATRIX!! \n"); else printf("\n Native OS!!\n"); return 0;}测试结果如图4所示:
4
方法五:基于注册表检测虚拟机
在windows虚拟机中常常安装有VMware Tools以及其它的虚拟硬件(如网络适配器、虚拟打印机,USB集线器……),它们都会创建任何程序 都可以读取的windows注册表项,因此我们可以通过检测注册表中的一些关键字符来判断程序是否处于虚拟机之中。关于这些注册表的位置我们可以通过在注 册表中搜索关键词“vmware”来获取,下面是我在VMware下的WinXP中找到的一些注册表项:
项名:HKEY_CLASSES_ROOT\Applications\VMwareHostOpen.exe
项名:HKEY_CLASSES_ROOT\Installer\Products\C2A6F2EFE6910124C940B2B12CF170FE\ProductName
键值“VMware Tools”
项名:HKEY_CLASSES_ROOT\Installer\Products\C2A6F2EFE6910124C940B2B12CF170FE\SourceList\PackageName
键值:VMware Tools.msi
项名:HKEY_CURRENT_USER\Printers\DeviceOld
键值:_#VMwareVirtualPrinter,winspool,TPVM:
项名:HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 0\Scsi Bus 0\Target Id 0\Logical Unit Id 0\Identifier
键值:VMware Virtual IDE Hard Drive
项名:HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 1\Scsi Bus 0\Target Id 0\Logical Unit Id 0\Identifier
键值:NECVMWar VMware IDE CDR10
项名:HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\C2A6F2EFE6910124C940B2B12CF170FE\ProductName
键值:VMware Tools
项 名:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer \UserData\S-1-5-18\Products\C2A6F2EFE6910124C940B2B12CF170FE\InstallProperties\DisplayName
键值:VMware Tools
项名:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reinstall\0002\DeviceDesc
键值:VMware SVGA II
项名:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\2\Description
键值:VMware Accelerated AMD PCNet Adapter
项名:HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Tools
项名:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000\DriverDesc
键值:VMware SVGA II
项名:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-
08002BE10318}\0000\ProviderName
键值:VMware, Inc.
项名:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0001\DriverDesc
键值:VMware Accelerated AMD PCNet Adapter
项名:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}\0000\DriverDesc
键值:VMware SCSI Controller
项名:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Monitors\ThinPrint Print Port Monitor for VMWare
补充另外一处 具体代码如下:
[cpp] view plaincopy
1. BOOL DetectVM() {
2.
3. HKEY hKey;
4.
5. char szBuffer[64];
6.
7. unsigned long hSize= sizeof(szBuffer) - 1;
8.
9. if( RegOpenKeyEx( HKEY_LOCAL_MACHINE, "HARDWARE\\DESCRIPTION\\System\\BIOS\\", 0, KEY_READ, &hKey )==ERROR_SUCCESS ) {
10.
11. RegQueryValueEx( hKey, "SystemManufacturer", NULL, NULL, (unsigned char *)szBuffer, &hSize );
12.
13. if( strstr( szBuffer, "VMWARE" )) {
14.
15. RegCloseKey( hKey );
16.
17. return TRUE;
18.
19. }
20.
21. RegCloseKey( hKey );
22.
23. }
24.
25. return FALSE;
26.
27. }
除以上这些表项之外,还有很多地方可以检测,特别是虚拟机提供的虚拟化软硬件、服务之类,比如文件共享服务,VMware 物理磁盘助手服 务,VMware Ethernet Adapter Driver,VMware SCSI Controller等等的这些信息都可作为检测虚拟机的 手段。这里我们就以其中某表项为例编程举例一下,其它表项检测方法同理,具体代码如下:
代码:
.386.model flat, stdcalloption casemap:none include windows.inc include user32.inc include kernel32.inc include advapi32.inc includelib user32.lib includelib kernel32.lib includelib advapi32.lib.dataszCaption db "VMware Detector ",0szInside db "Inside VMware!",0szOutside db "Native OS!",0szSubKey db "software\VMWare, Inc.\VMware tools",0hKey dd ?.codestart: invoke RegOpenKeyEx, HKEY_LOCAL_MACHINE, addr szSubKey, 0,\ KEY_WRITE or KEY_READ, addr hKey .if eax == ERROR_SUCCESS invoke MessageBox, NULL,addr szInside, addr szCaption, MB_OK .else invoke MessageBox, NULL,addr szOutside, addr szCaption, MB_OK .endif invoke RegCloseKey,hKey invoke ExitProcess,NULLend start
测试结果如图5所示:
方法六:基于时间差的检测方式
本方法通过运行一段特定代码,然后比较这段代码在虚拟机和真实主机之中的相对运行时间,以此来判断是否处于虚拟机之中。这段代码我们可以通过RDTSC指 令来实现,RDTSC指令是用于将计算机启动以来的CPU运行周期数存放到EDX:EAX里面,其中EDX是高位,而EAX是低位。下面我们以 xchg ecx, eax 一句指令的运行时间为例,这段指令在我的真实主机windows 7系统上的运行时间为0000001E,如图6所 示:
而该指令在虚拟机WinXP下的运行时间为00000442,如图7所示:
两者之间的运行时间明显差别很多,在虚拟机中的运行速度远不如真实主机的,一般情况下,当它的运行时间大于0xFF时,就可以确定它处于虚拟机之中了,因此不难写出检测程序,具体实现代码如下:
代码:
.586p.model flat, stdcalloption casemap:noneinclude windows.incinclude kernel32.incinclude user32.incincludelib kernel32.libincludelib user32.lib .dataszTitle db "VMDetect With RDTSC", 0hszInsideVM db "Inside VMware!", 0hszOutsideVM db "Native OS!", 0h.codestart: RDTSC xchg ecx, eax RDTSC sub eax, ecx cmp eax, 0FFh jg Detected invoke MessageBox, 0, offset szOutsideVM, offset szTitle, 0 ret Detected: invoke MessageBox, 0, offset szInsideVM, offset szTitle, 0 retend start
测试结果如图8所示:
方法七:利用虚拟硬件指纹检测虚拟机
利 用虚拟硬件指纹也可用于检测虚拟机的存在,比如VMware默认的网卡MAC地址前缀为“00-05-69,00-0C-29或者00-50-56”,这 前3节是由VMware分配的唯一标识符OUI,以供它的虚拟化适配器使用。在我的VMWare WinXP下的MAC地址为00-0C-29-5B- D7-67,
如图9所示:
但由于这些可经过修改配置文件来绕过检测。另外,还可通过检测特定的硬件控制器,BIOS,USB控制器,显卡,网卡等特征字符串进行检测,这些在前面使用注册表检测方法中已有所涉及。
另外之前在看雪论坛上也有朋友提到通过检测硬盘Model Number是否含有“vmware”或“virtual”等字样来实现检测虚拟机的功能,具体转载如下:
[cpp] view plaincopy
1. 小试 anti vmware
2. 今天偶然看到一款绿色版的硬盘专业工具,突然发现可以利用其中的一项功能来实现anti vmware。
3. 今日事今日毕,那就在今晚12:00之前把这个想法实现吧,let's go!
4. 我的想法就是检测硬盘的modelnumber,具体什么是modelnumber自己网上搜吧,反正不是硬盘序列号。难点就是在多种操作系统下都要能起到anti vmware的效果。程序在xp、2k、2003下都可以检测到vmware的运行。
5. 直接贴代码了,如果看不懂也没关系,我也是逆了人家的代码写出来的。Delphi也可以当汇编语言开发工具用,难道不是吗?
6. unit Unit1;
7. interface
8. uses
9. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
10. Dialogs, StdCtrls, Buttons;
11. type
12. TForm1 = class(TForm)
13. BitBtn1: TBitBtn;
14. procedure BitBtn1Click(Sender: TObject);
15. procedure FormClose(Sender: TObject; var Action: TCloseAction);
16. private
17. { Private declarations }
18. public
19. { Public declarations }
20. end;
21.
22. var
23. Form1: TForm1;
24. hDeviceHandle:Thandle;
25.
26. implementation
27.
28. {$R *.dfm}
29.
30. procedure TForm1.BitBtn1Click(Sender: TObject);
31. var
32. InBuffer: array[0..$8f] of byte;
33. cb:Cardinal;
34. tmp:Pchar;
35. begin
36. hDeviceHandle:=CreateFile('\\.\PHYSICALDRIVE0',$C0000000,$3,nil,OPEN_EXISTING,$8000000,0);
37. ZeroMemory(@InBuffer,sizeof(InBuffer));
38. asm
39. pushad
40. lea ebx,InBuffer
41. xor ecx,ecx
42. mov al,$2c
43. MOV [ebx],al
44. MOV EAX,$200c0000
45. MOV [ebx+4], eax
46. mov al,$01
47. MOV [ebx+8],al
48. mov al,$40
49. MOV [ebx+$c],al
50. MOV EAX,$0001a5E0
51. MOV [ebx+$10], eax
52. mov al,$30
53. MOV [ebx+$18],al
54. mov al,$12
55. MOV [ebx+$1c],al
56. mov al,$40
57. MOV [ebx+$20],al
58. add ecx,ebx
59. add ecx,$50
60. MOV [ebx+$14], ecx
61. popad
62. end;
63.
64.
65. if DeviceIoControl(hDeviceHandle,$4D014,@InBuffer,$50,@InBuffer,$50,cb,nil) then
66. begin
67. asm
68. pushad
69. lea ebx,InBuffer
70. add ebx,$58
71. mov tmp,ebx
72. popad
73. end; //asm
74.
75. if ((pos('vmware',LowerCase(tmp))>0) or (pos('virtual',LowerCase(tmp))>0)) then
76. showmessage('检测到 VMware Workstation!!!')
77. else
78. showmessage('请在VMware中测试!');
79.
80. end;
81. end;
82.
83. procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
84. begin
85. closehandle(hDeviceHandle);
86. end;
87.
88. end.
89.
90. 代码很短,但是效果不错。截图几张,留作纪念!
C++代码实现如下:
[cpp] view plaincopy
1. 通过IOCTL_STORAGE_QUERY_PROPERTY
2.
3. typedef enum _STORAGE_QUERY_TYPE {PropertyStandardQuery = 0,PropertyExistsQuery,PropertyMaskQuery,PropertyQueryMaxDefined} STORAGE_QUERY_TYPE, *PSTORAGE_QUERY_TYPE;
4.
5. typedef enum _STORAGE_PROPERTY_ID {StorageDeviceProperty = 0,StorageAdapterProperty} STORAGE_PROPERTY_ID, *PSTORAGE_PROPERTY_ID;
6.
7. typedef struct _STORAGE_PROPERTY_QUERY {
8.
9. STORAGE_PROPERTY_ID PropertyId;
10.
11. STORAGE_QUERY_TYPE QueryType;
12.
13. UCHAR AdditionalParameters[1];
14.
15.
16.
17. } STORAGE_PROPERTY_QUERY, *PSTORAGE_PROPERTY_QUERY;
18.
19. typedef struct _STORAGE_DEVICE_DESCRIPTOR {
20.
21. ULONG Version;
22.
23. ULONG Size;
24.
25. UCHAR DeviceType;
26.
27. UCHAR DeviceTypeModifier;
28.
29. BOOLEAN RemovableMedia;
30.
31. BOOLEAN CommandQueueing;
32.
33. ULONG VendorIdOffset;
34.
35. ULONG ProductIdOffset;
36.
37. } STORAGE_DEVICE_DESCRIPTOR, *PSTORAGE_DEVICE_DESCRIPTOR;
38.
39.
40.
41. #define IOCTL_STORAGE_QUERY_PROPERTY CTL_CODE(IOCTL_STORAGE_BASE, 0x0500, METHOD_BUFFERED, FILE_ANY_ACCESS)
42.
43.
44.
45. bool IsSandboxed()
46.
47. {
48.
49. HANDLE hPhysicalDriveIOCTL = 0;
50.
51. int j = 0,k = 0;
52.
53. char szModel[128],szBuffer[128];
54.
55. char *szDrives[] = {
56.
57. "qemu",
58.
59. "virtual",
60.
61. "vmware",
62.
63. NULL
64.
65. };
66.
67.
68.
69. hPhysicalDriveIOCTL = CreateFile ("\\\\.\\PhysicalDrive0", 0,FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,OPEN_EXISTING, 0, NULL);
70.
71. if (hPhysicalDriveIOCTL != INVALID_HANDLE_VALUE)
72.
73. {
74.
75. STORAGE_PROPERTY_QUERY query;
76.
77. DWORD cbBytesReturned = 0;
78.
79. memset ((void *) & query, 0, sizeof (query));
80.
81. query.PropertyId = StorageDeviceProperty;
82.
83. memset (szBuffer, 0, sizeof (szBuffer));
84.
85. memset (szModel, 0, sizeof (szModel));
86.
87. if (DeviceIoControl(hPhysicalDriveIOCTL, IOCTL_STORAGE_QUERY_PROPERTY,& query,sizeof (query),& szBuffer,sizeof (szBuffer),& cbBytesReturned, NULL)){
88.
89. STORAGE_DEVICE_DESCRIPTOR *descrip = (STORAGE_DEVICE_DESCRIPTOR*)&szBuffer;
90.
91. int pos = descrip->ProductIdOffset;
92.
93. int m = 0;
94.
95. for(int g = pos;szBuffer[g] != '\0';g++){
96.
97. szModel[m++] = szBuffer[g];
98.
99. }
100.
101. CharLowerBuff(szModel,strlen(szModel));
102.
103. for (int i = 0; i < (sizeof(szDrives)/sizeof(LPSTR)) - 1; i++ ) {
104.
105. if (szDrives[0] != 0) {
106.
107. if(strstr(szModel,szDrives))
108.
109. return TRUE;
110.
111. }
112.
113. }
114.
115. }
116.
117. CloseHandle (hPhysicalDriveIOCTL);
118.
119. }
120.
121. return FALSE;
122.
123. }
总结
国外SANS安全组织的研究人员总结出当前各种虚拟机检测手段不外乎以下四类:
● 搜索虚拟环境中的进程,文件系统,注册表;
● 搜索虚拟环境中的内存
● 搜索虚拟环境中的特定虚拟硬件
● 搜索虚拟环境中的特定处理器指令和功能
因 为现代计算系统大多是由文件系统,内存,处理器及各种硬件组件构成的,上面提到的四种检测手段均包含了这些因素。纵观前面各种检测方法,也均在此四类当 中。除此之外,也有人提出通过网络来检测虚拟机,比如搜索ICMP和TCP数据通讯的时间差异,IP ID数据包差异以及数据包中的异常头信息等等。随着 技术研究的深入,相信会有更多的检测手段出现,与此同时,虚拟机厂商也会不断进化它们的产品,以增加anti-vmware的难度,这不也正是一场永无休 止的无烟战争!
================================================================================
解决方法:
anti VM的解决方法
对于上边 方法一二三四六的解决方案是 :
1.在本机BIOS的CPU设置中开启VT(虚拟化)选项。 注意要先做这一步以后 才能安装VM 顺序错了只能把VM完全卸载重新安装。
2.新建虚拟机 在CPU设置如下图设置:
主要目的是为了 关闭二进制优化 开启虚拟机的VT虚拟化。
3.关闭一些虚拟机的设置 用记事本打开 VMX 文件 这个文件是VM的配置文件 如类似地址"C:\VM Machines\Windows 7 (32位)\Windows 7 (32位).vmx",在文本末尾加入
[cpp] view plaincopy
1. isolation.tools.getPtrLocation.disable = "TRUE"
2. isolation.tools.setPtrLocation.disable = "TRUE"
3. isolation.tools.setVersion.disable = "TRUE"
4. isolation.tools.getVersion.disable = "TRUE"
5. monitor_control.disable_directexec = "TRUE"
6. monitor_control.disable_chksimd = "TRUE"
7. monitor_control.disable_ntreloc = "TRUE"
8. monitor_control.disable_selfmod = "TRUE"
9. monitor_control.disable_reloc = "TRUE"
10. monitor_control.disable_btinout = "TRUE"
11. monitor_control.disable_btmemspace = "TRUE"
12. monitor_control.disable_btpriv = "TRUE"
13. monitor_control.disable_btseg = "TRUE"
14. monitor_control.restrict_backdoor = "TRUE"
这样一来 就实现了 开启VT虚拟化 关闭二进制优化 关闭各种后门 然后安装VM中的系统 如WIN7 安装好后在VM WIN7中运行 方法一二三四六的检测全部通过了。
方法七的解决方案就是修改硬件信息,这里的VM特征硬件信息有很多,这里只说网卡的,直接下载一个mac地址修改器,修改mac这样一来mac地址就不是VM特有的了,从而达到过方法七的效果。
方 法五,很多商业软件都是用这个方法来验证,原因很简单不管是在驱动还是在应用层都可以很方便的读取注册表,只要保护开发人员自己安装一个VM就能提取里边 特征注册码,这个解决方案就是 搜索注册表的“VMware” "virtual" 等字段,把能修改的都修改了,然后导出注册表,以便重启系统后导入,因为重启VM后有些注册表信息会还原。
实例如下:
环境:VM虚拟机 WIN7 32位,光盘镜像名称 XBL_GHOST_WIN7_SP1_07ZJB.iso
原理:修改注册表中的 “VMware” 修改为了 “test123”
注册表:
[cpp] view plaincopy
1. Windows Registry Editor Version 5.00
2.
3. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\SystemInformation]
4. "BIOSVersion"="6.00"
5. "BIOSReleaseDate"="07/02/2012"
6. "SystemManufacturer"="test123, Inc."
7. "SystemProductName"="test123 test123 Platform"
8. "InformationSource"=dword:00000001
9.
10. [HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS]
11. "BiosMajorRelease"=dword:00000004
12. "BiosMinorRelease"=dword:00000006
13. "ECFirmwareMajorRelease"=dword:00000000
14. "ECFirmwareMinorRelease"=dword:00000000
15. "BaseBoardManufacturer"="Intel Corporation"
16. "BaseBoardProduct"="440BX Desktop Reference Platform"
17. "BaseBoardVersion"="None"
18. "BIOSReleaseDate"="07/02/2012"
19. "BIOSVendor"="Phoenix Technologies LTD"
20. "BIOSVersion"="6.00"
21. "SystemFamily"=""
22. "SystemManufacturer"="test123, Inc."
23. "SystemProductName"="test123 test123 Platform"
24. "SystemSKU"=""
25. "SystemVersion"="None"
26.
27. [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 2\Scsi Bus 0\Target Id 0\Logical Unit Id 0]
28. "InquiryData"=hex:00,00,02,02,1f,00,00,73,56,4d,77,61,72,65,2c,20,56,4d,77,61,\
29. 72,65,20,56,69,72,74,75,61,6c,20,53,31,2e,30,20
30. "Identifier"="test123, test123 Virtual S1.0 "
31. "DeviceType"="DiskPeripheral"
32.
33. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000]
34. "CoInstallers32"=hex(7):76,00,6d,00,78,00,5f,00,6d,00,6f,00,64,00,65,00,2e,00,\
35. 64,00,6c,00,6c,00,2c,00,20,00,56,00,4d,00,58,00,5f,00,4d,00,6f,00,64,00,65,\
36. 00,43,00,68,00,61,00,6e,00,67,00,65,00,00,00,00,00
37. "InfPath"="oem2.inf"
38. "InfSection"="vmx_svga_vista"
39. "ProviderName"="test123, Inc."
40. "DriverDateData"=hex:00,80,de,95,e5,e0,ca,01
41. "DriverDate"="4-21-2010"
42. "DriverVersion"="11.6.0.35"
43. "MatchingDeviceId"="pci\\ven_15ad&dev_0405&subsys_040515ad&rev_00"
44. "DriverDesc"="test123 SVGA II"
45. "FeatureScore"=dword:000000fc
46.
47. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000\Settings]
48. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
49. 00
50. "VgaCompatible"=dword:00000000
51. "DefaultSettings.XResolution"=dword:00000280
52. "DefaultSettings.YResolution"=dword:000001e0
53. "DefaultSettings.BitsPerPel"=dword:00000020
54. "Device Description"="test123 SVGA II"
55.
56. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\SystemInformation]
57. "BIOSVersion"="6.00"
58. "BIOSReleaseDate"="07/02/2012"
59. "SystemManufacturer"="test123, Inc."
60. "SystemProductName"="test123 test123 Platform"
61. "InformationSource"=dword:00000001
62.
63. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0000]
64. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
65. 00
66. "VgaCompatible"=dword:00000000
67. "DefaultSettings.XResolution"=dword:00000280
68. "DefaultSettings.YResolution"=dword:000001e0
69. "DefaultSettings.BitsPerPel"=dword:00000020
70. "Device Description"="test123 SVGA II"
71. "Resolution.0"=hex:33,32,30,78,32,34,30,00
72. "Resolution.1"=hex:34,30,30,78,33,30,30,00
73. "Resolution.2"=hex:35,31,32,78,33,38,34,00
74. "Resolution.3"=hex:36,34,30,78,34,38,30,00
75. "Resolution.4"=hex:38,30,30,78,36,30,30,00
76. "Resolution.5"=hex:31,30,32,34,78,37,36,38,00
77. "Resolution.6"=hex:31,31,35,32,78,38,36,34,00
78. "Resolution.7"=hex:31,32,38,30,78,39,36,30,00
79. "Resolution.8"=hex:31,34,30,30,78,31,30,35,30,00
80. "Resolution.9"=hex:31,36,30,30,78,31,32,30,30,00
81. "Resolution.10"=hex:31,39,32,30,78,31,34,34,30,00
82. "Resolution.11"=hex:32,30,34,38,78,31,35,33,36,00
83. "Resolution.12"=hex:32,35,36,30,78,31,39,32,30,00
84. "Resolution.13"=hex:38,35,34,78,34,38,30,00
85. "Resolution.14"=hex:31,32,38,30,78,37,32,30,00
86. "Resolution.15"=hex:31,33,36,36,78,37,36,38,00
87. "Resolution.16"=hex:31,39,32,30,78,31,30,38,30,00
88. "Resolution.17"=hex:31,32,38,30,78,38,30,30,00
89. "Resolution.18"=hex:31,34,34,30,78,39,30,30,00
90. "Resolution.19"=hex:31,36,38,30,78,31,30,35,30,00
91. "Resolution.20"=hex:31,39,32,30,78,31,32,30,30,00
92. "Resolution.21"=hex:32,35,36,30,78,31,36,30,30,00
93. "Resolution.22"=hex:37,32,30,78,34,38,30,00
94. "Resolution.23"=hex:37,32,30,78,35,37,36,00
95. "Resolution.24"=hex:33,32,30,78,32,30,30,00
96. "Resolution.25"=hex:36,34,30,78,34,30,30,00
97. "Resolution.26"=hex:38,30,30,78,34,38,30,00
98. "Resolution.27"=hex:31,32,38,30,78,37,36,38,00
99. "Resolution.28"=hex:31,32,38,30,78,31,30,32,34,00
100. "HardwareInformation.ChipType"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,\
101. 53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
102. "HardwareInformation.DacType"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,53,\
103. 00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
104. "HardwareInformation.MemorySize"=hex:00,00,00,08
105. "HardwareInformation.AdapterString"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,\
106. 00,53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
107. "HardwareInformation.BiosString"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,\
108. 53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
109.
110. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0000\VolatileSettings]
111. "{5b45201d-f2f2-4f3b-85bb-30ff1f953599}"=hex:5c,00,3f,00,3f,00,5c,00,50,00,43,\
112. 00,49,00,23,00,56,00,45,00,4e,00,5f,00,31,00,35,00,41,00,44,00,26,00,44,00,\
113. 45,00,56,00,5f,00,30,00,34,00,30,00,35,00,26,00,53,00,55,00,42,00,53,00,59,\
114. 00,53,00,5f,00,30,00,34,00,30,00,35,00,31,00,35,00,41,00,44,00,26,00,52,00,\
115. 45,00,56,00,5f,00,30,00,30,00,23,00,33,00,26,00,32,00,61,00,63,00,66,00,31,\
116. 00,65,00,39,00,26,00,30,00,26,00,37,00,38,00,23,00,7b,00,35,00,62,00,34,00,\
117. 35,00,32,00,30,00,31,00,64,00,2d,00,66,00,32,00,66,00,32,00,2d,00,34,00,66,\
118. 00,33,00,62,00,2d,00,38,00,35,00,62,00,62,00,2d,00,33,00,30,00,66,00,66,00,\
119. 31,00,66,00,39,00,35,00,33,00,35,00,39,00,39,00,7d,00
120.
121. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0001]
122. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
123. 00
124. "VgaCompatible"=dword:00000000
125. "DefaultSettings.XResolution"=dword:00000280
126. "DefaultSettings.YResolution"=dword:000001e0
127. "DefaultSettings.BitsPerPel"=dword:00000020
128. "Device Description"="test123 SVGA II"
129.
130. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0001\VolatileSettings]
131. "{5b45201d-f2f2-4f3b-85bb-30ff1f953599}"=hex:5c,00,3f,00,3f,00,5c,00,50,00,43,\
132. 00,49,00,23,00,56,00,45,00,4e,00,5f,00,31,00,35,00,41,00,44,00,26,00,44,00,\
133. 45,00,56,00,5f,00,30,00,34,00,30,00,35,00,26,00,53,00,55,00,42,00,53,00,59,\
134. 00,53,00,5f,00,30,00,34,00,30,00,35,00,31,00,35,00,41,00,44,00,26,00,52,00,\
135. 45,00,56,00,5f,00,30,00,30,00,23,00,33,00,26,00,32,00,61,00,63,00,66,00,31,\
136. 00,65,00,39,00,26,00,30,00,26,00,37,00,38,00,23,00,7b,00,35,00,62,00,34,00,\
137. 35,00,32,00,30,00,31,00,64,00,2d,00,66,00,32,00,66,00,32,00,2d,00,34,00,66,\
138. 00,33,00,62,00,2d,00,38,00,35,00,62,00,62,00,2d,00,33,00,30,00,66,00,66,00,\
139. 31,00,66,00,39,00,35,00,33,00,35,00,39,00,39,00,7d,00
140.
141. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\vmx_svga\Device0]
142. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
143. 00
144. "VgaCompatible"=dword:00000000
145. "DefaultSettings.XResolution"=dword:00000280
146. "DefaultSettings.YResolution"=dword:000001e0
147. "DefaultSettings.BitsPerPel"=dword:00000020
148. "Device Description"="test123 SVGA II"
149.
150. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000]
151. "CoInstallers32"=hex(7):76,00,6d,00,78,00,5f,00,6d,00,6f,00,64,00,65,00,2e,00,\
152. 64,00,6c,00,6c,00,2c,00,20,00,56,00,4d,00,58,00,5f,00,4d,00,6f,00,64,00,65,\
153. 00,43,00,68,00,61,00,6e,00,67,00,65,00,00,00,00,00
154. "InfPath"="oem2.inf"
155. "InfSection"="vmx_svga_vista"
156. "ProviderName"="test123, Inc."
157. "DriverDateData"=hex:00,80,de,95,e5,e0,ca,01
158. "DriverDate"="4-21-2010"
159. "DriverVersion"="11.6.0.35"
160. "MatchingDeviceId"="pci\\ven_15ad&dev_0405&subsys_040515ad&rev_00"
161. "DriverDesc"="test123 SVGA II"
162. "FeatureScore"=dword:000000fc
163.
164. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000\Settings]
165. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
166. 00
167. "VgaCompatible"=dword:00000000
168. "DefaultSettings.XResolution"=dword:00000280
169. "DefaultSettings.YResolution"=dword:000001e0
170. "DefaultSettings.BitsPerPel"=dword:00000020
171. "Device Description"="test123 SVGA II"
172.
173. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0000]
174. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
175. 00
176. "VgaCompatible"=dword:00000000
177. "DefaultSettings.XResolution"=dword:00000280
178. "DefaultSettings.YResolution"=dword:000001e0
179. "DefaultSettings.BitsPerPel"=dword:00000020
180. "Device Description"="test123 SVGA II"
181. "Resolution.0"=hex:33,32,30,78,32,34,30,00
182. "Resolution.1"=hex:34,30,30,78,33,30,30,00
183. "Resolution.2"=hex:35,31,32,78,33,38,34,00
184. "Resolution.3"=hex:36,34,30,78,34,38,30,00
185. "Resolution.4"=hex:38,30,30,78,36,30,30,00
186. "Resolution.5"=hex:31,30,32,34,78,37,36,38,00
187. "Resolution.6"=hex:31,31,35,32,78,38,36,34,00
188. "Resolution.7"=hex:31,32,38,30,78,39,36,30,00
189. "Resolution.8"=hex:31,34,30,30,78,31,30,35,30,00
190. "Resolution.9"=hex:31,36,30,30,78,31,32,30,30,00
191. "Resolution.10"=hex:31,39,32,30,78,31,34,34,30,00
192. "Resolution.11"=hex:32,30,34,38,78,31,35,33,36,00
193. "Resolution.12"=hex:32,35,36,30,78,31,39,32,30,00
194. "Resolution.13"=hex:38,35,34,78,34,38,30,00
195. "Resolution.14"=hex:31,32,38,30,78,37,32,30,00
196. "Resolution.15"=hex:31,33,36,36,78,37,36,38,00
197. "Resolution.16"=hex:31,39,32,30,78,31,30,38,30,00
198. "Resolution.17"=hex:31,32,38,30,78,38,30,30,00
199. "Resolution.18"=hex:31,34,34,30,78,39,30,30,00
200. "Resolution.19"=hex:31,36,38,30,78,31,30,35,30,00
201. "Resolution.20"=hex:31,39,32,30,78,31,32,30,30,00
202. "Resolution.21"=hex:32,35,36,30,78,31,36,30,30,00
203. "Resolution.22"=hex:37,32,30,78,34,38,30,00
204. "Resolution.23"=hex:37,32,30,78,35,37,36,00
205. "Resolution.24"=hex:33,32,30,78,32,30,30,00
206. "Resolution.25"=hex:36,34,30,78,34,30,30,00
207. "Resolution.26"=hex:38,30,30,78,34,38,30,00
208. "Resolution.27"=hex:31,32,38,30,78,37,36,38,00
209. "Resolution.28"=hex:31,32,38,30,78,31,30,32,34,00
210. "HardwareInformation.ChipType"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,\
211. 53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
212. "HardwareInformation.DacType"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,53,\
213. 00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
214. "HardwareInformation.MemorySize"=hex:00,00,00,08
215. "HardwareInformation.AdapterString"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,\
216. 00,53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
217. "HardwareInformation.BiosString"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,\
218. 53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
219.
220. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0001]
221. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
222. 00
223. "VgaCompatible"=dword:00000000
224. "DefaultSettings.XResolution"=dword:00000280
225. "DefaultSettings.YResolution"=dword:000001e0
226. "DefaultSettings.BitsPerPel"=dword:00000020
227. "Device Description"="test123 SVGA II"
228.
229. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\vmx_svga\Device0]
230. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
231. 00
232. "VgaCompatible"=dword:00000000
233. "DefaultSettings.XResolution"=dword:00000280
234. "DefaultSettings.YResolution"=dword:000001e0
235. "DefaultSettings.BitsPerPel"=dword:00000020
236. "Device Description"="test123 SVGA II"
237.
238. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000]
239. "CoInstallers32"=hex(7):76,00,6d,00,78,00,5f,00,6d,00,6f,00,64,00,65,00,2e,00,\
240. 64,00,6c,00,6c,00,2c,00,20,00,56,00,4d,00,58,00,5f,00,4d,00,6f,00,64,00,65,\
241. 00,43,00,68,00,61,00,6e,00,67,00,65,00,00,00,00,00
242. "InfPath"="oem2.inf"
243. "InfSection"="vmx_svga_vista"
244. "ProviderName"="test123, Inc."
245. "DriverDateData"=hex:00,80,de,95,e5,e0,ca,01
246. "DriverDate"="4-21-2010"
247. "DriverVersion"="11.6.0.35"
248. "MatchingDeviceId"="pci\\ven_15ad&dev_0405&subsys_040515ad&rev_00"
249. "DriverDesc"="test123 SVGA II"
250. "FeatureScore"=dword:000000fc
251.
252. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}\0000\Settings]
253. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
254. 00
255. "VgaCompatible"=dword:00000000
256. "DefaultSettings.XResolution"=dword:00000280
257. "DefaultSettings.YResolution"=dword:000001e0
258. "DefaultSettings.BitsPerPel"=dword:00000020
259. "Device Description"="test123 SVGA II"
260.
261. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SystemInformation]
262. "BIOSVersion"="6.00"
263. "BIOSReleaseDate"="07/02/2012"
264. "SystemManufacturer"="test123, Inc."
265. "SystemProductName"="test123 test123 Platform"
266. "InformationSource"=dword:00000001
267.
268. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0000]
269. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
270. 00
271. "VgaCompatible"=dword:00000000
272. "DefaultSettings.XResolution"=dword:00000280
273. "DefaultSettings.YResolution"=dword:000001e0
274. "DefaultSettings.BitsPerPel"=dword:00000020
275. "Device Description"="test123 SVGA II"
276. "Resolution.0"=hex:33,32,30,78,32,34,30,00
277. "Resolution.1"=hex:34,30,30,78,33,30,30,00
278. "Resolution.2"=hex:35,31,32,78,33,38,34,00
279. "Resolution.3"=hex:36,34,30,78,34,38,30,00
280. "Resolution.4"=hex:38,30,30,78,36,30,30,00
281. "Resolution.5"=hex:31,30,32,34,78,37,36,38,00
282. "Resolution.6"=hex:31,31,35,32,78,38,36,34,00
283. "Resolution.7"=hex:31,32,38,30,78,39,36,30,00
284. "Resolution.8"=hex:31,34,30,30,78,31,30,35,30,00
285. "Resolution.9"=hex:31,36,30,30,78,31,32,30,30,00
286. "Resolution.10"=hex:31,39,32,30,78,31,34,34,30,00
287. "Resolution.11"=hex:32,30,34,38,78,31,35,33,36,00
288. "Resolution.12"=hex:32,35,36,30,78,31,39,32,30,00
289. "Resolution.13"=hex:38,35,34,78,34,38,30,00
290. "Resolution.14"=hex:31,32,38,30,78,37,32,30,00
291. "Resolution.15"=hex:31,33,36,36,78,37,36,38,00
292. "Resolution.16"=hex:31,39,32,30,78,31,30,38,30,00
293. "Resolution.17"=hex:31,32,38,30,78,38,30,30,00
294. "Resolution.18"=hex:31,34,34,30,78,39,30,30,00
295. "Resolution.19"=hex:31,36,38,30,78,31,30,35,30,00
296. "Resolution.20"=hex:31,39,32,30,78,31,32,30,30,00
297. "Resolution.21"=hex:32,35,36,30,78,31,36,30,30,00
298. "Resolution.22"=hex:37,32,30,78,34,38,30,00
299. "Resolution.23"=hex:37,32,30,78,35,37,36,00
300. "Resolution.24"=hex:33,32,30,78,32,30,30,00
301. "Resolution.25"=hex:36,34,30,78,34,30,30,00
302. "Resolution.26"=hex:38,30,30,78,34,38,30,00
303. "Resolution.27"=hex:31,32,38,30,78,37,36,38,00
304. "Resolution.28"=hex:31,32,38,30,78,31,30,32,34,00
305. "HardwareInformation.ChipType"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,\
306. 53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
307. "HardwareInformation.DacType"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,53,\
308. 00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
309. "HardwareInformation.MemorySize"=hex:00,00,00,08
310. "HardwareInformation.AdapterString"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,\
311. 00,53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
312. "HardwareInformation.BiosString"=hex:56,00,4d,00,77,00,61,00,72,00,65,00,20,00,\
313. 53,00,56,00,47,00,41,00,20,00,49,00,49,00,00,00
314.
315. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0000\VolatileSettings]
316. "{5b45201d-f2f2-4f3b-85bb-30ff1f953599}"=hex:5c,00,3f,00,3f,00,5c,00,50,00,43,\
317. 00,49,00,23,00,56,00,45,00,4e,00,5f,00,31,00,35,00,41,00,44,00,26,00,44,00,\
318. 45,00,56,00,5f,00,30,00,34,00,30,00,35,00,26,00,53,00,55,00,42,00,53,00,59,\
319. 00,53,00,5f,00,30,00,34,00,30,00,35,00,31,00,35,00,41,00,44,00,26,00,52,00,\
320. 45,00,56,00,5f,00,30,00,30,00,23,00,33,00,26,00,32,00,61,00,63,00,66,00,31,\
321. 00,65,00,39,00,26,00,30,00,26,00,37,00,38,00,23,00,7b,00,35,00,62,00,34,00,\
322. 35,00,32,00,30,00,31,00,64,00,2d,00,66,00,32,00,66,00,32,00,2d,00,34,00,66,\
323. 00,33,00,62,00,2d,00,38,00,35,00,62,00,62,00,2d,00,33,00,30,00,66,00,66,00,\
324. 31,00,66,00,39,00,35,00,33,00,35,00,39,00,39,00,7d,00
325.
326. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0001]
327. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
328. 00
329. "VgaCompatible"=dword:00000000
330. "DefaultSettings.XResolution"=dword:00000280
331. "DefaultSettings.YResolution"=dword:000001e0
332. "DefaultSettings.BitsPerPel"=dword:00000020
333. "Device Description"="test123 SVGA II"
334.
335. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{AB246128-79BD-44A8-95C3-DC6CB912ED85}\0001\VolatileSettings]
336. "{5b45201d-f2f2-4f3b-85bb-30ff1f953599}"=hex:5c,00,3f,00,3f,00,5c,00,50,00,43,\
337. 00,49,00,23,00,56,00,45,00,4e,00,5f,00,31,00,35,00,41,00,44,00,26,00,44,00,\
338. 45,00,56,00,5f,00,30,00,34,00,30,00,35,00,26,00,53,00,55,00,42,00,53,00,59,\
339. 00,53,00,5f,00,30,00,34,00,30,00,35,00,31,00,35,00,41,00,44,00,26,00,52,00,\
340. 45,00,56,00,5f,00,30,00,30,00,23,00,33,00,26,00,32,00,61,00,63,00,66,00,31,\
341. 00,65,00,39,00,26,00,30,00,26,00,37,00,38,00,23,00,7b,00,35,00,62,00,34,00,\
342. 35,00,32,00,30,00,31,00,64,00,2d,00,66,00,32,00,66,00,32,00,2d,00,34,00,66,\
343. 00,33,00,62,00,2d,00,38,00,35,00,62,00,62,00,2d,00,33,00,30,00,66,00,66,00,\
344. 31,00,66,00,39,00,35,00,33,00,35,00,39,00,39,00,7d,00
345.
346. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\vmx_svga\Device0]
347. "InstalledDisplayDrivers"=hex(7):76,00,6d,00,78,00,5f,00,66,00,62,00,00,00,00,\
348. 00
349. "VgaCompatible"=dword:00000000
350. "DefaultSettings.XResolution"=dword:00000280
351. "DefaultSettings.YResolution"=dword:000001e0
352. "DefaultSettings.BitsPerPel"=dword:00000020
353. "Device Description"="test123 SVGA II"
这样一来就解决了方法五,anti VM有可能是多种方法结合,所以需要具体测试。
关于去虚拟化,反软件检测,反病毒检测,学习交流指导请加群:43494559
|