Advertisement
testlolololollo

Untitled

Feb 3rd, 2020
1,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. import requests
  2. import time
  3.  
  4. valid = 0
  5. invalid = 0
  6.  
  7. email = ''
  8. password = ''
  9.  
  10. def checker():
  11. global valid
  12. global invalid
  13. c = requests.get('https://www.epicgames.com/id/api/location')
  14. other = {
  15. "Host":"www.epicgames.com",
  16. "Connection":"Keep-Alive",
  17. "Accept":"application/json, text/plain, */*",
  18. "Accept-Language":"en-US",
  19. "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",
  20. "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
  21. "X-Requested-With":"XMLHttpRequest",
  22. "Referer":"https://www.epicgames.com/id/login",
  23. "Accept-Encoding": "gzip, deflate"
  24. }
  25. api = 'https://www.epicgames.com/id/api/login'
  26. loc = ""
  27. # c = requests.get('https://www.epicgames.com/id/api/location')
  28. headers = {
  29. "Host":"www.epicgames.com",
  30. "Connection":"Keep-Alive",
  31. "Accept":"application/json, text/plain, */*",
  32. "Accept-Language":"en-US",
  33. "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",
  34. "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
  35. "X-Requested-With":"XMLHttpRequest",
  36. "Referer":"https://www.epicgames.com/id/login",
  37. "Accept-Encoding": "gzip, deflate"
  38. }
  39. r = requests.get('https://www.epicgames.com/id/api/csrf',headers=headers)
  40. for c in r.cookies:
  41. f = str(c)
  42. if 'XSRF-TOKEN' in f:
  43. CSRF = f.replace('<Cookie XSRF-TOKEN=','')
  44. CSRF = CSRF.replace('for www.epicgames.com/id>','')
  45. print(CSRF)
  46. headers2 = {
  47. "Host":"www.epicgames.com",
  48. "Connection":"Keep-Alive",
  49. "Accept":"application/json, text/plain, */*",
  50. "Accept-Language":"en-US",
  51. "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",
  52. "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
  53. "X-Requested-With":"XMLHttpRequest",
  54. "X-XSRF-TOKEN":CSRF,
  55. "Referer":"https://www.epicgames.com/id/login",
  56. "Accept-Encoding": "gzip, deflate"
  57. }
  58. i = requests.get('https://www.epicgames.com/id/api/csrf',headers=headers2)
  59. for m in i.cookies:
  60. k = str(m)
  61. if 'XSRF-TOKEN' in k:
  62. CSRF2 = k.replace('<Cookie XSRF-TOKEN=','')
  63. CSRF2 = CSRF2.replace('for www.epicgames.com/id>','')
  64. print(CSRF2)
  65. headers3 = {"Content-Type":"application/json;charset=UTF-8",
  66. "Host":"www.epicgames.com",
  67. "Connection":"keep-alive",
  68. "Content-Lenth":"87",
  69. "Accept":"application/json, text/plain, */*",
  70. "Accept-Lnaguage":"en-US",
  71. "origin":"https://www.epicgames.com",
  72. "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",
  73. "X-Epic-Strategy-Flags":"guardianEmailVerifyEnabled=false;guardianEmbeddedDocusignEnabled=false;registerEmailPreVerifyEnabled=false;unrealEngineGamingEula=true",
  74. "X-Requested-With":"XMLHttpRequest",
  75. "X-XSRF-TOKEN":CSRF2,
  76. "Referer":"https://www.epicgames.com/id/login",
  77. "Accept-Encoding":"gzip, deflate"
  78. }
  79. data = {
  80. 'email':email,
  81. 'password':password,
  82. 'rememberMe':'true',
  83. 'captcha':'/'
  84. }
  85. time.sleep(2)
  86. o = requests.post(api,json=data,headers=headers3)
  87. print(o.text)
  88. input()
  89.  
  90. checker()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement