Skip to content

Commit

Permalink
更换服务域名
Browse files Browse the repository at this point in the history
service.baipiao.eu.org被多地运营商SNI阻断
  • Loading branch information
badafans committed May 25, 2022
1 parent ce29ad6 commit 9159ae5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions batch/CF优选IP-ANSI.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ chcp 936>nul
cd "%~dp0"
color A
setlocal enabledelayedexpansion
set version=20220514
set version=20220525

:main
cls
Expand All @@ -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
)
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
)
Expand Down
14 changes: 7 additions & 7 deletions batch/CF优选IP-UTF8.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ chcp 65001>nul
cd "%~dp0"
color A
setlocal enabledelayedexpansion
set version=20220514
set version=20220525

:main
cls
Expand All @@ -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
)
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
)
Expand Down
14 changes: 7 additions & 7 deletions shell/cf.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# better-cloudflare-ip
version=20220514
version=20220525

function bettercloudflareip (){
declare -i bandwidth
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'=')
Expand All @@ -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
Expand All @@ -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'=')
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9159ae5

Please sign in to comment.