Created
November 12, 2014 08:42
-
-
Save TheBits/1965722dd6f2b1918cb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# select "name" from animals_vpnaccount where id in (select vpnaccount from animals_homertunnel where isptunnel in (select id from animals_isptunnel where account in (select id from animals_ispaccount where isp in (select id from animals_isp where name = 'NetByNet')))) order by name; | |
while read p | |
do | |
echo $p | |
# проверка | |
curl -w "size: %{size_download}\n\n" -o /dev/null -m 10 -L -x 'botanik.yandex.net:4050' -H "Forward-Via: $p" --silent 'http://static.yandex.net/ok.html' -vv 2>&1 | grep -iE "GET.*HTTP/|Host:|size:" | |
# нажатие кнопки | |
#curl -w "size: %{size_download}\n\n" -o /dev/null -m 10 -L -x 'botanik.yandex.net:4050' -H "Forward-Via: $p" --silent http://pppoe2dhcp.netbynet.ru/redirect.php?src_url=netbynet.ru -vv 2>&1 | grep -iE "GET.*HTTP/|Host:|size:" | |
done < netbynet_tunnels |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment