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
parent
2ae9e39719
commit
53774fed56
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue