Skip to content

Instantly share code, notes, and snippets.

@TheBits
Created November 12, 2014 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBits/1965722dd6f2b1918cb7 to your computer and use it in GitHub Desktop.
Save TheBits/1965722dd6f2b1918cb7 to your computer and use it in GitHub Desktop.
#!/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