Use get_target_arch
parent
2588439246
commit
ef6df5bc26
|
@ -92,7 +92,6 @@ class Metasploit3 < Msf::Exploit::Local
|
||||||
|
|
||||||
def check
|
def check
|
||||||
# We have tested only windows 8.1
|
# We have tested only windows 8.1
|
||||||
vprint_status("#{sysinfo['OS']}")
|
|
||||||
if sysinfo['OS'] !~ /Windows 8/i
|
if sysinfo['OS'] !~ /Windows 8/i
|
||||||
return Exploit::CheckCode::Unknown
|
return Exploit::CheckCode::Unknown
|
||||||
end
|
end
|
||||||
|
@ -143,7 +142,7 @@ class Metasploit3 < Msf::Exploit::Local
|
||||||
fail_with(Failure::NotVulnerable, 'Exploit not available on this system.')
|
fail_with(Failure::NotVulnerable, 'Exploit not available on this system.')
|
||||||
end
|
end
|
||||||
|
|
||||||
if sysinfo['Architecture'] =~ /wow64/i
|
unless get_target_arch == ARCH_X86_64
|
||||||
fail_with(Failure::NoTarget, 'Running against WOW64 is not supported')
|
fail_with(Failure::NoTarget, 'Running against WOW64 is not supported')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue