From a7c04ec30fd5a1a2f92f1636d28ed210522a6268 Mon Sep 17 00:00:00 2001 From: Tiiwoo Date: Sun, 8 Sep 2024 12:21:04 +0800 Subject: [PATCH] feat: remove aptakube --- Modules/Aptakube.sgmodule | 12 ----------- Script/aptakube.js | 43 --------------------------------------- 2 files changed, 55 deletions(-) delete mode 100644 Modules/Aptakube.sgmodule delete mode 100644 Script/aptakube.js diff --git a/Modules/Aptakube.sgmodule b/Modules/Aptakube.sgmodule deleted file mode 100644 index 4dbab2f..0000000 --- a/Modules/Aptakube.sgmodule +++ /dev/null @@ -1,12 +0,0 @@ -#!name=Unlock Aptakube -#!desc=Unlock Aptakube and hijack events -#!system=mac -#!category=🕹️ Unlock - -[MITM] -hostname = %APPEND% aptakube.com, *aptabase.com - -[Script] -Aptakube = type=http-request,pattern=^https://aptakube.com/api/v1/license/validate,requires-body=1,max-size=0,debug=1,script-path=https://ruleset.tiiwoo.moe/Script/aptakube.js -Events = type=http-request,pattern=^https://eu.aptabase.com/api/v0/events,requires-body=1,max-size=0,debug=1,script-path=https://ruleset.tiiwoo.moe/Script/aptakube.js -Notice = type=http-request,pattern=^https://aptakube.com/api/v1/license/notice,requires-body=1,max-size=0,debug=1,script-path=https://ruleset.tiiwoo.moe/Script/aptakube.js \ No newline at end of file diff --git a/Script/aptakube.js b/Script/aptakube.js deleted file mode 100644 index 43630c4..0000000 --- a/Script/aptakube.js +++ /dev/null @@ -1,43 +0,0 @@ -let url = $request.url; - -let activate = () => { - if (url !== 'https://aptakube.com/api/v1/license/validate') return; - let body = JSON.stringify({ - license_key: 'V2HRZ-L0EP9-XWWZ2-1BI4O-5G1VZ-K1ZRE', - token: - 'eyJhbGciOiJIUzUxMiJ9.eyJleHBpcnlfZGF0ZSI6IjIwMzctMTItMzFUMjM6NTk6NTkuMDAwWiIsImxpY2Vuc2Vfa2V5IjoiVjJIUlotTDBFUDktWFdXWjItMUJJNE8tNUcxVlotSzFaUkUiLCJpYXQiOjE3MjQ5MjU0MDgsImlzcyI6ImFwdGFrdWJlLWNvbSIsImV4cCI6MTcyNTA5ODIwOH0.LAaakMym4jYZedLhVUQ25vI_dx4TvSwNLitT2lAS_Ia5HbawTHuGK964rfQlveto_JAVur_ZlQL2GScG3cW3AA', - expiry_date: '2037-12-31T23:59:59.000Z', - }); - $done({ - response: { - body, - }, - }); -}; - -let eventHijack = () => { - if (url !== 'https://eu.aptabase.com/api/v0/events') return; - // return empty body - let body = JSON.stringify({}); - $done({ - response: { - body, - }, - }); -}; - -let noticeHijack = () => { - if (url !== 'https://aptakube.com/api/v1/license/notice') return; - let body = JSON.stringify({ - msg: 'OK', - }); - $done({ - response: { - body, - }, - }); -}; - -activate(); -eventHijack(); -noticeHijack();