Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Fix new installer 5

six2dez0e82bf832976
diff --git a/install.sh b/install.sh
index d677570..3632585 100755
--- a/install.sh
+++ b/install.sh
@@ -118,28 +118,14 @@ if [[ $(eval type go $DEBUG_ERROR | grep -o 'go is') == "go is" ]] && [ "$versio
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
-if [ -f ~/.bashrc ] && [ "$golang_installed" = false ]
-then
-cat << EOF >> ~/.bashrc
+cat << EOF >> ~/${profile_shell}
# Golang vars
export GOROOT=/usr/local/go
export GOPATH=\$HOME/go
export PATH=\$GOPATH/bin:\$GOROOT/bin:\$HOME/.local/bin:\$PATH
EOF
-fi
-if [ -f ~/.zshrc ] && [ $golang_installed = false ]
-then
-cat << EOF >> ~/.zshrc
-
-# Golang vars
-export GOROOT=/usr/local/go
-export GOPATH=\$HOME/go
-export PATH=\$GOPATH/bin:\$GOROOT/bin:\$HOME/.local/bin:\$PATH
-EOF
-fi
-printf "${bgreen} Golang installed${reset}\n"
fi
[ -n "$GOPATH" ] || { printf "${bred} GOPATH env var not detected, add Golang env vars to your \$HOME/.bashrc or \$HOME/.zshrc:\n\n export GOROOT=/usr/local/go\n export GOPATH=\$HOME/go\n export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH\n\n"; exit 1; }
diff --git a/reconftw.cfg b/reconftw.cfg
index beefef4..db1ef8d 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -17,6 +17,12 @@ tools=~/Tools
NPROC=$(nproc || echo -n 1)
output=${dir}/Recon/${domain}
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
+profile_shell=".$(basename $(echo $SHELL))rc"
+
+# Golang Vars (Comment or change on your own)
+export GOROOT=/usr/local/go
+export GOPATH=$HOME/go
+export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
# Tools config files
#NOTIFY_CONFIG=~/.config/notify/notify.conf # No need to define