Land #2203 - Fix regex for x64 detection
commit
021c358159
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue