Skip to content

Commit 9d98651

Browse files
committed
Transport priority changes
Default transport request should set the priority to the Host: request header, and the subsequent OverrideRequestHost, OverrideLHOST, and OverrideLPORT options in the handler for reverse_http(s).
1 parent 9a0f0a7 commit 9d98651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/payload/transport_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def transport_config_reverse_http(opts={})
5555

5656
{
5757
:scheme => 'http',
58-
:lhost => datastore['LHOST'],
59-
:lport => datastore['LPORT'].to_i,
58+
:lhost => opts[:lhost],
59+
:lport => opts[:lport].to_i,
6060
:uri => uri,
6161
:comm_timeout => datastore['SessionCommunicationTimeout'].to_i,
6262
:retry_total => datastore['SessionRetryTotal'].to_i,

0 commit comments

Comments
 (0)