TerminatorZ
TerminatorZ copied to clipboard
Error "httpx -s": option has been deprecated
Excellent script—thank you for that!
I encountered issues with the "httpx -s" option, which has been deprecated. Here’s how I adjusted the script:
Original Line: waybackurls $domain | grep -E ".js$|.php$|.yml$|.env$|.txt$|.xml$|.config$" | httpx -stats | sort -u | tee urls.txt | lolcat
Updated Script: waybackurls "$domain" | grep -E ".js$|.php$|.yml$|.env$|.txt$|.xml$|.config$" > urls.txt
while read -r url; do echo "Processing $url" # Capture httpx output and extract the status httpx -v "$url" 2>/dev/null | grep -E 'HTTP/1.[01] [0-9]{3}' | awk '{print $2}' | while read -r status_code; do if [[ "$status_code" == "200" ]]; then echo "$url" >> "processed_urls.txt" fi done done < urls.txt
sort -u "processed_urls.txt" | tee "urls.txt" | lolcat
count=$(wc -l < "urls.txt") echo "Total URLs found: $count" | lolcat
This modification filters and processes url captures the HTTP status code and outputs the results while ensuring compatibility with updated HTTP features.
Regards J