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

Minor fixes 2

six2dezce2ac7d3c375
diff --git a/reconftw.sh b/reconftw.sh
index 1315a42..a17408c 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -235,11 +235,11 @@ subdomains_full(){
NUMOFLINES_probed=$(wc -l < ${domain}_probed.txt)
fi
printf "${bblue}\n Final results: ${reset}\n"
- printf "${bred}\n - ${NUMOFLINES_subs} alive subdomains${reset}\n\n" | notify -silent
+ printf "${bred}\n - ${NUMOFLINES_subs} alive subdomains${reset}\n\n" | tee notify -silent
eval cat ${domain}_subdomains.txt $DEBUG_ERROR | sort
- printf "${bred}\n - ${NUMOFLINES_probed} web probed${reset}\n\n" | notify -silent
+ printf "${bred}\n - ${NUMOFLINES_probed} web probed${reset}\n\n" | tee notify -silent
eval cat ${domain}_probed.txt $DEBUG_ERROR | sort
- printf "${bblue}\n Subdomain Enumeration Finished\n" | notify -silent
+ printf "${bblue}\n Subdomain Enumeration Finished\n" | tee notify -silent
printf "${bblue} Results are saved in ${domain}_subdomains.txt and ${domain}_probed.txt${reset}\n"
printf "${bgreen}#######################################################################\n\n"
}
@@ -291,9 +291,9 @@ sub_crt(){
eval rm ${outputfile}.txt $DEBUG_ERROR
cd $dir
if [ "$FULLSCOPE" = true ] ; then
- curl "https://tls.bufferover.run/dns?q=${domain}" 2>/dev/null | jq -r .Results[] | cut -d ',' -f3 | sort -u | anew -q crtsh_subs.txt
+ eval curl "https://tls.bufferover.run/dns?q=${domain}" $DEBUG_ERROR | eval jq -r .Results[] $DEBUG_ERROR | cut -d ',' -f3 | sort -u | anew -q crtsh_subs.txt
else
- curl "https://tls.bufferover.run/dns?q=${domain}" 2>/dev/null | jq -r .Results[] | cut -d ',' -f3 | sort -u | grep -F ".$domain" | anew -q crtsh_subs.txt
+ eval curl "https://tls.bufferover.run/dns?q=${domain}" $DEBUG_ERROR | eval jq -r .Results[] $DEBUG_ERROR | cut -d ',' -f3 | sort -u | grep -F ".$domain" | anew -q crtsh_subs.txt
fi
NUMOFLINES=$(wc -l < crtsh_subs.txt)
end=`date +%s`
@@ -438,7 +438,7 @@ subtakeover(){
else
NUMOFLINES=0
fi
- printf "${bred}\n Subtko: ${NUMOFLINES} subdomains in ${runtime}${reset}\n\n" | notify -silent
+ printf "${bred}\n Subtko: ${NUMOFLINES} subdomains in ${runtime}${reset}\n\n" | tee notify -silent
eval cat ${domain}_takeover.txt $DEBUG_ERROR
printf "${bblue}\n Subdomain Takeover Finished\n"
printf "${bblue} Results are saved in ${domain}_takeover.txt${reset}\n"
@@ -535,7 +535,7 @@ nuclei_check(){
printf "\n\n"
end=`date +%s`
getElapsedTime $start $end
- printf "${bblue}\n Nuclei Scan Finished in ${runtime}\n" | notify -silent
+ printf "${bblue}\n Nuclei Scan Finished in ${runtime}\n" | tee notify -silent
printf "${bblue} Results are saved in ${domain}_nuclei_*.txt files${reset}\n"
printf "${bgreen}#######################################################################\n\n"
else
@@ -571,8 +571,8 @@ urlchecks(){
end=`date +%s`
getElapsedTime $start $end
NUMOFLINES=$(wc -l < ${domain}_url_extract.txt)
- printf "${bblue}\n URL Extraction Finished\n" | notify -silent
- printf "${bblue}\n ${NUMOFLINES} in ${runtime}\n" | notify -silent
+ printf "${bblue}\n URL Extraction Finished\n" | tee notify -silent
+ printf "${bblue}\n ${NUMOFLINES} in ${runtime}\n" | tee notify -silent
printf "${bblue} Results are saved in ${domain}_url_extract.txt${reset}\n"
printf "${bgreen}#######################################################################\n\n"
else
@@ -1006,7 +1006,7 @@ end(){
global_end=`date +%s`
getElapsedTime $global_start $global_end
printf "${bgreen}#######################################################################\n"
- printf "${bred} Finished Recon on: ${domain} under ${finaldir} in: ${runtime} ${reset}\n" | notify -silent
+ printf "${bred} Finished Recon on: ${domain} under ${finaldir} in: ${runtime} ${reset}\n" | tee notify -silent
printf "${bgreen}#######################################################################\n"
}