Home page logo

nmap-dev logo Nmap Development mailing list archives

[NSE] http library patch
From: Patrik Karlsson <patrik () cqure net>
Date: Wed, 2 Nov 2011 11:07:00 +0100

Hi all,

I've noticed that the scripts collecting information from the Citrix XML
service sometimes fail.
The reason for this is that there's no CRLF after the chunked-data in the
I would therefore like to commit the following patch that changes the
behavior of the library to just print a warning if it detects this error
instead of aborting.

--- nselib/http.lua (revision 26971)
+++ nselib/http.lua (working copy)
@@ -493,7 +493,7 @@

     line, partial = recv_line(s, partial)
     if not line then
-      return nil, string.format("Didn't find CRLF after chunk-data.")
+      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)

Before I do commit it, I just wanted to do a quick check whether there's a
reason not to do this?

Patrik Karlsson
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]