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

Cookie option for gospider

six2dez2dfb4c6187b6
diff --git a/reconftw.sh b/reconftw.sh
index 057266c..84076d4 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -15,12 +15,14 @@ DEBUG_ERROR="2>/dev/null"
DEEP=false
FULLSCOPE=false
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
+COOKIE=""
# Uncomment this only if it is not already in your env .bashrc or .zshrc
#COLLAB_SERVER=XXXXXXXXXXXXXXXXX
#XSS_SERVER=XXXXXXXXXXXXXXXXX
+
banner(){
printf "\n${bgreen}"
printf " ██▀███ ▓█████ ▄████▄ ▒█████ ███▄ █ █████▒▄▄▄█████▓ █ █░\n"
@@ -543,9 +545,9 @@ urlchecks(){
cat ${domain}_probed.txt | waybackurls | anew -q ${domain}_url_extract.txt
cat ${domain}_probed.txt | gau | anew -q ${domain}_url_extract.txt
if [ "$DEEP" = true ] ; then
- gospider -S ${domain}_probed.txt -t 100 -c 10 -d 2 -a -w --js --sitemap --robots --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | sed "s/^.*http/http/p" | anew -q ${domain}_url_extract.txt
+ gospider -S ${domain}_probed.txt -t 100 -c 10 -d 2 -a -w --js --sitemap --robots --cookie $COOKIE --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | sed "s/^.*http/http/p" | anew -q ${domain}_url_extract.txt
else
- gospider -S ${domain}_probed.txt -t 100 -c 10 -d 1 -a -w --js --sitemap --robots --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | sed "s/^.*http/http/p" | anew -q ${domain}_url_extract.txt
+ gospider -S ${domain}_probed.txt -t 100 -c 10 -d 1 -a -w --js --sitemap --robots --cookie $COOKIE --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | sed "s/^.*http/http/p" | anew -q ${domain}_url_extract.txt
fi
python3 $tools/github-endpoints.py -d $domain | anew -q ${domain}_url_extract.txt
sed -i '/^http/!d' ${domain}_url_extract.txt