From b66a4849c446e6bdf99059f89159e3da5aa4f536 Mon Sep 17 00:00:00 2001 From: patrik Date: Mon, 7 Nov 2011 06:04:13 +0000 Subject: [PATCH] o [NSE] Modified the http library to support servers that don't return valid chunked encoded data, such as the Citrix XML service. [Patrik] --- CHANGELOG | 3 +++ nselib/http.lua | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index d50c24e99..2f6db054b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ # Nmap Changelog ($Id$); -*-text-*- +o [NSE] Modified the http library to support servers that don't return valid + chunked encoded data, such as the Citrix XML service. [Patrik] + o [NSE] Added brute scripts rlogin-brute and rexec-brute for the rlogin and rexec services [Patrik] diff --git a/nselib/http.lua b/nselib/http.lua index c44184e14..3b29f0778 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -493,7 +493,9 @@ local function recv_chunked(s, partial) line, partial = recv_line(s, partial) if not line then - return nil, string.format("Didn't find CRLF after chunk-data.") + -- this warning message was initially an error but was adapted + -- to support broken servers, such as the Citrix XML Service + stdnse.print_debug(2, "Didn't find CRLF after chunk-data.") elseif not string.match(line, "^\r?\n") then return nil, string.format("Didn't find CRLF after chunk-data; got %q.", line) end