Changeset 616
- Timestamp:
- 01/31/2011 09:12:21 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
docs/CHANGES.txt (modified) (1 diff)
-
nikto.pl (modified) (1 diff)
-
plugins/nikto_core.plugin (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/CHANGES.txt
r614 r616 22 22 - Ticket 155: -findonly is deprecated in favor of -Plugins "@@NONE" (-f will replicate this functionality) 23 23 - Ticket 82: Auth is now checked per realm, not per resource 24 - Not all udb* files were loaded properly 25 - Server name not properly printed in update/submission output 24 26 - Created $mark->{'components'} to store server build items instead of @BUILDITEMS 25 27 - Variable consolidation & memory usage cleanup -
trunk/nikto.pl
r611 r616 49 49 $VARIABLES{'name'} = "Nikto"; 50 50 $VARIABLES{'version'} = "2.1.3"; 51 $VARIABLES{'configfile'} = "/etc/nikto.conf"; ### Change this lineif it's having trouble finding it52 53 # put asignal trap so we can close down reports properly51 $VARIABLES{'configfile'} = "/etc/nikto.conf"; ### Change if it's having trouble finding it 52 53 # signal trap so we can close down reports properly 54 54 $SIG{'INT'} = \&safe_quit; 55 55 56 # read the --config option56 # read just the --config option 57 57 { 58 58 my %optcfg; -
trunk/plugins/nikto_core.plugin
r615 r616 1628 1628 my $code_updates = 0; 1629 1629 my $serverdir = "/nikto/UPDATES/$VARIABLES{'version'}"; 1630 my $server = "CIRT.net"; 1630 1631 1631 1632 # set up our mark 1632 my %mark = ('ident' => ' cirt.net',1633 my %mark = ('ident' => 'www.cirt.net', 1633 1634 'ssl' => 0, 1634 1635 'port' => 80 … … 1646 1647 } 1647 1648 } 1648 ($mark{'hostname'}, $mark{'ip'}, $mark{'display_name'}) = resolve(' cirt.net');1649 ($mark{'hostname'}, $mark{'ip'}, $mark{'display_name'}) = resolve('www.cirt.net'); 1649 1650 1650 1651 # retrieve versions file … … 2387 2388 "\n 2388 2389 ********************************************************************* 2389 Portions of the server's ident string($updated_version) are not in2390 the Nikto database or isnewer than the known string. Would you like2390 Portions of the server's headers ($updated_version) are not in 2391 the Nikto database or are newer than the known string. Would you like 2391 2392 to submit this information (*no server specific data*) to CIRT.net 2392 2393 for a Nikto update (or you may email to sullo\@cirt.net) (y/n)? ", "" … … 2409 2410 } 2410 2411 2411 ($mark{'hostname'}, $mark{'ip'}, $mark{'display_name'}) = resolve(' cirt.net');2412 ($mark{'hostname'}, $mark{'ip'}, $mark{'display_name'}) = resolve('www.cirt.net'); 2412 2413 2413 2414 ($RES, $CONTENT) = nfetch(\%mark, "/cgi-bin/versions?DATA=$updated_version", "GET"); … … 2428 2429 2429 2430 if ($CONTENT !~ /SUCCESS/) { 2430 nprint("+ ERROR: ($RES, $CONTENT): Unable to send update info to cirt.net");2431 nprint("+ ERROR: ($RES, $CONTENT): Unable to send update info to CIRT.net"); 2431 2432 } 2432 2433 else { … … 2512 2513 x Reverse Tuning Options (i.e., include all except specified) 2513 2514 -useproxy Use the proxy defined in nikto.conf 2514 -update Update databases and plugins from cirt.net2515 -update Update databases and plugins from CIRT.net 2515 2516 -vhost+ Virtual host (for Host header) 2516 2517 -Version Print plugin and database versions … … 2543 2544 -timeout+ Timeout (default 2 seconds) 2544 2545 -Tuning+ Scan tuning 2545 -update Update databases and plugins from cirt.net2546 -update Update databases and plugins from CIRT.net 2546 2547 -vhost+ Virtual host (for Host header) 2547 2548 -Version Print plugin and database versions … … 2587 2588 } 2588 2589 } 2590 close(IN); 2591 2592 # and now the udb_* file 2593 $filename = "$CONFIGFILE{PLUGINDIR}/u" . $dbname; 2594 if (open(IN, "<$filename")) { 2595 while (<IN>) { 2596 chomp; 2597 s/\#.*$//; 2598 if ($_ eq "") { next; } 2599 # contents; so split them up and apply to hash 2600 my @contents = parse_csv($_); 2601 my $hashref = {}; 2602 for (my $i = 0 ; $i <= $#contents ; $i++) { 2603 $hashref->{ $headers[$i] } = $contents[$i]; 2604 } 2605 push(@dbarray, $hashref); 2606 } 2607 } 2608 close(IN); 2609 2589 2610 return \@dbarray; 2590 2611 }
Note: See TracChangeset
for help on using the changeset viewer.