Use get_target_arch

bug/bundler_fix
jvazquez-r7 2015-09-03 16:30:46 -05:00
parent 2588439246
commit ef6df5bc26
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 1 additions and 2 deletions

View File

@ -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