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

Closes #421

six2dezf95005dbb4af
diff --git a/reconftw.cfg b/reconftw.cfg
index b64832e..2300eb1 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -21,6 +21,7 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
#SUBFINDER_CONFIG=~/.config/subfinder/config.yaml # No need to define
AMASS_CONFIG=~/.config/amass/config.ini
GITHUB_TOKENS=${tools}/.github_tokens
+#CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path
# APIs/TOKENS - Uncomment the lines you want removing the '#' at the beginning of the line
#UDORK_COOKIE="c_user=XXXXXXXXXX; xs=XXXXXXXXXXXXXX"
diff --git a/reconftw.sh b/reconftw.sh
index 32875bc..b254173 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -2597,7 +2597,7 @@ while true; do
continue
;;
'-f')
- config_file=$2
+ CUSTOM_CONFIG=$2
shift 2
continue
;;
@@ -2625,8 +2625,8 @@ done
# This is the first thing to do to read in alternate config
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
. "$SCRIPTPATH"/reconftw.cfg
-if [ -s "$config_file" ]; then
- . "${config_file}"
+if [ -s "$CUSTOM_CONFIG" ]; then
+ . "${CUSTOM_CONFIG}"
fi
if [ $opt_deep ]; then