├── Module └── Premiere │ └── QuanX.conf ├── README.md └── Script └── embycrack.js /Module/Premiere/QuanX.conf: -------------------------------------------------------------------------------- 1 | # QuanX rewrite 2 | 3 | hostname = mb3admin.com 4 | 5 | ^https:\/\/mb3admin\.com\/admin\/service(\/registration\/validateDevice|\/appstore\/register|\/registration\/validate|\/registration\/getStatus|\/supporter\/retrievekey) url script-echo-response https://raw.githubusercontent.com/zlking02/Emby/main/Script/embycrack.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Emby Premiere 破解 2 | 3 | ## 文件结构 4 | 5 | - Module: 模块 6 | - Script: 脚本 7 | 8 | ## 使用方法 9 | 10 | ### QuantumultX 11 | 12 | ``` 13 | [rewrite_remote] 14 | https://raw.githubusercontent.com/zlking02/Emby/main/Module/Premiere/QuanX.conf, tag=Emby Premiere, update-interval=86400, enabled=true 15 | ``` 16 | -------------------------------------------------------------------------------- /Script/embycrack.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author: KleinerSource 3 | * 4 | * @fileoverview Example to compose response for rewrite of script-echo-response. 5 | * 6 | * $request.url, $notify(title, subtitle, message), console.log(message), $done(response) 7 | * 8 | * @supported Quantumult X (v1.0.3-build141) 9 | */ 10 | var url = $request.url; 11 | 12 | const myStatus = "HTTP/1.1 200 OK"; 13 | const myHeaders = { 14 | Crack: "KS", 15 | "Access-Control-Allow-Origin": "*", 16 | "Access-Control-Allow-Headers": "*", 17 | "Access-Control-Allow-Method": "*", 18 | "Access-Control-Allow-Credentials": "true", 19 | }; 20 | 21 | if (url.indexOf("/admin/service/registration/validateDevice") != -1) { 22 | obj = { 23 | cacheExpirationDays: 365, 24 | message: "Device Valid", 25 | resultCode: "GOOD", 26 | }; 27 | } else if (url.indexOf("/admin/service/appstore/register") != -1) { 28 | obj = { 29 | featId: "", 30 | registered: true, 31 | expDate: "2099-01-01", 32 | key: "", 33 | }; 34 | } else if (url.indexOf("/admin/service/registration/validate") != -1) { 35 | obj = { 36 | featId: "", 37 | registered: true, 38 | expDate: "2099-01-01", 39 | key: "", 40 | }; 41 | } else if (url.indexOf("/admin/service/registration/getStatus") != -1) { 42 | obj = { 43 | planType: "Cracked", 44 | deviceStatus: "", 45 | subscriptions: [], 46 | }; 47 | } else if (url.indexOf("/admin/service/supporter/retrievekey") != -1) { 48 | obj = { 49 | Success: false, 50 | ErrorMessage: "Supporter not found", 51 | }; 52 | } 53 | 54 | myData = JSON.stringify(obj); 55 | 56 | const myResponse = { 57 | status: myStatus, 58 | headers: myHeaders, // Optional. 59 | body: myData, // Optional. 60 | }; 61 | 62 | $done(myResponse); 63 | --------------------------------------------------------------------------------