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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
Adding optional tools reinstall/upgrading
six2dez9743d7cf9ed7
diff --git a/install.sh b/install.shindex 5591c1e..94c9563 100755--- a/install.sh+++ b/install.sh@@ -47,7 +47,7 @@ fideclare -A gotoolsgotools["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=autogo_step=0for gotool in "${!gotools[@]}"; dogo_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+ }+ fieval ${gotools[$gotool]} $DEBUG_STDexit_status=$?if [ $exit_status -eq 0 ]@@ -457,6 +463,18 @@ eval $SUDO ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit $DEBUGrepos_step=0for repo in "${!repos[@]}"; dorepos_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+ }+ fieval git clone https://github.com/${repos[$repo]} $dir/$repo $DEBUG_STDeval cd $dir/$repo $DEBUG_STDeval git pull $DEBUG_STD@@ -468,18 +486,18 @@ for repo in "${!repos[@]}"; doprintf "${red} Unable to install $repo, try manually (${repos_step}/${#repos[@]})${reset}\n"double_check=truefi- 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+ fifi- 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" ]; theneval cp -r examples ~/.gf $DEBUG_ERRORelif [ "Gf-Patterns" = "$repo" ]; theneval mv ./*.json ~/.gf $DEBUG_ERRORdiff --git a/reconftw.cfg b/reconftw.cfgindex 4962f2d..5f3da12 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -13,6 +13,7 @@ resolvers_url="https://raw.githubusercontent.com/trickest/resolvers/main/resolveresolvers_trusted_url="https://raw.githubusercontent.com/six2dez/resolvers_reconftw/main/resolvers_trusted.txt"proxy_url="http://127.0.0.1:8080/" # Proxy urlinstall_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)