Changeset 500


Ignore:
Timestamp:
08/10/2010 02:10:02 AM (3 years ago)
Author:
sullo
Message:

Fix for #172, Status reports differ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/nikto_tests.plugin

    r483 r500  
    4444sub nikto_tests { 
    4545    my ($mark, $parameters) = @_; 
    46     my $progress = 0; 
    4746 
    4847    # this is the actual the looped code for all the checks 
     
    160159        if ($OUTPUT{'progress'}) { 
    161160            if ($parameters->{'report'}) { 
    162                 $progress++; 
    163                 if (($progress % $parameters->{'report'}) == 0) { 
    164                     my $line = sprintf("- Tests completed: %d %.0f%%", 
    165                                        $progress, ($progress / $NIKTO{total_checks}) * 100); 
     161                if (($NIKTO{'totalrequests'} % $parameters->{'report'}) == 0) { 
     162                    my $line = sprintf("- Completed: %d tests, approximately %.0f%% complete", $NIKTO{'totalrequests'},  
     163                                       ($NIKTO{'totalrequests'} / ($NIKTO{'total_checks'} * $NIKTO{'total_targets'}) * 100)); 
    166164                    nprint($line); 
    167165                } 
Note: See TracChangeset for help on using the changeset viewer.