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

prints ips

six2dez05a83c4a3ae1
diff --git a/modules/web.sh b/modules/web.sh
index ab19aa4..2dc78f9 100644
--- a/modules/web.sh
+++ b/modules/web.sh
@@ -437,11 +437,19 @@ function portscan() {
fi
# Display resolved IPs without CDN
- printf "%b\n[%s] Resolved IP addresses (No CDN):%b\n\n" "$bblue" "$(date +'%Y-%m-%d %H:%M:%S')" "$reset"
+ ips_nocdn_count=0
if [[ -s ".tmp/ips_nocdn.txt" ]]; then
- sort ".tmp/ips_nocdn.txt"
+ ips_nocdn_count=$(sort -u ".tmp/ips_nocdn.txt" | wc -l | tr -d ' ')
fi
+ printf "%b\n[%s] Resolved IP addresses (No CDN): %s%b\n" "$bblue" "$(date +'%Y-%m-%d %H:%M:%S')" "$ips_nocdn_count" "$reset"
+ if ((ips_nocdn_count > 0)); then
+ sort -u ".tmp/ips_nocdn.txt"
+ else
+ printf "None\n"
+ fi
+ printf "\n"
+
printf "%b\n[%s] Scanning ports...%b\n\n" "$bblue" "$(date +'%Y-%m-%d %H:%M:%S')" "$reset"
ips_file="${dir}/hosts/ips.txt"