From 611b0c9e8887f0a321d14609aebe78015fd640e1 Mon Sep 17 00:00:00 2001 From: Carlos Perez Date: Sun, 12 Jun 2011 14:50:55 +0000 Subject: [PATCH] Fix false positive on win 7 x64 with vmware installed git-svn-id: file:///home/svn/framework3/trunk@12927 4d416f70-5f16-0410-b530-b9f4589650da --- modules/post/windows/gather/checkvm.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/post/windows/gather/checkvm.rb b/modules/post/windows/gather/checkvm.rb index d014a78f5f..bdcf3e82e4 100644 --- a/modules/post/windows/gather/checkvm.rb +++ b/modules/post/windows/gather/checkvm.rb @@ -132,9 +132,8 @@ class Metasploit3 < Msf::Post begin key = session.sys.registry.open_key(HKEY_LOCAL_MACHINE, 'SYSTEM\ControlSet001\Services', KEY_READ) srvvals = key.enum_key - if srvvals.include?("vpcbus") - vm = true - elsif srvvals.include?("vpc-s3") + + if srvvals.include?("vpc-s3") vm = true elsif srvvals.include?("vpcuhub") vm = true