Changeset 500
- Timestamp:
- 08/10/2010 02:10:02 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/plugins/nikto_tests.plugin (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/nikto_tests.plugin
r483 r500 44 44 sub nikto_tests { 45 45 my ($mark, $parameters) = @_; 46 my $progress = 0;47 46 48 47 # this is the actual the looped code for all the checks … … 160 159 if ($OUTPUT{'progress'}) { 161 160 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)); 166 164 nprint($line); 167 165 }
Note: See TracChangeset
for help on using the changeset viewer.