Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env bash
- url='https://distrowatch.com/table.php?distribution=supergrub'
- header_ua='User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36'
- header_accept='Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/jxl,image/webp,*/*;q=0.8'
- header_lang='Accept-Language: en-US,en;q=0.5'
- header_ref='Referer: https://distrowatch.com/'
- try=0
- request() {
- [ $try -gt 5 ] && try=0 && return
- response=`proxychains -q curl -s -S -o /dev/null -w '%{http_code}' -D - -H "$header_ua" -H "$header_accept" -H "$header_lang" -H "$header_ref" --compressed "$url"`
- if [ "${response: -3}" != "200" ]; then
- ((try++))
- #echo "$response"
- #echo -n '. '
- sleep $(shuf -i 2-5 -n 1)
- request
- else
- try=0
- echo 'ok'
- fi
- }
- while true; do
- #proxychains -q curl -s -w ' ' ifconfig.me/ip
- request
- systemctl restart tor
- sleep $(shuf -i 10-20 -n 1)
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement