Changeset 368


Ignore:
Timestamp:
03/31/2010 12:35:10 PM (3 years ago)
Author:
sullo
Message:

Update to remove quotes from NBE output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/nikto_report_nbe.plugin

    r365 r368  
    2323sub nikto_report_nbe_init { 
    2424    my $id = { name          => "report_nbe", 
    25                full_name     => "CSV reports", 
     25               full_name     => "NBE reports", 
    2626               author        => "Seccbus", 
    2727               description   => "Produces a NBE report.", 
     
    4141 
    4242    # Write header 
    43     print OUT 
    44       "\"timestamps\"|\"network\"|\"host\"|\"port\"|\"nikto_id\"|\"prio\"|\"$NIKTO{'name'} v$NIKTO{'version'}/$NIKTO{'core_version'}\"\n"; 
     43    print OUT "timestamps|network|host|port|nikto_id|prio|$NIKTO{'name'} v$NIKTO{'version'}/$NIKTO{'core_version'}\n"; 
    4544    return OUT; 
    4645} 
     
    5453            $network = $1; 
    5554        } 
    56         $line .= "\"results\"|"; 
    57         $line .= "\"$network\"|"; 
    58         $line .= "\"$item->{'mark'}->{'hostname'}\"|"; 
    59         $line .= "\"$item->{'mark'}->{'port'}\"|"; 
    60         $line .= "\"$item->{'nikto_id'}\"|"; 
    61         $line .= "\"Security Warning\"|"; 
    62         $line .= "\""; 
    63         if ($item->{'osvdb'})  { $line .= "OSVDB-$item->{'osvdb'}: " } 
    64         if ($item->{'method'}) { $line .= "$item->{'method'} " } 
    65         if ($uri)              { $line .= "${'uri'}: " } 
    66         $line .= $item->{'message'}; 
    67         $line .= "\""; 
    68         print $handle "$line\n"; 
     55       $line.="results|"; 
     56       $line.="$network|"; 
     57       $line.="$item->{'mark'}->{'hostname'}|"; 
     58       $line.="$item->{'mark'}->{'port'}|"; 
     59       $line.="$item->{'nikto_id'}|"; 
     60       $line.="Security Warning|"; 
     61       if ($item->{'osvdb'})  { $line.="OSVDB-$item->{'osvdb'}: " }; 
     62       if ($item->{'method'}) { $line.="$item->{'method'} " }; 
     63       if ($uri)            { $line.="${'uri'}: " }; 
     64       $line.=$item->{'message'}; 
     65       print $handle "$line\n"; 
    6966    } 
    7067} 
Note: See TracChangeset for help on using the changeset viewer.