Automation
How I found a simple Open Redirect using my automation workflw
# Extracting URLs
cat sites.txt | gauplus >> temp.txt
gospider -S sites.txt --js -t 50 -d 2 -w -r --sitemap --robots >> tempspider.txt
# Filtering
sed -i '/^.\{2048\}./d' tempspider.txt
[ -s "tempspider.txt" ] && cat tempspider.txt | grep -Eo 'https?://[^ ]+' | sed 's/]$//' | grep ".$domain" | sort -u >> temp.txt
cat temp.txt | sort -u >> allurls.txt ; rm temp.txt tempspider.txt
# GF pattern
gf redirect allurls.txt | sort -u >> ./gf/redirect.txt
gf ssrf allurls.txt >> ./gf/redirect.txt
# openredirex
cat ./gf/redirect.txt | qsreplace FUZZ | sort -u >> tempred.txt
python3 openredirex.py -l tempred.txt --keyword FUZZ -p payloads.txt | grep "^http" >> ./vulns/redirect.txt
sed -r -i "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" ./vulns/redirect.txt
rm tempred.txt
# Nuclei
cat sites.txt | nuclei -silent -t /templates/ -severity low -o nuclei_output/low.txtLast updated