Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import time
- valid = 0
- invalid = 0
- email = ''
- password = ''
- def checker():
- global valid
- global invalid
- c = requests.get('https://www.epicgames.com/id/api/location')
- other = {
- "Host":"www.epicgames.com",
- "Connection":"Keep-Alive",
- "Accept":"application/json, text/plain, */*",
- "Accept-Language":"en-US",
- "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EpicGamesLauncher/10.10.7-10732818+++Portal+Release-Live UnrealEngine/4.21.0-10732818+++Portal+Release-Live Chrome/59.0.3071.15 Safari/537.36",
- "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
- "X-Requested-With":"XMLHttpRequest",
- "Referer":"https://www.epicgames.com/id/login",
- "Accept-Encoding": "gzip, deflate"
- }
- api = 'https://www.epicgames.com/id/api/login'
- loc = ""
- # c = requests.get('https://www.epicgames.com/id/api/location')
- headers = {
- "Host":"www.epicgames.com",
- "Connection":"Keep-Alive",
- "Accept":"application/json, text/plain, */*",
- "Accept-Language":"en-US",
- "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EpicGamesLauncher/10.10.7-10732818+++Portal+Release-Live UnrealEngine/4.21.0-10732818+++Portal+Release-Live Chrome/59.0.3071.15 Safari/537.36",
- "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
- "X-Requested-With":"XMLHttpRequest",
- "Referer":"https://www.epicgames.com/id/login",
- "Accept-Encoding": "gzip, deflate"
- }
- r = requests.get('https://www.epicgames.com/id/api/csrf',headers=headers)
- for c in r.cookies:
- f = str(c)
- if 'XSRF-TOKEN' in f:
- CSRF = f.replace('<Cookie XSRF-TOKEN=','')
- CSRF = CSRF.replace('for www.epicgames.com/id>','')
- print(CSRF)
- headers2 = {
- "Host":"www.epicgames.com",
- "Connection":"Keep-Alive",
- "Accept":"application/json, text/plain, */*",
- "Accept-Language":"en-US",
- "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EpicGamesLauncher/10.10.7-10732818+++Portal+Release-Live UnrealEngine/4.21.0-10732818+++Portal+Release-Live Chrome/59.0.3071.15 Safari/537.36",
- "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
- "X-Requested-With":"XMLHttpRequest",
- "X-XSRF-TOKEN":CSRF,
- "Referer":"https://www.epicgames.com/id/login",
- "Accept-Encoding": "gzip, deflate"
- }
- i = requests.get('https://www.epicgames.com/id/api/csrf',headers=headers2)
- for m in i.cookies:
- k = str(m)
- if 'XSRF-TOKEN' in k:
- CSRF2 = k.replace('<Cookie XSRF-TOKEN=','')
- CSRF2 = CSRF2.replace('for www.epicgames.com/id>','')
- print(CSRF2)
- headers3 = {"Content-Type":"application/json;charset=UTF-8",
- "Host":"www.epicgames.com",
- "Connection":"keep-alive",
- "Content-Lenth":"87",
- "Accept":"application/json, text/plain, */*",
- "Accept-Lnaguage":"en-US",
- "origin":"https://www.epicgames.com",
- "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EpicGamesLauncher/10.10.7-10732818+++Portal+Release-Live UnrealEngine/4.21.0-10732818+++Portal+Release-Live Chrome/59.0.3071.15 Safari/537.36",
- "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
- "X-Requested-With":"XMLHttpRequest",
- "X-XSRF-TOKEN":CSRF2,
- "Referer":"https://www.epicgames.com/id/login",
- "Accept-Encoding":"gzip, deflate"
- }
- data = {
- 'email':email,
- 'password':password,
- 'rememberMe':'true',
- 'captcha':'/'
- }
- time.sleep(2)
- o = requests.post(api,json=data,headers=headers3)
- print(o.text)
- input()
- checker()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement