Changeset 93
- Timestamp:
- 01/21/09 22:47:13 (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
config.txt (modified) (1 diff)
-
nikto.pl (modified) (2 diffs)
-
plugins/nikto_core.plugin (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.txt
r87 r93 58 58 # an HTTP(s) server is running. Some web servers, such as the autopsy web 59 59 # server do not implement the HEAD method 60 CHECKMETHODS=HEAD GET60 #CHECKMETHODS=HEAD GET -
trunk/nikto.pl
r92 r93 197 197 foreach my $c (@t) { push(@ARGV, $c); } 198 198 } 199 200 # Check for necessary config items 201 check_config_defined("CHECKMETHODS", "HEAD"); 202 199 203 return; 200 204 } … … 252 256 return; 253 257 } 254 ################################################################################# 258 259 ###################################################################### 260 ## check_config_defined(item, default) 261 ## Checks whether config has been set, warns and sets to a default 262 sub 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 2306 2306 push(@RESULTS,$resulthash); 2307 2307 } 2308 2309 2308 ####################################################################### 2310 2309 sub nikto_core { return; } # trap for this plugin being called to run. lame.
Note: See TracChangeset
for help on using the changeset viewer.