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

Fixed analyticsrelationship && improved recursive search

six2dez63bda48af20d
diff --git a/install.sh b/install.sh
index 360e7da..df2c74e 100755
--- a/install.sh
+++ b/install.sh
@@ -31,6 +31,7 @@ gotools["dalfox"]="GO111MODULE=on go get -v github.com/hahwul/dalfox/v2"
gotools["puredns"]="GO111MODULE=on go get github.com/d3mondev/puredns/v2"
gotools["resolveDomains"]="go get -v github.com/Josue87/resolveDomains"
gotools["interactsh-client"]="GO111MODULE=on go get -v github.com/projectdiscovery/interactsh/cmd/interactsh-client"
+gotools["analyticsrelationships"]="six2dez/analyticsrelationships"
declare -A repos
repos["degoogle_hunter"]="six2dez/degoogle_hunter"
@@ -56,7 +57,6 @@ repos["testssl"]="drwetter/testssl.sh"
repos["ip2provider"]="oldrho/ip2provider"
repos["commix"]="commixproject/commix"
repos["JSA"]="six2dez/JSA"
-repos["AnalyticsRelationships"]="Josue87/AnalyticsRelationships"
repos["urldedupe"]="ameenmaali/urldedupe"
repos["cloud_enum"]="initstring/cloud_enum"
@@ -238,11 +238,6 @@ for repo in "${!repos[@]}"; do
eval cmake CMakeLists.txt $DEBUG_STD
eval make $DEBUG_STD
eval $SUDO cp ./urldedupe /usr/bin/ $DEBUG_STD
- elif [ "AnalyticsRelationships" = "$repo" ]; then
- eval cd GO $DEBUG_STD
- eval go build -ldflags "-s -w" $DEBUG_STD
- eval $SUDO cp ./analyticsrelationships /usr/bin/ $DEBUG_STD
- fi
cd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
done
diff --git a/reconftw.sh b/reconftw.sh
index 209a500..e1231e0 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -481,7 +481,7 @@ function sub_recursive(){
start_subfunc "Running : Subdomains recursive search"
# Passive recursive
if [ "$SUB_RECURSIVE_PASSIVE" = true ]; then
- for sub in $(cat subdomains/subdomains.txt | rev | cut -d '.' -f 3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2); do
+ for sub in $( ( cat subdomains/subdomains.txt | rev | cut -d '.' -f 4,3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' && cat subdomains/subdomains.txt | rev | cut -d '.' -f 3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' ) | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2);do
subfinder -d $sub -all -silent 2>>"$LOGFILE" | anew -q .tmp/passive_recursive.txt
assetfinder --subs-only $sub 2>>"$LOGFILE" | anew -q .tmp/passive_recursive.txt
amass enum -passive -d $sub -config $AMASS_CONFIG 2>>"$LOGFILE" | anew -q .tmp/passive_recursive.txt
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index e874137..726ee7c 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -495,7 +495,7 @@ function sub_recursive(){
start_subfunc "Running : Subdomains recursive search"
# Passive recursive
if [ "$SUB_RECURSIVE_PASSIVE" = true ]; then
- for sub in $(cat subdomains/subdomains.txt | rev | cut -d '.' -f 3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2); do
+ for sub in $( ( cat subdomains/subdomains.txt | rev | cut -d '.' -f 4,3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' && cat subdomains/subdomains.txt | rev | cut -d '.' -f 3,2,1 | rev | sort | uniq -c | sort -nr | grep -v '1 ' ) | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f 2);do
echo $sub | anew -q .tmp/sub_pass_recur_target.com
done
if [ -s ".tmp/sub_pass_recur_target.com" ]; then