1 diff --git a/program/nikto.pl b/program/nikto.pl
2 index 2cb07f9..323e666 100755
5 @@ -243,7 +243,7 @@ sub config_init {
6 # Guess Nikto current directory
7 my $NIKTODIR = abs_path($0);
9 - $NIKTODIR =~ s#[\\/]nikto.pl$##;
10 + $NIKTODIR =~ s#[\\/]bin[\\/]\.nikto-wrapped$##;
12 # Guess user's home directory -- to support Windows
13 foreach my $var (split(/ /, "HOME USERPROFILE")) {
14 @@ -251,10 +251,10 @@ sub config_init {
17 # Read the conf files in order (previous values are over-written with each, if multiple found)
18 - push(@CF, "$NIKTODIR/nikto.conf.default");
19 + push(@CF,"$NIKTODIR/etc/nikto.conf.default");
20 push(@CF, "/etc/nikto.conf");
21 push(@CF, "$home/nikto.conf");
22 - push(@CF, "$NIKTODIR/nikto.conf");
23 + push(@CF,"$NIKTODIR/etc/nikto.conf");
24 push(@CF, "nikto.conf");
25 push(@CF, "$VARIABLES{'configfile'}");