From 9159ae552094ebf43593e34593b9f8bb962f25ea Mon Sep 17 00:00:00 2001 From: badafans <990508464@qq.com> Date: Wed, 25 May 2022 22:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=9C=8D=E5=8A=A1=E5=9F=9F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit service.baipiao.eu.org被多地运营商SNI阻断 --- "batch/CF\344\274\230\351\200\211IP-ANSI.bat" | 14 +++++++------- "batch/CF\344\274\230\351\200\211IP-UTF8.bat" | 14 +++++++------- shell/cf.sh | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git "a/batch/CF\344\274\230\351\200\211IP-ANSI.bat" "b/batch/CF\344\274\230\351\200\211IP-ANSI.bat" index e5711d8..18fe3e0 100644 --- "a/batch/CF\344\274\230\351\200\211IP-ANSI.bat" +++ "b/batch/CF\344\274\230\351\200\211IP-ANSI.bat" @@ -3,7 +3,7 @@ chcp 936>nul cd "%~dp0" color A setlocal enabledelayedexpansion -set version=20220514 +set version=20220525 :main cls @@ -20,7 +20,7 @@ goto main :singletest set /p ip=ҪٵIP: -curl --resolve service.baipiao.eu.org:443:!ip! https://service.baipiao.eu.org -o temp.txt -# +curl --resolve service.baipiaocf.ml:443:!ip! https://service.baipiaocf.ml -o temp.txt -# for /f "tokens=2 delims==" %%i in ('findstr "domain=" temp.txt') do ( set domain=%%i ) @@ -57,7 +57,7 @@ if not exist "!ips!.txt" goto dnsresolve :dnsresolve echo DNSȡCF !ips! ڵ echo Ⱦ,ֶ !ips!.txt -curl --!ips! --retry 3 -s https://service.baipiao.eu.org/meta -o meta.txt +curl --!ips! --retry 3 -s https://service.baipiaocf.ml/meta -o meta.txt if not exist "meta.txt" goto start for /f "tokens=2 delims==" %%i in ('findstr "asn=" meta.txt') do ( set asn=%%i @@ -80,7 +80,7 @@ for /f "tokens=2 delims==" %%i in ('findstr "longitude=" meta.txt') do ( for /f "tokens=2 delims==" %%i in ('findstr "latitude=" meta.txt') do ( set latitude=%%i ) -curl --!ips! --retry 3 https://service.baipiao.eu.org -o data.txt -# +curl --!ips! --retry 3 https://service.baipiaocf.ml -o data.txt -# if not exist "data.txt" goto start goto checkupdate @@ -90,7 +90,7 @@ set resolveip=%%i ) echo ָȡCF !ips! ڵ echo ʱ޷ȡCF !ips! ڵ,гѡջ -curl --!ips! --resolve service.baipiao.eu.org:443:!resolveip! --retry 3 -s https://service.baipiao.eu.org/meta -o meta.txt +curl --!ips! --resolve service.baipiaocf.ml:443:!resolveip! --retry 3 -s https://service.baipiaocf.ml/meta -o meta.txt if not exist "meta.txt" goto start for /f "tokens=2 delims==" %%i in ('findstr "asn=" meta.txt') do ( set asn=%%i @@ -113,7 +113,7 @@ for /f "tokens=2 delims==" %%i in ('findstr "longitude=" meta.txt') do ( for /f "tokens=2 delims==" %%i in ('findstr "latitude=" meta.txt') do ( set latitude=%%i ) -curl --!ips! --resolve service.baipiao.eu.org:443:!resolveip! --retry 3 https://service.baipiao.eu.org -o data.txt -# +curl --!ips! --resolve service.baipiaocf.ml:443:!resolveip! --retry 3 https://service.baipiaocf.ml -o data.txt -# if not exist "data.txt" goto start goto checkupdate @@ -262,7 +262,7 @@ if %time:~6,1% EQU 0 (set /a stopS=%time:~7,1%) else (set /a stopS=%time:~6,2%) set /a starttime=%startH%*3600+%startM%*60+%startS% set /a stoptime=%stopH%*3600+%stopM%*60+%stopS% if %starttime% GTR %stoptime% (set /a alltime=86400-%starttime%+%stoptime%) else (set /a alltime=%stoptime%-%starttime%) -curl --!ips! --resolve service.baipiao.eu.org:443:!anycast! --retry 3 -s -X POST https://service.baipiao.eu.org -o data.txt +curl --!ips! --resolve service.baipiaocf.ml:443:!anycast! --retry 3 -s -X POST https://service.baipiaocf.ml -o data.txt for /f "tokens=2 delims==" %%i in ('findstr "publicip=" data.txt') do ( set publicip=%%i ) diff --git "a/batch/CF\344\274\230\351\200\211IP-UTF8.bat" "b/batch/CF\344\274\230\351\200\211IP-UTF8.bat" index 11ea4b1..f99ea50 100644 --- "a/batch/CF\344\274\230\351\200\211IP-UTF8.bat" +++ "b/batch/CF\344\274\230\351\200\211IP-UTF8.bat" @@ -3,7 +3,7 @@ chcp 65001>nul cd "%~dp0" color A setlocal enabledelayedexpansion -set version=20220514 +set version=20220525 :main cls @@ -20,7 +20,7 @@ goto main :singletest set /p ip=请输入需要测速的IP: -curl --resolve service.baipiao.eu.org:443:!ip! https://service.baipiao.eu.org -o temp.txt -# +curl --resolve service.baipiaocf.ml:443:!ip! https://service.baipiaocf.ml -o temp.txt -# for /f "tokens=2 delims==" %%i in ('findstr "domain=" temp.txt') do ( set domain=%%i ) @@ -57,7 +57,7 @@ if not exist "!ips!.txt" goto dnsresolve :dnsresolve echo DNS解析获取CF !ips! 节点 echo 如果域名被污染,请手动创建 !ips!.txt 做解析 -curl --!ips! --retry 3 -s https://service.baipiao.eu.org/meta -o meta.txt +curl --!ips! --retry 3 -s https://service.baipiaocf.ml/meta -o meta.txt if not exist "meta.txt" goto start for /f "tokens=2 delims==" %%i in ('findstr "asn=" meta.txt') do ( set asn=%%i @@ -80,7 +80,7 @@ for /f "tokens=2 delims==" %%i in ('findstr "longitude=" meta.txt') do ( for /f "tokens=2 delims==" %%i in ('findstr "latitude=" meta.txt') do ( set latitude=%%i ) -curl --!ips! --retry 3 https://service.baipiao.eu.org -o data.txt -# +curl --!ips! --retry 3 https://service.baipiaocf.ml -o data.txt -# if not exist "data.txt" goto start goto checkupdate @@ -90,7 +90,7 @@ set resolveip=%%i ) echo 指向解析获取CF !ips! 节点 echo 如果长时间无法获取CF !ips! 节点,重新运行程序并选择清空缓存 -curl --!ips! --resolve service.baipiao.eu.org:443:!resolveip! --retry 3 -s https://service.baipiao.eu.org/meta -o meta.txt +curl --!ips! --resolve service.baipiaocf.ml:443:!resolveip! --retry 3 -s https://service.baipiaocf.ml/meta -o meta.txt if not exist "meta.txt" goto start for /f "tokens=2 delims==" %%i in ('findstr "asn=" meta.txt') do ( set asn=%%i @@ -113,7 +113,7 @@ for /f "tokens=2 delims==" %%i in ('findstr "longitude=" meta.txt') do ( for /f "tokens=2 delims==" %%i in ('findstr "latitude=" meta.txt') do ( set latitude=%%i ) -curl --!ips! --resolve service.baipiao.eu.org:443:!resolveip! --retry 3 https://service.baipiao.eu.org -o data.txt -# +curl --!ips! --resolve service.baipiaocf.ml:443:!resolveip! --retry 3 https://service.baipiaocf.ml -o data.txt -# if not exist "data.txt" goto start goto checkupdate @@ -262,7 +262,7 @@ if %time:~6,1% EQU 0 (set /a stopS=%time:~7,1%) else (set /a stopS=%time:~6,2%) set /a starttime=%startH%*3600+%startM%*60+%startS% set /a stoptime=%stopH%*3600+%stopM%*60+%stopS% if %starttime% GTR %stoptime% (set /a alltime=86400-%starttime%+%stoptime%) else (set /a alltime=%stoptime%-%starttime%) -curl --!ips! --resolve service.baipiao.eu.org:443:!anycast! --retry 3 -s -X POST https://service.baipiao.eu.org -o data.txt +curl --!ips! --resolve service.baipiaocf.ml:443:!anycast! --retry 3 -s -X POST https://service.baipiaocf.ml -o data.txt for /f "tokens=2 delims==" %%i in ('findstr "publicip=" data.txt') do ( set publicip=%%i ) diff --git a/shell/cf.sh b/shell/cf.sh index 0ede7f8..ddb4024 100644 --- a/shell/cf.sh +++ b/shell/cf.sh @@ -1,6 +1,6 @@ #!/bin/bash # better-cloudflare-ip -version=20220514 +version=20220525 function bettercloudflareip (){ declare -i bandwidth @@ -34,7 +34,7 @@ endtime=$(date +'%Y-%m-%d %H:%M:%S') start_seconds=$(date --date="$starttime" +%s) end_seconds=$(date --date="$endtime" +%s) clear -curl --$ips --resolve service.baipiao.eu.org:443:$anycast --retry 3 -s -X POST https://service.baipiao.eu.org -o temp.txt +curl --$ips --resolve service.baipiaocf.ml:443:$anycast --retry 3 -s -X POST https://service.baipiaocf.ml -o temp.txt publicip=$(grep publicip= temp.txt | cut -f 2- -d'=') colo=$(grep colo= temp.txt | cut -f 2- -d'=') rm -rf temp.txt @@ -151,7 +151,7 @@ do do if [ ! -f "meta.txt" ] then - curl --$ips --retry 3 -s https://service.baipiao.eu.org/meta -o meta.txt + curl --$ips --retry 3 -s https://service.baipiaocf.ml/meta -o meta.txt else asn=$(grep asn= meta.txt | cut -f 2- -d'=') isp=$(grep isp= meta.txt | cut -f 2- -d'=') @@ -160,7 +160,7 @@ do city=$(grep city= meta.txt | cut -f 2- -d'=') longitude=$(grep longitude= meta.txt | cut -f 2- -d'=') latitude=$(grep latitude= meta.txt | cut -f 2- -d'=') - curl --$ips --retry 3 https://service.baipiao.eu.org -o data.txt -# + curl --$ips --retry 3 https://service.baipiaocf.ml -o data.txt -# break fi done @@ -172,7 +172,7 @@ do do if [ ! -f "meta.txt" ] then - curl --$ips --resolve service.baipiao.eu.org:443:$resolveip --retry 3 -s https://service.baipiao.eu.org/meta -o meta.txt + curl --$ips --resolve service.baipiaocf.ml:443:$resolveip --retry 3 -s https://service.baipiaocf.ml/meta -o meta.txt else asn=$(grep asn= meta.txt | cut -f 2- -d'=') isp=$(grep isp= meta.txt | cut -f 2- -d'=') @@ -181,7 +181,7 @@ do city=$(grep city= meta.txt | cut -f 2- -d'=') longitude=$(grep longitude= meta.txt | cut -f 2- -d'=') latitude=$(grep latitude= meta.txt | cut -f 2- -d'=') - curl --$ips --resolve service.baipiao.eu.org:443:$resolveip --retry 3 https://service.baipiao.eu.org -o data.txt -# + curl --$ips --resolve service.baipiaocf.ml:443:$resolveip --retry 3 https://service.baipiaocf.ml -o data.txt -# break fi done @@ -320,7 +320,7 @@ done function singletest (){ read -p "请输入需要测速的IP: " testip -curl --resolve service.baipiao.eu.org:443:$testip https://service.baipiao.eu.org -o temp.txt -# +curl --resolve service.baipiaocf.ml:443:$testip https://service.baipiaocf.ml -o temp.txt -# domain=$(grep domain= temp.txt | cut -f 2- -d'=') file=$(grep file= temp.txt | cut -f 2- -d'=') rm -rf temp.txt