Skip to content

Commit 6c827e0

Browse files
authored
Merge pull request #158 from Arsierl/main
Fixed mangogo and added claude detection
2 parents 457ddca + 9d86210 commit 6c827e0

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

check.sh

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,13 +972,25 @@ function MediaUnlockTest_NowE() {
972972
return
973973
fi
974974

975-
local tmpresult=$(curl ${CURL_DEFAULT_OPTS} -s 'https://webtvapi.nowe.com/16/1/getVodURL' -X POST -H "Content-Type: application/json" -d '{"contentId":"202403181904703","contentType":"Vod","pin":"","deviceName":"Browser","deviceId":"w-663bcc51-913c-913c-913c-913c913c","deviceType":"WEB","secureCookie":null,"callerReferenceNo":"W17151951620081575","profileId":null,"mupId":null}' --user-agent "${UA_BROWSER}")
975+
local tmpresult=$(curl ${CURL_DEFAULT_OPTS} -s 'https://webtvapi.nowe.com/16/1/getVodURL' \
976+
-H 'accept: application/json, text/javascript, */*; q=0.01' \
977+
-H 'accept-language: zh-CN,zh;q=0.9,en-GB;q=0.8,en;q=0.7,en-US;q=0.6' \
978+
-H 'content-type: text/plain' \
979+
-H 'origin: https://www.nowe.com' \
980+
-H 'priority: u=1, i' \
981+
-H 'referer: https://www.nowe.com/' \
982+
-H 'sec-fetch-dest: empty' \
983+
-H 'sec-fetch-mode: cors' \
984+
-H 'sec-fetch-site: same-site' \
985+
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/131.0.0.0' \
986+
--data-raw '{"contentId":"202310181863841","contentType":"Vod","pin":"","deviceName":"Browser","deviceId":"w-678913af-3998-3998-3998-39983998","deviceType":"WEB","secureCookie":null,"callerReferenceNo":"W17370372345461425","profileId":null,"mupId":null,"trackId":"738296446.226.1737037103860.2","sessionId":"c39f03e6-9e74-4d24-a82f-e0d0f328bb70"}')
987+
976988
if [ -z "$tmpresult" ]; then
977989
echo -n -e "\r Now E:\t\t\t\t\t${Font_Red}Failed (Network Connection)${Font_Suffix}\n"
978990
return
979991
fi
980992

981-
local result=$(echo "$tmpresult" | grep -woP '"responseCode"\s{0,}:\s{0,}"\K[^"]+')
993+
local result=$(echo "$tmpresult" | grep -woP '"OTTAPI_ResponseCode"\s{0,}:\s{0,}"\K[^"]+')
982994
case "$result" in
983995
'GEO_CHECK_FAIL') echo -n -e "\r Now E:\t\t\t\t\t${Font_Red}No${Font_Suffix}\n" ;;
984996
'SUCCESS') echo -n -e "\r Now E:\t\t\t\t\t${Font_Green}Yes${Font_Suffix}\n" ;;
@@ -2569,7 +2581,7 @@ function MediaUnlockTest_MegogoTV() {
25692581

25702582
local vpnDetected=$(echo "$tmpresult" | grep -i 'VPN')
25712583
if [ -n "$vpnDetected" ]; then
2572-
echo -n -e "\r Abema.TV:\t\t\t\t${Font_Yellow}Yes (VPN Detected)${Font_Suffix}\n"
2584+
echo -n -e "\r Megogo TV:\t\t\t\t${Font_Red}No (VPN Detected)${Font_Suffix}\n"
25732585
return
25742586
fi
25752587

@@ -4520,6 +4532,20 @@ function WebTest_Gemini() {
45204532
fi
45214533
}
45224534

4535+
function WebTest_Claude() {
4536+
local UA_Browser="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
4537+
local response=$(curl ${CURL_DEFAULT_OPTS} -s -o /dev/null -w "%{http_code}" -A "${UA_Browser}" "https://claude.ai/")
4538+
if [ -z "$response" ]; then
4539+
echo -n -e "\r Claude:\t\t\t\t${Font_Red}Failed (Network Connection)${Font_Suffix}\n"
4540+
return
4541+
fi
4542+
if [ "$response" -eq 200 ]; then
4543+
echo -n -e "\r Claude:\t\t\t\t${Font_Green}Yes${Font_Suffix}\n"
4544+
else
4545+
echo -n -e "\r Claude:\t\t\t\t${Font_Red}No${Font_Suffix}\n"
4546+
fi
4547+
}
4548+
45234549
function WebTest_MetaAI() {
45244550
local tmpresult=$(curl ${CURL_DEFAULT_OPTS} -sL 'https://www.meta.ai/' -H 'accept: */*;q=0.8,application/signed-exchange;v=b3;q=0.7' -H 'accept-language: en-US,en;q=0.9' -H "sec-ch-ua: ${UA_SEC_CH_UA}" -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "Windows"' -H 'sec-fetch-dest: document' -H 'sec-fetch-mode: navigate' -H 'sec-fetch-site: none' -H 'sec-fetch-user: ?1' -H 'upgrade-insecure-requests: 1' --user-agent "${UA_BROWSER}")
45254551
if [ -z "$tmpresult" ]; then
@@ -4962,13 +4988,14 @@ function Global_UnlockTest() {
49624988
RegionTest_NetflixCDN &
49634989
WebTest_OpenAI &
49644990
WebTest_Gemini &
4991+
WebTest_Claude &
49654992
WebTest_Wikipedia_Editable &
49664993
WebTest_GooglePlayStore &
49674994
WebTest_GoogleSearchCAPTCHA &
49684995
GameTest_Steam &
49694996
)
49704997
wait
4971-
local array=("Bing Region:" "YouTube CDN:" "Netflix Preferred CDN:" "ChatGPT:" "Google Gemini:" "Wikipedia Editability:" "Google Play Store:" "Google Search CAPTCHA Free:" "Steam Currency:")
4998+
local array=("Bing Region:" "YouTube CDN:" "Netflix Preferred CDN:" "ChatGPT:" "Google Gemini:" "Claude:" "Wikipedia Editability:" "Google Play Store:" "Google Search CAPTCHA Free:" "Steam Currency:")
49724999
echo_result ${result} ${array}
49735000
show_region Forum
49745001
WebTest_Reddit

0 commit comments

Comments
 (0)