Skip to content

Commit af6b061

Browse files
David MaloneyDavid Maloney
authored andcommitted
fix pipelining
winrm is unforgiving of pipelining from non ntlm requests into the challenge response cycle. we must clear our initial tcp session before starting ntlm auth for winrm
1 parent 44d4e29 commit af6b061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rex/proto/http/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def digest_auth(opts={})
463463
r = request_cgi(opts.merge({
464464
'uri' => path,
465465
'method' => method }))
466-
resp = _send_recv(r, to, true)
466+
resp = _send_recv(r, to)
467467
unless resp.kind_of? Rex::Proto::Http::Response
468468
return nil
469469
end
@@ -610,7 +610,7 @@ def negotiate_auth(opts={})
610610
# First request to get the challenge
611611
opts['headers']['Authorization'] = ntlm_message_1
612612
r = request_cgi(opts)
613-
resp = _send_recv(r, to, true)
613+
resp = _send_recv(r, to)
614614
unless resp.kind_of? Rex::Proto::Http::Response
615615
return nil
616616
end

0 commit comments

Comments
 (0)