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

fix results duplication

Bilel Eljaamiif440f944f4d1
diff --git a/reconftw.sh b/reconftw.sh
index 21e1236..4467248 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -552,7 +552,7 @@ portscan(){
printf "${bblue}\n Resolved IP addresses (No WAF) ${reset}\n\n";
eval cat .tmp/${domain}_ips_nowaf.txt $DEBUG_ERROR | sort
- if [ "$PORTSCAN_PASSIVE" = true ]
+ if [ "$PORTSCAN_PASSIVE" = true ] && [ ! -f "${domain}_portscan_passive.txt" ]
then
for sub in $(cat .tmp/${domain}_ips_nowaf.txt); do
shodan host $sub 2>/dev/null >> ${domain}_portscan_passive.txt && echo -e "\n\n#######################################################################\n\n" >> ${domain}_portscan_passive.txt