Skip to content

Commit

Permalink
Land #12168, fix HTTP client redirects with SSL enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Aug 20, 2019
2 parents d1b4823 + bd90241 commit 262cd89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/msf/core/exploit/http/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -446,18 +446,20 @@ def reconfig_redirect_opts!(res, opts)
opts['vhost'] = opts['vhost'] || opts['rhost'] || self.vhost()
opts['rport'] = datastore['RPORT']

opts['ssl'] = ssl
opts['SSL'] = ssl
else
disconnect

opts['redirect_uri'] = location
opts['uri'] = location.path
opts['rhost'] = location.host
opts['vhost'] = location.host
opts['rport'] = location.port

if location.scheme == 'https'
opts['ssl'] = true
opts['SSL'] = true
else
opts['ssl'] = false
opts['SSL'] = false
end
end
end
Expand Down

0 comments on commit 262cd89

Please sign in to comment.