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

Adding optional tools reinstall/upgrading

six2dez9743d7cf9ed7
diff --git a/install.sh b/install.sh
index 5591c1e..94c9563 100755
--- a/install.sh
+++ b/install.sh
@@ -47,7 +47,7 @@ fi
declare -A gotools
gotools["gf"]="go install -v github.com/tomnomnom/gf@latest"
gotools["qsreplace"]="go install -v github.com/tomnomnom/qsreplace@latest"
-gotools["Amass"]="go install -v github.com/OWASP/Amass/v3/[email protected]"
+gotools["amass"]="go install -v github.com/OWASP/Amass/v3/[email protected]"
gotools["ffuf"]="go install -v github.com/ffuf/ffuf@latest"
gotools["github-subdomains"]="go install -v github.com/gwen001/github-subdomains@latest"
gotools["gitlab-subdomains"]="go install github.com/gwen001/gitlab-subdomains@latest"
@@ -427,6 +427,12 @@ go env -w GO111MODULE=auto
go_step=0
for gotool in "${!gotools[@]}"; do
go_step=$((go_step + 1))
+ if [ "$upgrade_tools" = "false" ]; then
+ res=$(command -v "$gotool") && {
+ echo -e "[${yellow}SKIPPING${reset}] $gotool already installed in...${blue}${res}${reset}"
+ continue
+ }
+ fi
eval ${gotools[$gotool]} $DEBUG_STD
exit_status=$?
if [ $exit_status -eq 0 ]
@@ -457,6 +463,18 @@ eval $SUDO ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit $DEBUG
repos_step=0
for repo in "${!repos[@]}"; do
repos_step=$((repos_step + 1))
+ if [ "$upgrade_tools" = "false" ]; then
+ unset is_installed
+ unset is_need_dl
+ [[ $repo == "Gf-Patterns" ]] && is_need_dl=1
+ [[ $repo == "gf" ]] && is_need_dl=1
+ res=$(command -v "$repo") && is_installed=1
+ [[ -z $is_need_dl ]] && [[ -n $is_installed ]] && {
+ # HERE: not installed yet.
+ echo -e "[${yellow}SKIPPING${reset}] $repo already installed in...${blue}${res}${reset}"
+ continue
+ }
+ fi
eval git clone https://github.com/${repos[$repo]} $dir/$repo $DEBUG_STD
eval cd $dir/$repo $DEBUG_STD
eval git pull $DEBUG_STD
@@ -468,18 +486,18 @@ for repo in "${!repos[@]}"; do
printf "${red} Unable to install $repo, try manually (${repos_step}/${#repos[@]})${reset}\n"
double_check=true
fi
- if [ -s "requirements.txt" ]; then
- eval $SUDO pip3 install -r requirements.txt $DEBUG_STD
- #eval $SUDO python3 setup.py install --record files.txt $DEBUG_STD
- #[ -s "files.txt" ] && eval xargs rm -rf < files.txt $DEBUG_STD
- #eval $SUDO pip3 install . $DEBUG_STD
- fi
- if [ -s "setup.py" ]; then
- eval $SUDO pip3 install . $DEBUG_STD
+ if ( [ -z $is_installed ] && [ "$upgrade_tools" = "false" ] ) || [ "$upgrade_tools" = "true" ] ; then
+ if [ -s "requirements.txt" ]; then
+ eval $SUDO pip3 install -r requirements.txt $DEBUG_STD
+ fi
+ if [ -s "setup.py" ]; then
+ eval $SUDO pip3 install . $DEBUG_STD
+ fi
+ if [ "massdns" = "$repo" ]; then
+ eval make $DEBUG_STD && strip -s bin/massdns && eval $SUDO cp bin/massdns /usr/local/bin/ $DEBUG_ERROR
+ fi
fi
- if [ "massdns" = "$repo" ]; then
- eval make $DEBUG_STD && strip -s bin/massdns && eval $SUDO cp bin/massdns /usr/local/bin/ $DEBUG_ERROR
- elif [ "gf" = "$repo" ]; then
+ if [ "gf" = "$repo" ]; then
eval cp -r examples ~/.gf $DEBUG_ERROR
elif [ "Gf-Patterns" = "$repo" ]; then
eval mv ./*.json ~/.gf $DEBUG_ERROR
diff --git a/reconftw.cfg b/reconftw.cfg
index 4962f2d..5f3da12 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -13,6 +13,7 @@ resolvers_url="https://raw.githubusercontent.com/trickest/resolvers/main/resolve
resolvers_trusted_url="https://raw.githubusercontent.com/six2dez/resolvers_reconftw/main/resolvers_trusted.txt"
proxy_url="http://127.0.0.1:8080/" # Proxy url
install_golang=true # Set it to false if you already have Golang configured and ready
+upgrade_tools=true
#dir_output=/custom/output/path
# Golang Vars (Comment or change on your own)