We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6e9b12 commit ac79cc9Copy full SHA for ac79cc9
lib/msf/core/payload/transport_config.rb
@@ -83,9 +83,15 @@ def transport_config_reverse_named_pipe(opts={})
83
84
def get_custom_headers(ds)
85
headers = ""
86
- headers << "Host: #{ds['HttpHost']}\r\n" if ds['HttpHost']
87
- headers << "Cookie: #{ds['HttpCookie']}\r\n" if ds['HttpCookie']
88
- headers << "Referer: #{ds['HttpReferer']}\r\n" if ds['HttpReferer']
+ headers << "Host: #{ds['HttpHeaderHost']}\r\n" if ds['HttpHeaderHost']
+ headers << "Cookie: #{ds['HttpHeaderCookie']}\r\n" if ds['HttpHeaderCookie']
+ headers << "Referer: #{ds['HttpHeaderReferer']}\r\n" if ds['HttpHeaderReferer']
89
+
90
+ if headers.length > 0
91
+ headers
92
+ else
93
+ nil
94
+ end
95
end
96
97
def timeout_config(opts={})
0 commit comments