Detecting VMWare

Interested in how to detect the presence of VMware / VirtualServer I came across this bit of code to detect whether an application is being run in virtual environment.

int swallow_redpill (){
unsigned char m[2+4], rpill[] = “\x0f\x01\x0d\x00\x00\x00\x00\xc3″;
*((unsigned*)&rpill[3]) = (unsigned)m;
((void(*)())&rpill)();
return (m[5]>0xd0) ? 1 : 0;
}
This works by abusing the SIDT instruction which stores the contents of the [...]

 

Windows 2003 Datacenter Guest NIC Driver for Virtual Server

Came across a problem the other day with running Windows 2003 Datacenter Edition as a guest on Microsoft Virtual Server. The problem? Windows 2003 Datacenter edition doesn’t have a suitable driver for Virtual Server, meaning that it’s fairly usless as a guest operating system (which negates one of the main benefits of having datacenter edition [...]