#!perlenv -w
#---------------------------------------------------------
# nessus-stable - nessus service table
# David J Kyger - April 27, 2003
# Used to create a table that provides service and banner
# information for each IP in a NessusWX export file.
#---------------------------------------------------------
use strict;
my $style = "";
my $header = "
|
IP Address/
Hostname
|
Ports Identified
|
System/Services
Identification
|
";
my $tablecolumn1astart = "
|
";
my $tablecolumn1end = "
|
";
my $tablecolumn2start = "
";
my $tablecolumn2end = "
|
";
my $tablecolumn3start = "
";
my $tablecolumn3end = "
|
";
my $servicestart = "
|
";
my $serviceend = "
|
";
my $bannerstart = "
";
my $bannerend = "
|
";
my ( $port, $uniqip, $longip );
my ( @nessusdata, @ports, @ips, @uniqip, @splitip, @rearranged );
my %longips;
my $nessusdata = $ARGV[0];
my $num = 256;
my $count = 0;
my $bannerplace = 0;
my $allbanners;
my @allbanners;
my @osreport;
my $os;
if ( $#ARGV < 1 ) {
print "usage: stable
";