WebClient wc = new WebClient();
WebProxy wp = new WebProxy(ip+":"+port);
wc.Proxy = wp;
for (int i = 0; i < max + 1; i++)
{
string address = $"http://realmofthemadgod.appspo*****m/account/register?guid=0&newGUID={mail}%2B{i}@gmail.com&newPassword={psw}";
string str = wc.DownloadString(address);
if (str.Contains("<Error>"))
{
Console.WriteLine("Error on " + i);
}
if (str.Contains("<Success>"))
{
Console.WriteLine("Success on " + i);
}
}
public static string RandomString(int length)
{
string chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
return new string(Enumerable.Repeat(chars, length)
.Select(s => s[rnd.Next(s.Length)]).ToArray());
}