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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
Fix IP/CIDR detection
six2dez96700f87e1fa
diff --git a/reconftw.sh b/reconftw.shindex d519b23..2f986eb 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -1463,7 +1463,6 @@ function resolvers_update(){}function ipcidr_detection(){- if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenif [[ $1 =~ /[0-9]+$ ]]; thenprips $1 | hakrevdnsprips $1 | gdn@@ -1471,15 +1470,16 @@ function ipcidr_detection(){echo $1 | hakrevdnsecho $1 | gdnfi- fi}function ipcidr_target(){- 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- list=${PWD}/target_reconftw_ipcidr.txt+ if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then+ 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+ list=${PWD}/target_reconftw_ipcidr.txt+ fifi}diff --git a/reconftw_axiom.sh b/reconftw_axiom.shindex 2c7a134..fb56407 100755--- a/reconftw_axiom.sh+++ b/reconftw_axiom.sh@@ -1497,7 +1497,6 @@ function resolvers_update(){}function ipcidr_detection(){- if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenif [[ $1 =~ /[0-9]+$ ]]; thenprips $1 | hakrevdnsprips $1 | gdn@@ -1505,15 +1504,16 @@ function ipcidr_detection(){echo $1 | hakrevdnsecho $1 | gdnfi- fi}function ipcidr_target(){- 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- list=${PWD}/target_reconftw_ipcidr.txt+ if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then+ 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+ list=${PWD}/target_reconftw_ipcidr.txt+ fifi}