1diff --git a/program/nikto.pl b/program/nikto.pl
2index 2cb07f9..323e666 100755
3--- a/program/nikto.pl
4+++ b/program/nikto.pl
5@@ -243,7 +243,7 @@ sub config_init {
6 # Guess Nikto current directory
7 my $NIKTODIR = abs_path($0);
8 chomp($NIKTODIR);
9- $NIKTODIR =~ s#[\\/]nikto.pl$##;
10+ $NIKTODIR =~ s#[\\/]bin[\\/]\.nikto-wrapped$##;
11
12 # Guess user's home directory -- to support Windows
13 foreach my $var (split(/ /, "HOME USERPROFILE")) {
14@@ -251,10 +251,10 @@ sub config_init {
15 }
16
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'}");
26