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 IP/cidr detection

six2deza932db036093
diff --git a/reconftw.sh b/reconftw.sh
index e0bc7fd..8b0382e 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1444,7 +1444,7 @@ function ipcidr_detection(){
}
function ipcidr_target(){
- ipcidr_detection $1 | cut -d' ' -f3 | unfurl -u domains 2>>"$LOGFILE" | sed 's/\.$//' | sort -u > ./target_reconftw_ipcidr.txt
+ ipcidr_detection $1 | cut -d' ' -f3 | unfurl -u domains 2>/dev/null | sed 's/\.$//' | sort -u > ./target_reconftw_ipcidr.txt
if [[ $(cat ./target_reconftw_ipcidr.txt | wc -l) -eq 1 ]]; then
domain=$(cat ./target_reconftw_ipcidr.txt)
elif [[ $(cat ./target_reconftw_ipcidr.txt | wc -l) -gt 1 ]]; then
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index 9e8d80a..7792a28 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -1471,7 +1471,7 @@ function ipcidr_detection(){
}
function ipcidr_target(){
- ipcidr_detection $1 | cut -d' ' -f3 | unfurl -u domains 2>>"$LOGFILE" | sed 's/\.$//' | sort -u > ./target_reconftw_ipcidr.txt
+ ipcidr_detection $1 | cut -d' ' -f3 | unfurl -u domains 2>/dev/null | sed 's/\.$//' | sort -u > ./target_reconftw_ipcidr.txt
if [[ $(cat ./target_reconftw_ipcidr.txt | wc -l) -eq 1 ]]; then
domain=$(cat ./target_reconftw_ipcidr.txt)
elif [[ $(cat ./target_reconftw_ipcidr.txt | wc -l) -gt 1 ]]; then