From ef6df5bc264e432ddd6fb4518c886ff7cbcef9b9 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Thu, 3 Sep 2015 16:30:46 -0500 Subject: [PATCH] Use get_target_arch --- modules/exploits/windows/local/ms15_078_atmfd_bof.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/exploits/windows/local/ms15_078_atmfd_bof.rb b/modules/exploits/windows/local/ms15_078_atmfd_bof.rb index 0761fc0697..0981ea68a4 100644 --- a/modules/exploits/windows/local/ms15_078_atmfd_bof.rb +++ b/modules/exploits/windows/local/ms15_078_atmfd_bof.rb @@ -92,7 +92,6 @@ class Metasploit3 < Msf::Exploit::Local def check # We have tested only windows 8.1 - vprint_status("#{sysinfo['OS']}") if sysinfo['OS'] !~ /Windows 8/i return Exploit::CheckCode::Unknown end @@ -143,7 +142,7 @@ class Metasploit3 < Msf::Exploit::Local fail_with(Failure::NotVulnerable, 'Exploit not available on this system.') end - if sysinfo['Architecture'] =~ /wow64/i + unless get_target_arch == ARCH_X86_64 fail_with(Failure::NoTarget, 'Running against WOW64 is not supported') end