Skip to content

Commit 904297e

Browse files
author
Tod Beardsley
committed
Merge pull request rapid7#91 from jduck/master
Stack trace fix when mytarget is nil, actually populate the agent variable.
2 parents 7448ab4 + 958ffe6 commit 904297e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/windows/browser/ms11_050_mshtml_cobjectelement.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def on_request_uri(cli, request)
152152
if target.name == 'Automatic'
153153
mytarget = auto_target(cli, request)
154154
if mytarget.nil?
155+
agent = request.headers['User-Agent']
155156
print_error("Unknown User-Agent #{agent} from #{cli.peerhost}:#{cli.peerport}")
156157
send_not_found(cli)
157158
return

0 commit comments

Comments
 (0)