Nmap Development mailing list archives
Bug in script pipe output
From: David Fifield <david () bamsoftware com>
Date: Fri, 17 Sep 2010 16:02:43 -0700
Hi, I found a bug in script output. If the output contains a legitimate "| " sequence, the code in formatScriptOutput thinks that it is the beginning mark of the last line and replaces it with "|_". I found it in this scan: # nmap --script=html-title www.mscd.edu -p80 Starting Nmap 5.35DC18 ( http://nmap.org ) at 2010-09-17 15:58 PDT Nmap scan report for www.mscd.edu (147.153.45.41) Host is up (0.063s latency). PORT STATE SERVICE 80/tcp open http | html-title: Where Success Begins With You |_Metropolitan State College of ... Nmap done: 1 IP address (1 host up) scanned in 0.89 seconds The pipe is supposed to be part of the title, as you can see by going to the web page. Does someone want to take a shot a fixing this? I think it will be easier to iterate over the output lines one at a time and add the special marker on the last iteration rather than trying to patch it up afterward. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Bug in script pipe output David Fifield (Sep 17)
- Leading newlines in script output David Fifield (Sep 29)
- Re: Leading newlines in script output Kris Katterjohn (Sep 29)
- Re: Leading newlines in script output David Fifield (Sep 29)
- Re: Leading newlines in script output Tom Sellers (Sep 30)
- Re: Leading newlines in script output Kris Katterjohn (Sep 29)
- Leading newlines in script output David Fifield (Sep 29)