Penetration Testing mailing list archives
Re: Nmap results in spreadsheet format
From: "Bill Z." <bgk () hotunix com>
Date: Thu, 17 Jun 2004 11:00:57 -0400 (EDT)
About missing html closing tags, as long as you have </table> the result should be fine with any resonably recent versions of browsers (because a <td> or <tr> implies the closing of the previous <td> or <tr>). And, I only used ONE command (note the blackslash), so it doesn't make sense that the redirect "only applied to the LAST command". Plus, you have THREE commands to run (in a script). :=) -- What do you call a failed pentest? - VA. http://hotunix.com/tools/ On Tue, 15 Jun 2004, Eric Paynter wrote:
On Mon, June 14, 2004 11:22 am, Bill Z. said:This is a simple task - here's my quick and dirty way of converting the plain-text nmap output (e.g., nmap-out) into an Excel file with html tags: echo "<table>" ; grep "^[0-9*]" nmap-out | awk '{print "<tr><td>" $1 \ "<td>" $2 "<td>" $3}'; echo "</table>" > nmap-out.xlsAlthough the </td> and </tr> tags are optional in the HTML spec, I've seen some browsers do funny things without them. I prefer to include them just to be safe. Also, with my shell, the redirect to nmap-out.xls only applied to the last command. The following fixes both potential problems, making the example more portable: echo "<table>" > nmap-out.xls grep "^[0-9*]" nmap-out | awk '{print "<tr><td>" $1 \ "</td><td>" $2 "</td><td>" $3 "</td></tr>"}' >> nmap-out.xls echo "</table>" >> nmap-out.xls -Eric -- arctic bears - affordable email and name services @yourdomain.com http://www.arcticbears.com
Current thread:
- RE: Hacking Demo and Test Lab, (continued)
- RE: Hacking Demo and Test Lab Victor Chapela (Jun 11)
- Nmap results in spreadsheet format Jerry Shenk (Jun 14)
- Re: Nmap results in spreadsheet format James Davis (Jun 14)
- RE: Nmap results in spreadsheet format Chuck Fullerton (Jun 14)
- RE: Nmap results in spreadsheet format R. DuFresne (Jun 15)
- Re: Nmap results in spreadsheet format Denis Solaro (Jun 14)
- Re: Nmap results in spreadsheet format Serg B. (Jun 14)
- Re: Nmap results in spreadsheet format Bill Z. (Jun 15)
- RE: Nmap results in spreadsheet format Hasnain Atique (Jun 15)
- Re: Nmap results in spreadsheet format Eric Paynter (Jun 16)
- Re: Nmap results in spreadsheet format Bill Z. (Jun 17)
- Re: Nmap results in spreadsheet format Eric Paynter (Jun 17)
- Re: Nmap results in spreadsheet format Bill Z. (Jun 19)
- Nmap results in spreadsheet format Jerry Shenk (Jun 14)
- RE: Hacking Demo and Test Lab Victor Chapela (Jun 11)
- Re: Hacking Demo and Test Lab s b (Jun 15)
- Re: Hacking Demo and Test Lab Mr Harry! (Jun 14)