Skip to content

Commit

Permalink
Fix #9827
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptjunkie committed Apr 6, 2018
1 parent 81c78a5 commit c303859
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/msf/core/payload/transport_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,16 @@ def transport_config_reverse_https(opts={})

def transport_uri_components(opts={})
ds = opts[:datastore] || datastore
scheme = opts[:scheme]
lhost = ds['LHOST']
lport = ds['LPORT']
if opts[:url]
u = URI(opts[:url])
scheme = u.scheme
lhost = u.host
lport = u.port
else
scheme = opts[:scheme]
lhost = ds['LHOST']
lport = ds['LPORT']
end
if ds['OverrideRequestHost']
scheme = ds['OverrideScheme'] || scheme
lhost = ds['OverrideLHOST'] || lhost
Expand Down

0 comments on commit c303859

Please sign in to comment.