You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This modification filters and processes url captures the HTTP status code and outputs the results while ensuring compatibility with updated HTTP features.
Regards
J
The text was updated successfully, but these errors were encountered:
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:$domain | grep -E ".js$ |.php$|.yml$|.env$|.txt$|.xml$|.config$" | httpx -stats | sort -u | tee urls.txt | lolcat
waybackurls
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
The text was updated successfully, but these errors were encountered: