Re: Nmap results in spread*** format
From: Eric Paynter (eric_at_arcticbears.com)
Date: 06/15/04
- Previous message: brownsec_at_hotmail.com: "Database Scanners"
- In reply to: Bill Z.: "Re: Nmap results in spread*** format"
- Next in thread: Bill Z.: "Re: Nmap results in spread*** format"
- Reply: Bill Z.: "Re: Nmap results in spread*** format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 15 Jun 2004 12:14:32 -0700 (PDT) To: pen-test@securityfocus.com
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.xls
Although 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
- Previous message: brownsec_at_hotmail.com: "Database Scanners"
- In reply to: Bill Z.: "Re: Nmap results in spread*** format"
- Next in thread: Bill Z.: "Re: Nmap results in spread*** format"
- Reply: Bill Z.: "Re: Nmap results in spread*** format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]