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

Verbose installer, github dorks enabled and fixes

six2dezb0d7bd09b4da
diff --git a/install.sh b/install.sh
index 26ed640..6d4d4a9 100755
--- a/install.sh
+++ b/install.sh
@@ -116,20 +116,6 @@ else
printf "${bgreen} reconFTW is already up to date!${reset}\n\n"
fi
-eval git fetch $DEBUG_STD
-if [ -n "$(git status --porcelain | egrep -v '^\?\?')" ]; then
- printf "${yellow} There is a new version, updating...${reset}\n\n"
- if [ -n "$(git status --porcelain | egrep 'reconftw.cfg$')" ]; then
- mv reconftw.cfg reconftw.cfg_bck
- printf "${yellow} reconftw.cfg has been backed up in reconftw.cfg_bck${reset}\n\n"
- fi
- eval git reset --hard $DEBUG_STD
- eval git pull $DEBUG_STD
- printf "${bgreen} Updated! Running new installer version...${reset}\n\n"
- exec "$0"
- exit 1
-fi
-
printf "${bblue} Running: Installing system packages ${reset}\n\n"
if [ -f /etc/debian_version ]; then install_apt;
elif [ -f /etc/redhat-release ]; then install_yum;
@@ -182,12 +168,21 @@ touch $dir/.github_tokens
eval pip3 install -U -r requirements.txt $DEBUG_STD
-printf "${bblue} Running: Installing Golang tools ${reset}\n\n"
+printf "${bblue} Running: Installing Golang tools (${#gotools[@]})${reset}\n\n"
+go_step=0
for gotool in "${!gotools[@]}"; do
+ go_step=$((go_step + 1))
eval type -P $gotool $DEBUG_STD || { eval ${gotools[$gotool]} $DEBUG_STD; }
+ exit_status=$?
+ if [ $exit_status -eq 0 ]
+ then
+ printf "${yellow} $gotool installed (${go_step}/${#gotools[@]})${reset}\n\n"
+ else
+ printf "${red} Unable to install $gotool, try manually (${go_step}/${#gotools[@]})${reset}\n\n"
+ fi
done
-printf "${bblue} Running: Installing repositories ${reset}\n\n"
+printf "${bblue} Running: Installing repositories (${#repos[@]})${reset}\n\n"
# Repos with special configs
eval git clone https://github.com/projectdiscovery/nuclei-templates ~/nuclei-templates $DEBUG_STD
@@ -197,9 +192,18 @@ eval git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git $dir/sqlmap
eval git clone --depth 1 https://github.com/drwetter/testssl.sh.git $dir/testssl.sh $DEBUG_STD
# Standard repos installation
+repos_step=0
for repo in "${!repos[@]}"; do
+ repos_step=$((repos_step + 1))
eval cd $dir/$repo $DEBUG_STD || { eval git clone https://github.com/${repos[$repo]} $dir/$repo $DEBUG_STD && cd $dir/$repo; }
eval git pull $DEBUG_STD
+ exit_status=$?
+ if [ $exit_status -eq 0 ]
+ then
+ printf "${yellow} $repo installed (${repos_step}/${#repos[@]})${reset}\n\n"
+ else
+ printf "${red} Unable to install $repo, try manually (${repos_step}/${#repos[@]})${reset}\n\n"
+ fi
if [ -s "setup.py" ]; then
eval $SUDO python3 setup.py install $DEBUG_STD
fi
@@ -245,7 +249,7 @@ eval wget -N -c https://raw.githubusercontent.com/xmendez/wfuzz/master/wordlist/
printf "${bblue} Running: Performing last configurations ${reset}\n\n"
## Last steps
-if [ ! -s "resolvers.txt" ]; then
+if [ ! -s "resolvers.txt" ] || [ $(find "resolvers.txt" -mtime +1 -print) ]; then
printf "${yellow} Generating custom resolvers ${reset}\n\n"
eval dnsvalidator -tL https://public-dns.info/nameservers.txt -threads 100 -o resolvers.txt $DEBUG_STD
fi
diff --git a/reconftw.cfg b/reconftw.cfg
index 8a70586..d822614 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -46,9 +46,9 @@ DEBUG_STD="&>/dev/null"
DEBUG_ERROR="2>/dev/null"
# Osint
-OSINT=false
+OSINT=true
GOOGLE_DORKS=true
-GITHUB_DORKS=false
+GITHUB_DORKS=true
METADATA=true
EMAILS=true
DOMAIN_INFO=true
diff --git a/reconftw.sh b/reconftw.sh
index f7b1472..20b5796 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -279,7 +279,7 @@ function subdomains_full(){
if [ "$update_resolvers" = true ]
then
- if [[ $(find "$resolvers" -mtime +100 -print) ]]; then
+ if [[ $(find "$resolvers" -mtime +1 -print) ]]; then
notification "Updating resolvers lists..." warning
eval dnsvalidator -tL https://public-dns.info/nameservers.txt -threads 100 -o $resolvers $DEBUG_STD
fi
@@ -980,8 +980,11 @@ function jschecks(){
cat js/jsfile_links.txt | httpx -follow-redirects -H "${HEADER}" -silent -timeout 15 -threads $HTTPX_THREADS -status-code -retries 2 -no-color | grep "[200]" | cut -d ' ' -f1 | anew -q js/js_livelinks.txt
printf "${yellow} Running : Gathering endpoints 3/5${reset}\n"
interlace -tL js/js_livelinks.txt -threads 10 -c "python3 $tools/LinkFinder/linkfinder.py -d -i _target_ -o cli >> .tmp/js_endpoints.txt" &>/dev/null
- eval sed -i '/^\//!d' .tmp/js_endpoints.txt $DEBUG_STD
- cat .tmp/js_endpoints.txt | anew -q js/js_endpoints.txt.txt
+ if [ -s ".tmp/js_endpoints.txt" ]
+ then
+ eval sed -i '/^\//!d' .tmp/js_endpoints.txt $DEBUG_STD
+ cat .tmp/js_endpoints.txt | anew -q js/js_endpoints.txt.txt
+ fi
printf "${yellow} Running : Gathering secrets 4/5${reset}\n"
cat js/js_livelinks.txt | eval nuclei -silent -t ~/nuclei-templates/exposed-tokens/ -o js/js_secrets.txt $DEBUG_STD
printf "${yellow} Running : Building wordlist 5/5${reset}\n"