Skip to content

Commit 53774fe

Browse files
committed
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.
1 parent 2ae9e39 commit 53774fe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/exploits/windows/browser/ms14_064_ole_code_execution.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def initialize(info={})
5656
}
5757
],
5858
[
59-
'Other Windows x86',
59+
'Windows 7 SP1',
6060
{
61-
'os_name' => OperatingSystems::Match::WINDOWS,
61+
'os_name' => OperatingSystems::Match::WINDOWS_7
6262
}
6363
]
6464
],
@@ -358,6 +358,11 @@ def get_html
358358
end
359359

360360
def on_request_exploit(cli, request, target_info)
361+
if get_target.name.match(OperatingSystems::Match::WINDOWS_7) && !datastore['AllowPowershellPrompt']
362+
send_not_found(cli)
363+
return
364+
end
365+
361366
case request.uri
362367
when /\.gif/
363368
if get_target.name =~ OperatingSystems::Match::WINDOWS_XP

0 commit comments

Comments
 (0)