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
bug/bundler_fix
David Maloney 2013-02-04 16:42:24 -06:00
parent 44d4e298dc
commit af6b0615fb
1 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ class Client
r = request_cgi(opts.merge({
'uri' => path,
'method' => method }))
resp = _send_recv(r, to, true)
resp = _send_recv(r, to)
unless resp.kind_of? Rex::Proto::Http::Response
return nil
end
@ -610,7 +610,7 @@ class Client
# First request to get the challenge
opts['headers']['Authorization'] = ntlm_message_1
r = request_cgi(opts)
resp = _send_recv(r, to, true)
resp = _send_recv(r, to)
unless resp.kind_of? Rex::Proto::Http::Response
return nil
end