[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix to stop nikto.conf being over-ridden by git pull
Browse files Browse the repository at this point in the history
  • Loading branch information
tautology0 committed Feb 27, 2019
1 parent 581205f commit 79225c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions program/nikto.conf → program/nikto.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# CONFIG STUFF
# $Id: config.txt 94 2009-01-21 22:47:25Z deity $
#########################################################################################################
# This is the default config file. If you want to change it, we string suggest you copy it to nikto.conf
# This will top it being over-ridden when you git pull

# default command line options, can't be an option that requires a value. used for ALL runs.
# CLIOPTS=-g -a
Expand Down
5 changes: 4 additions & 1 deletion program/nikto.pl
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,11 @@ sub config_init {
$error = load_config("nikto.conf");
$config_exists = 1 if ($error eq "");

$error = load_config("$NIKTODIR/nikto.conf.default");
$config_exists = 1 if ($error eq "");

if ($config_exists == 0) {
die "- Could not find a valid nikto config file\n";
print "- Could not find a valid nikto config file.\n";
}

return;
Expand Down

0 comments on commit 79225c7

Please sign in to comment.