Be more strict with Win 7 for MS14-064

The Powershell prompt can cause BAP to hang so we need to be more
strict about that.
bug/bundler_fix
wchen-r7 2015-05-27 18:01:40 -05:00
parent 2ae9e39719
commit 53774fed56
1 changed files with 7 additions and 2 deletions

View File

@ -56,9 +56,9 @@ class Metasploit4 < Msf::Exploit::Remote
} }
], ],
[ [
'Other Windows x86', 'Windows 7 SP1',
{ {
'os_name' => OperatingSystems::Match::WINDOWS, 'os_name' => OperatingSystems::Match::WINDOWS_7
} }
] ]
], ],
@ -358,6 +358,11 @@ end function
end end
def on_request_exploit(cli, request, target_info) def on_request_exploit(cli, request, target_info)
if get_target.name.match(OperatingSystems::Match::WINDOWS_7) && !datastore['AllowPowershellPrompt']
send_not_found(cli)
return
end
case request.uri case request.uri
when /\.gif/ when /\.gif/
if get_target.name =~ OperatingSystems::Match::WINDOWS_XP if get_target.name =~ OperatingSystems::Match::WINDOWS_XP