Land #2203 - Fix regex for x64 detection

bug/bundler_fix
sinn3r 2013-08-09 13:23:38 -05:00
commit 021c358159
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ class Metasploit3 < Msf::Exploit::Local
# decide, x86 or x64
bpexe = nil
if sysinfo["Architecture"] =~ /wow64/i
if sysinfo["Architecture"] =~ /x64/i
bpexe = ::File.join(path, "bypassuac-x64.exe")
else
bpexe = ::File.join(path, "bypassuac-x86.exe")

View File

@ -88,7 +88,7 @@ class Metasploit3 < Msf::Post
# decide, x86 or x64
bpexe = nil
if payload =~ /x64/ or sysinfo["Architecture"] =~ /wow64/i
if sysinfo["Architecture"] =~ /x64/i
bpexe = ::File.join(path, "bypassuac-x64.exe")
else
bpexe = ::File.join(path, "bypassuac-x86.exe")