Update 661.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2023-02-14 04:33:10 +00:00
parent a788be960d
commit e7f9ba7066
1 changed files with 16 additions and 16 deletions

32
661.sh
View File

@ -177,7 +177,7 @@ warppflow=$((`grep -oP '"quota":\K\d+' <<< $(curl -sm4 "https://api.cloudflarecl
flow=`echo "scale=2; $warppflow/1000000000" | bc` flow=`echo "scale=2; $warppflow/1000000000" | bc`
[[ -e /usr/local/bin/warpplus.log ]] && cfplus="WARP+普通账户(有限WARP+流量:$flow GB),设备名称:$(sed -n 1p /usr/local/bin/warpplus.log)" || cfplus="WARP+Teams账户(无限WARP+流量)" [[ -e /usr/local/bin/warpplus.log ]] && cfplus="WARP+普通账户(有限WARP+流量:$flow GB),设备名称:$(sed -n 1p /usr/local/bin/warpplus.log)" || cfplus="WARP+Teams账户(无限WARP+流量)"
if [[ -n $v4 ]]; then if [[ -n $v4 ]]; then
[[ $(curl -s4S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,当前IP不支持Chatgpt官网聊天服务' || chat='恭喜当前IP支持Chatgpt官网聊天服务' [[ $(curl -s4S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,无法访问Chatgpt网页服务' || chat='恭喜支持访问Chatgpt网页服务'
wgcfv4=$(curl -s4 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2) wgcfv4=$(curl -s4 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2)
isp4a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v4?lang=zh-CN -k | cut -f13 -d ":" | cut -f2 -d '"'` isp4a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v4?lang=zh-CN -k | cut -f13 -d ":" | cut -f2 -d '"'`
isp4b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v4 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"` isp4b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v4 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"`
@ -194,17 +194,17 @@ country=$snnf
fi fi
case ${wgcfv4} in case ${wgcfv4} in
plus) plus)
WARPIPv4Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; rred "$v4 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " OpenAI官网服务支持情况:\c" ; rred "$chat");; WARPIPv4Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; rred "$v4 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " Chatgpt服务支持情况:\c" ; rred "$chat");;
on) on)
WARPIPv4Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; green "$v4 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " OpenAI官网服务支持情况:\c" ; green "$chat");; WARPIPv4Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; green "$v4 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " Chatgpt服务支持情况:\c" ; green "$chat");;
off) off)
WARPIPv4Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp4 获取IPV4地址\c" ; yellow "$v4 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " OpenAI官网服务支持情况:\c" ; yellow "$chat");; WARPIPv4Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp4 获取IPV4地址\c" ; yellow "$v4 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " Chatgpt服务支持情况:\c" ; yellow "$chat");;
esac esac
else else
WARPIPv4Status=$(white "IPV4状态\c" ; red "不存在IPV4地址 ") WARPIPv4Status=$(white "IPV4状态\c" ; red "不存在IPV4地址 ")
fi fi
if [[ -n $v6 ]]; then if [[ -n $v6 ]]; then
[[ $(curl -s6S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,当前IP不支持Chatgpt官网聊天服务' || chat='恭喜当前IP支持Chatgpt官网聊天服务' [[ $(curl -s6S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,无法访问Chatgpt网页服务' || chat='恭喜支持访问Chatgpt网页服务'
wgcfv6=$(curl -s6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2) wgcfv6=$(curl -s6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2)
isp6a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v6?lang=zh-CN -k | cut -f13 -d":" | cut -f2 -d '"'` isp6a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v6?lang=zh-CN -k | cut -f13 -d":" | cut -f2 -d '"'`
isp6b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v6 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"` isp6b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v6 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"`
@ -221,11 +221,11 @@ country=$snnf
fi fi
case ${wgcfv6} in case ${wgcfv6} in
plus) plus)
WARPIPv6Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; rred "$v6 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " OpenAI官网服务支持情况:\c" ; rred "$chat");; WARPIPv6Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; rred "$v6 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " Chatgpt服务支持情况:\c" ; rred "$chat");;
on) on)
WARPIPv6Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; green "$v6 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " OpenAI官网服务支持情况:\c" ; green "$chat");; WARPIPv6Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; green "$v6 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " Chatgpt服务支持情况:\c" ; green "$chat");;
off) off)
WARPIPv6Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp6 获取IPV6地址\c" ; yellow "$v6 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " OpenAI官网服务支持情况:\c" ; yellow "$chat");; WARPIPv6Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp6 获取IPV6地址\c" ; yellow "$v6 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " Chatgpt服务支持情况:\c" ; yellow "$chat");;
esac esac
else else
WARPIPv6Status=$(white "IPV6状态\c" ; red "不存在IPV6地址 ") WARPIPv6Status=$(white "IPV6状态\c" ; red "不存在IPV6地址 ")
@ -845,7 +845,7 @@ warppflow=$((`grep -oP '"quota":\K\d+' <<< $(curl -sm4 "https://api.cloudflarecl
flow=`echo "scale=2; $warppflow/1000000000" | bc` flow=`echo "scale=2; $warppflow/1000000000" | bc`
[[ -e /etc/wireguard/wgcf+p.log ]] && cfplus="WARP+普通账户(有限WARP+流量:$flow GB),设备名称:$(grep -s 'Device name' /etc/wireguard/wgcf+p.log | awk '{ print $NF }')" || cfplus="WARP+Teams账户(无限WARP+流量)" [[ -e /etc/wireguard/wgcf+p.log ]] && cfplus="WARP+普通账户(有限WARP+流量:$flow GB),设备名称:$(grep -s 'Device name' /etc/wireguard/wgcf+p.log | awk '{ print $NF }')" || cfplus="WARP+Teams账户(无限WARP+流量)"
if [[ -n $v4 ]]; then if [[ -n $v4 ]]; then
[[ $(curl -s4S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,当前IP不支持Chatgpt官网聊天服务' || chat='恭喜当前IP支持Chatgpt官网聊天服务' [[ $(curl -s4S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,无法访问Chatgpt网页服务' || chat='恭喜支持访问Chatgpt网页服务'
wgcfv4=$(curl -s4 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2) wgcfv4=$(curl -s4 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2)
isp4a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v4?lang=zh-CN -k | cut -f13 -d ":" | cut -f2 -d '"'` isp4a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v4?lang=zh-CN -k | cut -f13 -d ":" | cut -f2 -d '"'`
isp4b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v4 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"` isp4b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v4 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"`
@ -862,17 +862,17 @@ country=$snnf
fi fi
case ${wgcfv4} in case ${wgcfv4} in
plus) plus)
WARPIPv4Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; rred "$v4 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " OpenAI官网服务支持情况:\c" ; rred "$chat");; WARPIPv4Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; rred "$v4 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " Chatgpt服务支持情况:\c" ; rred "$chat");;
on) on)
WARPIPv4Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; green "$v4 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " OpenAI官网服务支持情况:\c" ; green "$chat");; WARPIPv4Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV4地址\c" ; green "$v4 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " Chatgpt服务支持情况:\c" ; green "$chat");;
off) off)
WARPIPv4Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp4 获取IPV4地址\c" ; yellow "$v4 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " OpenAI官网服务支持情况:\c" ; yellow "$chat");; WARPIPv4Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp4 获取IPV4地址\c" ; yellow "$v4 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '3p')" ; white " Chatgpt服务支持情况:\c" ; yellow "$chat");;
esac esac
else else
WARPIPv4Status=$(white "IPV4状态\c" ; red "不存在IPV4地址 ") WARPIPv4Status=$(white "IPV4状态\c" ; red "不存在IPV4地址 ")
fi fi
if [[ -n $v6 ]]; then if [[ -n $v6 ]]; then
[[ $(curl -s6S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,当前IP不支持Chatgpt官网聊天服务' || chat='恭喜当前IP支持Chatgpt官网聊天服务' [[ $(curl -s6S https://chat.openai.com/ -I | grep "text/plain") != "" ]] && chat='遗憾,无法访问Chatgpt网页服务' || chat='恭喜支持访问Chatgpt网页服务'
wgcfv6=$(curl -s6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2) wgcfv6=$(curl -s6 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cut -d= -f2)
isp6a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v6?lang=zh-CN -k | cut -f13 -d":" | cut -f2 -d '"'` isp6a=`curl -sm6 --user-agent "${UA_Browser}" http://ip-api.com/json/$v6?lang=zh-CN -k | cut -f13 -d":" | cut -f2 -d '"'`
isp6b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v6 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"` isp6b=`curl -sm6 --user-agent "${UA_Browser}" https://api.ip.sb/geoip/$v6 -k | awk -F "isp" '{print $2}' | awk -F "offset" '{print $1}' | sed "s/[,\":]//g"`
@ -889,11 +889,11 @@ country=$snnf
fi fi
case ${wgcfv6} in case ${wgcfv6} in
plus) plus)
WARPIPv6Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; rred "$v6 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " OpenAI官网服务支持情况:\c" ; rred "$chat");; WARPIPv6Status=$(white "WARP+状态:\c" ; rred "运行中,$cfplus" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; rred "$v6 $country" ; white " 奈飞NF解锁情况\c" ; rred "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " Chatgpt服务支持情况:\c" ; rred "$chat");;
on) on)
WARPIPv6Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; green "$v6 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " OpenAI官网服务支持情况:\c" ; green "$chat");; WARPIPv6Status=$(white "WARP状态\c" ; green "运行中WARP普通账户(无限WARP流量)" ; white " 服务商 Cloudflare 获取IPV6地址\c" ; green "$v6 $country" ; white " 奈飞NF解锁情况\c" ; green "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " Chatgpt服务支持情况:\c" ; green "$chat");;
off) off)
WARPIPv6Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp6 获取IPV6地址\c" ; yellow "$v6 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " OpenAI官网服务支持情况:\c" ; yellow "$chat");; WARPIPv6Status=$(white "WARP状态\c" ; yellow "关闭中" ; white " 服务商 $isp6 获取IPV6地址\c" ; yellow "$v6 $country" ; white " 奈飞NF解锁情况\c" ; yellow "$(./nf | awk '{print $1}' | sed -n '7p')" ; white " Chatgpt服务支持情况:\c" ; yellow "$chat");;
esac esac
else else
WARPIPv6Status=$(white "IPV6状态\c" ; red "不存在IPV6地址 ") WARPIPv6Status=$(white "IPV6状态\c" ; red "不存在IPV6地址 ")