Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "httpx -s": option has been deprecated #34

Open
Juniorpqp opened this issue Aug 16, 2024 · 1 comment
Open

Error "httpx -s": option has been deprecated #34

Juniorpqp opened this issue Aug 16, 2024 · 1 comment

Comments

@Juniorpqp
Copy link

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

Screenshot from 2024-08-16 14-19-17

@le-vamp
Copy link

le-vamp commented Aug 16, 2024

Thanks so much for this dude. It really helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants