Changeset 385
- Timestamp:
- 04/09/2010 07:35:53 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
docs/CHANGES.txt (modified) (1 diff)
-
plugins/nikto_core.plugin (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/CHANGES.txt
r373 r385 1 2010-04-09 2 - Ticket 143: Added -ask to override nikto.conf's UPDATES value (same options) 1 3 2010-04-01 2 4 - Ticket 134: Added documentation of -config to usage_short -
trunk/plugins/nikto_core.plugin
r384 r385 524 524 "Version" => \$CLI{'version'}, 525 525 "Plugins=s" => \$CLI{'plugins'}, 526 "list-plugins" => \$CLI{'list-plugins'} 526 "list-plugins" => \$CLI{'list-plugins'}, 527 "ask=s" => \$CLI{'ask'} 527 528 ) or usage(0); 528 529 … … 534 535 # output file 535 536 if (!defined $CLI{'format'}) { 537 536 538 # Check what output has 537 539 $CLI{'format'} = "none"; … … 556 558 557 559 # verify readable dtd 558 if ($CLI{'format'} eq 'xml' && !-r $NIKTOCONFIG{ NIKTODTD}) {560 if ($CLI{'format'} eq 'xml' && !-r $NIKTOCONFIG{'NIKTODTD'}) { 559 561 nprint("+ ERROR: reading DTD"); 560 562 exit; … … 625 627 $CLI{'plugins'} .= ';dictionary(dictionary:' . $CLI{'mutate-opts'} . ')'; 626 628 } 629 } 630 631 # Asking questions? 632 if ($CLI{'ask'} =~ /^(auto|yes|no)$/) { 633 $NIKTOCONFIG{'UPDATES'} = $CLI{'ask'}; # override nikto.conf setting 634 undef($CLI{'ask'}); 627 635 } 628 636 … … 1205 1213 if ($CLI{'nossl'}) { pop(@checktypes); } 1206 1214 1207 foreach my $method (split(/ /, $NIKTOCONFIG{ CHECKMETHODS})) {1215 foreach my $method (split(/ /, $NIKTOCONFIG{'CHECKMETHODS'})) { 1208 1216 $request{'whisker'}->{'method'} = $method; 1209 1217 foreach my $checkssl (@checktypes) { … … 2286 2294 ####################################################################### 2287 2295 sub send_updates { 2288 return if ($NIKTOCONFIG{ UPDATES} !~ /yes|auto/i);2296 return if ($NIKTOCONFIG{'UPDATES'} !~ /yes|auto/i); 2289 2297 2290 2298 my $have_updates = 0; … … 2324 2332 $updated_version =~ s/^\s+//; 2325 2333 2326 if ($NIKTOCONFIG{ UPDATES} eq "auto") {2334 if ($NIKTOCONFIG{'UPDATES'} eq "auto") { 2327 2335 $answer = "y"; 2328 2336 } … … 2385 2393 print " 2386 2394 Options: 2395 -ask+ Whether to ask about submitting updates 2396 yes Ask about each (default) 2397 no Don't ask, don't send 2398 auto Don't ask, just send 2387 2399 -config+ Use this config file 2388 2400 -Cgidirs+ Scan these CGI dirs: 'none', 'all', or values like \"/cgi/ /cgi-a/\" … … 2404 2416 print " -findonly Find http(s) ports only, don't perform a full scan 2405 2417 -Format+ Save file (-o) format: 2406 csv Comma-separated-value2407 htm HTML Format2408 nbe Nessus NBE format2409 txt Plain text (default if not specified)2410 xml XML Format2418 csv Comma-separated-value 2419 htm HTML Format 2420 nbe Nessus NBE format 2421 txt Plain text (default if not specified) 2422 xml XML Format 2411 2423 -host+ Target host 2412 2424 -Help Extended help information
Note: See TracChangeset
for help on using the changeset viewer.