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

PWD removed

six2dez571049f650cc
diff --git a/reconftw.sh b/reconftw.sh
index 13f9125..d7413c6 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -12,6 +12,7 @@ reset='\033[0m'
tools=~/Tools
DEBUG_STD="&>/dev/null"
DEBUG_ERROR="2>/dev/null"
+SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
banner(){
printf "\n${bgreen}"
@@ -35,7 +36,8 @@ start(){
printf "\n\n${bred} No domain or list provided ${reset}\n\n"
exit
fi
- dir=$PWD/Recon/$domain
+
+ dir=$SCRIPTPATH/Recon/$domain
if [ ! -d "$dir" ]
then