forked from shwang1114/InjectLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paddle_act.js
99 lines (91 loc) · 2.35 KB
/
paddle_act.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
let url = $request.url;
let paddleActivate = () => {
if (url !== "https://v3.paddleapi.com/3.2/license/activate") return;
let body = $request.body.split("&");
let product_id = "";
for (let k of body) {
if (k.indexOf("product_id") != -1) {
product_id = k.split("=")[1];
}
}
$done({
response: {
body: JSON.stringify({
success: true,
response: {
product_id: product_id,
activation_id: "QiuChenly",
type: "personal",
expires: 1,
expiry_date: 1999999999999,
},
}),
},
});
};
let paddleVerify = () => {
if (url !== "https://v3.paddleapi.com/3.2/license/verify") return;
let body = JSON.stringify({
success: true,
response: {
type: "personal",
expires: 1,
expiry_date: 1999999999999,
},
});
$done({
response: {
body,
},
});
};
let elpassManagement = () => {
if (url !== "https://api.elpass.app/device/management") return;
let body = JSON.stringify({
"email": "[email protected]",
"subscriptionBillingPeriod": null,
"subscriptionEndDate": 99999502400,
"subscriptionSource": null,
"autoRenew": true,
"trial": false
});
$done({
response: {
body,
},
});
};
let elpassInit = () => {
if (url !== "https://api.elpass.app/device/init") return;
let body = JSON.stringify({
"code": 0,
"subscriptionBillingPeriod": null,
"subscriptionEndDate": 99999502400, //5100年授权
"subscriptionSource": null,
"autoRenew": true,
"trial": false
});
$done({
response: {
body,
},
});
};
let elpassActiveWithKey = () => {
if (url !== "https://api.elpass.app/device/activate-with-key") return;
let body = JSON.stringify({
"code": 0,
"license": "没有密钥 这个注入伪造信息是没有用的"
});
$done({
response: {
body,
},
});
};
paddleActivate();
paddleVerify();
//这里可以用通用有效授权信息伪造下发即可伪造出真实激活状态
elpassManagement();
elpassInit();
elpassActiveWithKey();