Changeset 93


Ignore:
Timestamp:
01/21/09 22:47:13 (4 years ago)
Author:
deity
Message:

Update to fix bug #70

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.txt

    r87 r93  
    5858# an HTTP(s) server is running. Some web servers, such as the autopsy web 
    5959# server do not implement the HEAD method 
    60 CHECKMETHODS=HEAD GET 
     60#CHECKMETHODS=HEAD GET 
  • trunk/nikto.pl

    r92 r93  
    197197        foreach my $c (@t) { push(@ARGV, $c); } 
    198198    } 
     199 
     200    # Check for necessary config items 
     201    check_config_defined("CHECKMETHODS", "HEAD"); 
     202 
    199203    return; 
    200204} 
     
    252256    return; 
    253257} 
    254 ################################################################################# 
     258 
     259###################################################################### 
     260## check_config_defined(item, default) 
     261## Checks whether config has been set, warns and sets to a default 
     262sub check_config_defined 
     263{ 
     264   my $item=$_[0]; 
     265   my $default=$_[1]; 
     266  
     267   if (!defined $NIKTOCONFIG{$item}) 
     268   { 
     269      print STDERR "- Warning: $item is not defined in Nikto configuration, setting to \"$default\"\n";  
     270      $NIKTOCONFIG{$item}=$default; 
     271   } 
     272} 
  • trunk/plugins/nikto_core.plugin

    r92 r93  
    23062306   push(@RESULTS,$resulthash); 
    23072307} 
    2308     
    23092308####################################################################### 
    23102309sub nikto_core { return; } # trap for this plugin being called to run. lame. 
Note: See TracChangeset for help on using the changeset viewer.