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

Installer order && httpx csp-probe, tlsp-probe

six2dezb2b7c2953589
diff --git a/install.sh b/install.sh
index 4113829..53b029e 100755
--- a/install.sh
+++ b/install.sh
@@ -91,13 +91,6 @@ install_pacman(){
eval $SUDO systemctl enable --now tor.service $DEBUG_STD
}
-printf "${bblue} Running: Installing system packages ${reset}\n\n"
-if [ -f /etc/debian_version ]; then install_apt;
-elif [ -f /etc/redhat-release ]; then install_yum;
-elif [ -f /etc/arch-release ]; then install_pacman;
-elif [ -f /etc/os-release ]; then install_yum; #/etc/os-release fall in yum for some RedHat and Amazon Linux instances
-fi
-
eval git config --global --unset http.proxy $DEBUG_STD
eval git config --global --unset https.proxy $DEBUG_STD
@@ -136,6 +129,13 @@ if [ -n "$(git status --porcelain | egrep -v '^\?\?')" ]; then
exit 1
fi
+printf "${bblue} Running: Installing system packages ${reset}\n\n"
+if [ -f /etc/debian_version ]; then install_apt;
+elif [ -f /etc/redhat-release ]; then install_yum;
+elif [ -f /etc/arch-release ]; then install_pacman;
+elif [ -f /etc/os-release ]; then install_yum; #/etc/os-release fall in yum for some RedHat and Amazon Linux instances
+fi
+
# Installing latest Golang version
#version=$(curl -s https://golang.org/VERSION?m=text)
version=go1.15.10
diff --git a/reconftw.sh b/reconftw.sh
index 5242269..6b70642 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -423,6 +423,8 @@ function sub_scraping(){
start_subfunc "Running : Source code scraping subdomain search"
touch .tmp/scrap_subs.txt
cat subdomains/subdomains.txt | httpx -follow-host-redirects -H "${HEADER}" -status-code -threads $HTTPX_THREADS -timeout 15 -silent -retries 2 -no-color | cut -d ' ' -f1 | grep ".$domain$" | anew -q .tmp/probed_tmp_scrap.txt
+ cat subdomains/subdomains.txt | httpx -csp-probe -H "${HEADER}" -status-code -threads $HTTPX_THREADS -timeout 15 -silent -retries 2 -no-color | cut -d ' ' -f1 | grep ".$domain$" | anew -q .tmp/probed_tmp_scrap.txt
+ cat subdomains/subdomains.txt | httpx -tls-probe -H "${HEADER}" -status-code -threads $HTTPX_THREADS -timeout 15 -silent -retries 2 -no-color | cut -d ' ' -f1 | grep ".$domain$" | anew -q .tmp/probed_tmp_scrap.txt
if [ "$DEEP" = true ] ; then
gospider -S .tmp/probed_tmp_scrap.txt --js -t $GOSPIDER_THREADS -d 3 -H "${HEADER}" --sitemap --robots -w -r > .tmp/gospider.txt
else