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 error msg

six2dez1e30701b36ff
diff --git a/install.sh b/install.sh
index d3288ee..79d20ea 100755
--- a/install.sh
+++ b/install.sh
@@ -284,8 +284,10 @@ function install_tools() {
"misconfig-mapper")
git reset --hard origin/main &>/dev/null
git pull &>/dev/null
+ go mod tidy &>/dev/null
go build -o misconfig-mapper &>/dev/null
- chmod +x ./misconfig-mapper
+ chmod +x ./misconfig-mapper &>/dev/null
+ cp misconfig-mapper $HOME/go/bin/ &>/dev/null
;;
"trufflehog")
go install &>/dev/null
@@ -539,7 +541,8 @@ function initial_setup() {
# Nuclei Templates
if [[ ! -d ${NUCLEI_TEMPLATES_PATH} ]]; then
#printf "${yellow}Cloning Nuclei templates...${reset}\n"
- eval git clone https://github.com/projectdiscovery/fuzzing-templates ${tools}/fuzzing-templates $DEBUG_STD
+ mkdir -p ${NUCLEI_FUZZING_TEMPLATES_PATH} $DEBUG_STD
+ eval git clone https://github.com/projectdiscovery/fuzzing-templates "${NUCLEI_FUZZING_TEMPLATES_PATH}" $DEBUG_STD
eval git -C "${NUCLEI_TEMPLATES_PATH}" pull $DEBUG_STD
eval git -C "${NUCLEI_TEMPLATES_PATH}/extra_templates" pull $DEBUG_STD
eval git -C "${tools}/fuzzing-templates" pull $DEBUG_STD
diff --git a/reconftw.sh b/reconftw.sh
index 40f6af8..ff465fa 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1188,7 +1188,7 @@ function sub_dns() {
grep -E '^([a-zA-Z0-9\-\.]+\.)+[a-zA-Z]{1,}$' |
anew -q .tmp/subdomains_dns.txt
- jq -r 'try .a[]' <"subdomains/subdomains_dnsregs.json" | sort -u |
+ jq -r 'try .a[]' <"subdomains/subdomains_dnsregs.json" 2>>"$LOGFILE" >/dev/null | sort -u |
hakip2host | awk '{print $3}' | unfurl -u domains |
sed -e 's/^\*\.//' -e 's/\.$//' -e '/\./!d' |
grep "\.$domain$" |
@@ -1217,10 +1217,10 @@ function sub_dns() {
fi
if [[ -s "subdomains/subdomains_dnsregs.json" ]]; then
- jq -r 'try .a[]' <"subdomains/subdomains_dnsregs.json" | sort -u |
+ jq -r 'try .a[]' <"subdomains/subdomains_dnsregs.json" 2>>"$LOGFILE" >/dev/null | sort -u |
anew -q .tmp/subdomains_dns_a_records.txt
- jq -r 'try .a[]' <"subdomains/subdomains_dnsregs.json" | sort -u |
+ jq -r 'try .a[]' <"subdomains/subdomains_dnsregs.json" 2>>"$LOGFILE" >/dev/null | sort -u |
hakip2host | awk '{print $3}' | unfurl -u domains |
sed -e 's/^\*\.//' -e 's/\.$//' -e '/\./!d' |
grep "\.$domain$" |
@@ -2559,7 +2559,7 @@ function geo_info() {
# Attempt to generate hosts/ips.txt
if ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
if [[ -s "subdomains/subdomains_dnsregs.json" ]]; then
- jq -r 'try . | "\(.host) \(.a[0])"' "subdomains/subdomains_dnsregs.json" | anew -q .tmp/subs_ips.txt
+ jq -r 'try . | "\(.host) \(.a[0])"' "subdomains/subdomains_dnsregs.json" 2>>"$LOGFILE" >/dev/null | anew -q .tmp/subs_ips.txt
fi
if [[ -s ".tmp/subs_ips.txt" ]]; then
awk '{ print $2 " " $1}' .tmp/subs_ips.txt | sort -k2 -n | anew -q hosts/subs_ips_vhosts.txt
@@ -3021,7 +3021,7 @@ function portscan() {
# Not an IP address
if [[ -s "subdomains/subdomains_dnsregs.json" ]]; then
# Extract host and IP from JSON
- jq -r 'try . | "\(.host) \(.a[0])"' "subdomains/subdomains_dnsregs.json" | anew -q .tmp/subs_ips.txt
+ jq -r 'try . | "\(.host) \(.a[0])"' "subdomains/subdomains_dnsregs.json" 2>>"$LOGFILE" >/dev/null | anew -q .tmp/subs_ips.txt
fi
if [[ -s ".tmp/subs_ips.txt" ]]; then
@@ -3162,7 +3162,7 @@ function cdnprovider() {
# Check if subdomains_dnsregs.json exists and is not empty
if [[ -s "subdomains/subdomains_dnsregs.json" ]]; then
# Extract IPs from .a[] fields, exclude private IPs, extract IPs, sort uniquely
- jq -r 'try . | .a[]' "subdomains/subdomains_dnsregs.json" |
+ jq -r 'try . | .a[]' "subdomains/subdomains_dnsregs.json" 2>>"$LOGFILE" >/dev/null |
grep -aEiv "^(127|10|169\.254|172\.(1[6-9]|2[0-9]|3[01])|192\.168)\." |
grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" |
sort -u >.tmp/ips_cdn.txt