Skip to content

Commit 6127b8a

Browse files
committed
Pass user-agent
1 parent 8ce5cc2 commit 6127b8a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

modules/auxiliary/scanner/http/ms15_034_http_sys_memory_dump.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,17 @@ def run_host(ip)
179179
ranges = calc_ranges(content_length)
180180

181181
uri = normalize_uri(target_uri.path)
182-
cli = Rex::Proto::Http::Client.new(ip)
182+
cli = Rex::Proto::Http::Client.new(
183+
ip,
184+
rport,
185+
{},
186+
datastore['SSL'],
187+
datastore['SSLVersion'],
188+
nil,
189+
datastore['USERNAME'],
190+
datastore['PASSWORD']
191+
)
192+
cli.set_config('agent' => datastore['UserAgent'])
183193
cli.connect
184194
req = cli.request_raw(
185195
'uri' => target_uri.path,

0 commit comments

Comments
 (0)