Use get_target_arch
parent
2588439246
commit
ef6df5bc26
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue