Allow vhost to be maybe opts['rhost']

This enables passing rhost and rport directly to send_request_cgi
without having to monkey with the datastore.

See #8498
bug/bundler_fix
Tod Beardsley 2014-04-10 16:47:49 -05:00
parent a6a6ad2217
commit 91293fd0db
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ module Exploit::Remote::HttpClient
# Configure the HTTP client with the supplied parameter
nclient.set_config(
'vhost' => opts['vhost'] || self.vhost(),
'vhost' => opts['vhost'] || opts['rhost'] || self.vhost(),
'agent' => datastore['UserAgent'],
'uri_encode_mode' => datastore['HTTP::uri_encode_mode'],
'uri_full_url' => datastore['HTTP::uri_full_url'],