Данный скрипт делает легкие и редкие запросы, оказывающие незначительную нагрузку на сеть и машину клиента. Запросы 2 типов: доступность хоста и проверка по DNS. Если проверку DNS не проходит - то запрос проходит по IP из фикса hosts ниже.
Надписи в нем особо важные (по понятным причинам):
@echo * * NE ZLOUPOTREBLYAT' ! * *
@echo * * DO NOT OVERUSE ! * *
timeout /T 2100
Менять значение таймаута и жать кнопки для продолжения не рекомендуется
Фикс для файла hosts ( file:///C:/windows/System32/drivers/etc/hosts ), дабы скрипт нормально работал
# localhost name resolution is handled within DNS itself.
# ::1 localhost
92.43.0.50 xxx.exoplay.ru # контра
92.43.0.53 fannet fannet.hosts
95.84.27.165 zzzer.ru
95.84.28.174 zzzer.vfose.ru
100.72.253.21 vodoleichik.vfose.ru # только для провайдера ЭР-Телеком
95.141.193.98 nereala.net www.nereala.net www.foszona.ru foszona.ru
95.31.253.5 ultra-sr.ru
95.141.193.194 videk.ru www.videk.ru
95.141.193.25 saratau.ru # Ex-FOS
95.141.193.26 shadowzone.ru # Ex-FOS
188.232.60.82 zippo.vfose.ru zippo2.no-ip.org
109.195.19.146 spirit.vfose.ru conteo.vfose.ru
http:// надо убрать, специфика форума
Сам скрипт
- Код: Выделить всё • Развернуть
@echo off
@echo %date%
@echo Full custom IPERF test of former file exchange Saratovskava oblast' by DeltaPLAN ( ICQ 44-794-000-4 )
@chcp 1251
@echo Полностью выборочный скрипт теста доступности хостов бывшего ФОС'а
@echo
@echo ============ The test is cycled, DO NOT OVERUSE! ============
@echo ============ Тест цикличный, НЕ ЗЛОУПОТРЕБЛЯТЬ! ============
@echo ==== TCP window size decreased. Please ignore WARNING: TCP window size set to 256 bytes. A small window size
@echo ==== Окно TCP уменьшено, фраза про плохую производительность нее должна вас смущать
will give poor performance. See the Iperf documentation. ====
set line=___________________________________________________________
set startmsg=@echo = Press Ctrl+C in order to cancel the request cycle =
set startmsgr=@echo = Нажмите Ctrl+C чтобы прервать цикл запросов =
set reptmsg=@echo = = = = Request finished. You can see the result above = = = =
set reptmsgr=@echo = = = = Запрос завершен. Его результат вы можете видеть выше = = = =
set nl=nslookup
set dns=77.88.8.8
set iperfs=iperf -c
set iperfe=-i 1 -P 1 -t 1 -w 128 -L 5001
set dnsmsg=@echo = = = = Was the IP of the host correct?
set dnsmsgr=/ Был ли корректен IP хоста? = = = =
set try12= = = = = = = = = Trying
set try12r= / пытаемся запросить
set try22= = = = = = = = =
set curtime=@echo %time%
set delayl=timeout /T 5
:cycle
@echo + + + + + + + + + -= Test started! =- + + + + + + + + + +
@echo + + + + + + + + + -= Тест пошел! =- + + + + + + + + + +
@echo %line%
%startmsg%
@echo %line%
@echo
%curtime%
@echo %try12% %try12r% 88.147.158.1:80 %try22%
%iperfs% 88.147.158.1 -p 80 %iperfe%
%reptmsg2%
%delayl%
%nl% 88.147.158.1 %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% 88.147.162.3:80 %try22%
%iperfs% 88.147.162.3 -p 80 %iperfe%
%reptmsg2%
%delayl%
%iperfs% 88.147.162.3 -p 443 %iperfe%
%reptmsg2%
%delayl%
%nl% 88.147.162.3 %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% 88.147.164.12:53 %try22%
%iperfs% 88.147.164.12 -p 53 %iperfe%
%reptmsg2%
%delayl%
%nl% 88.147.164.12 %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% Parser okolodomsar Ex 109.195.21.107:80 %try22%
%iperfs% 109.195.21.107 %iperfe%
%reptmsg2%
%delayl%
@echo
%curtime%
@echo %try12% %try12r% Parser okolodomsar Ex 109.195.21.107:2710 %try22%
%iperfs% 109.195.21.107 -p 2710 %iperfe%
%reptmsg2%
%delayl%
%nl% 109.195.21.107 %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r%adc.san.ru:10000 =
%iperfs% adc.san.ru -p 10000 %iperfe%
%reptmsg2%
%delayl%
%nl% adc.san.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r%dc.san.ru:411 %try22%
%iperfs% dc.san.ru -p 411 %iperfe%
%reptmsg2%
%delayl%
%nl% dc.san.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% radio.san.ru:80 %try22%
%iperfs% radio.san.ru %iperfe%
%reptmsg2%
%delayl%
@echo
%curtime%
@echo %try12% %try12r% radio.san.ru:8000 =
%iperfs% radio.san.ru -p 8000 %iperfe%
%reptmsg2%
%delayl%
%nl% radio.san.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% nereala.net:80 %try22%
%iperfs% nereala.net %iperfe%
%reptmsg2%
%delayl%
%nl% nereala.net %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% ultra-sr.ru:80 %try22%
%iperfs% ultra-sr.ru %iperfe%
%reptmsg2%
%delayl%
%nl% ultra-sr.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% nslp.ru:80 %try22%
%iperfs% nslp.ru %iperfe%
%reptmsg2%
%delayl%
%nl% nslp.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% vodoleichik.vfose.ru:411 %try22%
%iperfs% vodoleichik.vfose.ru -p 411 %iperfe%
%reptmsg2%
%delayl%
%nl% vodoleichik.vfose.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% balakovo-torrent.vfose.ru:80 %try22%
%iperfs% balakovo-torrent.vfose.ru %iperfe%
%reptmsg2%
%delayl%
%nl% balakovo-torrent.vfose.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% portal.san.ru:80 %try22%
%iperfs% portal.san.ru %iperfe%
%reptmsg2%
%delayl%
@echo
%curtime%
@echo %try12% %try12r% portal.san.ru:443 %try22%
%iperfs% portal.san.ru -p 443 %iperfe%
%reptmsg2%
%delayl%
%nl% portal.san.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% saratov-style.net:80 %try22%
%iperfs% saratov-style.net %iperfe%
%reptmsg2%
%delayl%
%nl% saratov-style.net %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% torrents.saratov-style.net:80 %try22%
%iperfs% torrents.saratov-style.net %iperfe%
%reptmsg2%
%delayl%
@echo
%curtime%
@echo %try12% %try12r% torrents.saratov-style.net:443 %try22%
%iperfs% torrents.saratov-style.net -p 443 %iperfe%
%reptmsg2%%delayl%
@echo
%curtime%
@echo %try12% %try12r% torrents.saratov-style.net:21 %try22%
%iperfs% torrents.saratov-style.net -p 21 %iperfe%
%reptmsg2%
%delayl%
%nl% torrents.saratov-style.net %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% zzzer.ru:80 %try22%
%iperfs% zzzer.ru %iperfe%
%reptmsg2%
%delayl%
%nl% zzzer.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% zzzer.vfose.ru:80 %try22%
%iperfs% zzzer.vfose.ru %iperfe%
%reptmsg2%
%delayl%
%nl% zzzer.vfose.ru %dns%
%dnsmsg% %dnsmsgr%
@echo
%curtime%
@echo %try12% %try12r% zippo.vfose.ru:80 %try22%
%iperfs% zippo.vfose.ru %iperfe%
%reptmsg2%
@echo %line%
%delayl%
%startmsg%
@echo %line%
timeout /T 1000
@echo Ещё продолжить?
@echo Go on with the script? [y/n/c=clear screen]
set /p answer=
if %answer%==y goto cycle
if %answer%==Y goto cycle
if %answer%==da goto cycle
if %answer%=n goto fin
if %answer%=N goto fin
if %answer%==Ne goto fin
if %answer%==net goto fin
if %answer%==c cls
if %answer%==C cls
if %answer%== exit
goto cycle
:fin
@echo # # # # # # DAVAJ DOSVIDANJA, HAKER ! # # # # # #
timeout /T 30
цветной вариант
Знаю, после драки кулаками не машут, но всё жэ
![Pardon :pardon:](./images/smilies/pardon.gif)