Nmap Development mailing list archives

[NSE Patch] Minor fix for showHTMLTitle.nse


From: Sven Klemm <sven () c3d2 de>
Date: Thu, 14 Jun 2007 10:19:58 +0200

Hi

the showHTMLTitle.nse script has 2 Spaces after the "/" of the GET
command. Lighttpd does not like it and always answers with 400 Bad
Request to this request. Removing one space fixes this.

Cheers
Sven
Index: scripts/showHTMLTitle.nse
===================================================================
--- scripts/showHTMLTitle.nse   (revision 4911)
+++ scripts/showHTMLTitle.nse   (working copy)
@@ -27,7 +27,7 @@
        socket = nmap.new_socket()
 
        socket:connect(host.ip, port.number)
-       request = "GET /  HTTP/1.0\r\n\r\n"
+       request = "GET / HTTP/1.0\r\n\r\n"
        socket:send(request)
 
        result = ""

Attachment: signature.asc
Description: OpenPGP digital signature


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: