Hello as part of my project I need to simulate attacks against other computers on the network in order to find out whether they are running in a Virtual Machine environment.
I have found some code on the internet that can do this, however it needs to be run inside the VM.
Is there anyway I could run this code from a PC on the same network? So that it would be able to determine if one of the networked hosts is on a VM?
The code is available at:
http://www.codegurus.be/codegurus/Programming/virtualpc&vmware_en.htm
More specifically:
I have found some code on the internet that can do this, however it needs to be run inside the VM.
Is there anyway I could run this code from a PC on the same network? So that it would be able to determine if one of the networked hosts is on a VM?
The code is available at:
http://www.codegurus.be/codegurus/Programming/virtualpc&vmware_en.htm
More specifically:
Code:
bool IsVirtualPC()
{
__try
{
__asm
{
// Execute the magic code sequence
mov eax, 1
db 0fh
aas
pop es
or eax, edi
inc ebp
cld
dd 0ffffffffh
};
}
__except(1)
{
// An exception occured, we ain't in Virtual PC
return false;
}
// We succeeded, we're Virtual PC emulated
return true;