My checker gives me unexpected output help?

  • Thread starter Thread starter BataBo Jokviu
  • Start date Start date
B

BataBo Jokviu

Guest
So Im making a checker and everything works fine when it checks through variable name but when I check it through varibale localPath(dont ask hy I named it like that) when it comes near the end of the list it chcks same account several times and it does it very slowly help.


Here is my code:

UserInput:
Console.WriteLine("Please specify the type of list.");
Console.WriteLine("Type 1 for user");
Console.WriteLine("Type 2 for user:pass");
Console.WriteLine("Type 3 for user:hash:pass");
Console.WriteLine("");
int ListType = int.Parse(Console.ReadLine());


if(ListType > 3)
{
goto UserInput;
}
string localPath = null;

var lines = File.ReadLines("List.txt");
var UnmigratedNumber = 0;
var MigratedNumber = 0;
var AvailableNumber = 0;

using (StreamWriter AvailableWriter = File.AppendText(_outputFileAvailable)) {
using (StreamWriter UnmigratedWriter = File.AppendText(_outputFileUnmigrated))
{
using (StreamWriter MigratedWriter = File.AppendText(_outputFileMigrated))
{
Parallel.ForEach(lines, new ParallelOptions { MaxDegreeOfParallelism = threads }, name =>
{

if (ListType == 2)
{
string pattern = @"\:.*";
string replacement = "";
localPath = Regex.Replace(name, pattern, replacement,
RegexOptions.IgnoreCase,
TimeSpan.FromSeconds(0.5));
}

if (ListType == 3)
{
string pattern1 = @":.*?:";
string replacement1 = ":";
string RemoveHash = Regex.Replace(name, pattern1, replacement1, RegexOptions.IgnoreCase, TimeSpan.FromSeconds(0.5));
string pattern2 = @"\:.*";
string replacement2 = "";
localPath = Regex.Replace(RemoveHash, pattern2, replacement2, RegexOptions.IgnoreCase, TimeSpan.FromSeconds(0.5));
}
// foreach (var line in lines)
{
if (ListType == 1) {
args = new[]
{
"https://api.mojang.com/users/profiles/minecraft/" + name
};
}
else {
args = new[]
{
"https://api.mojang.com/users/profiles/minecraft/" + localPath
};
}
using (var client1 = new WebClient())
{

var content = string.Empty;
var porxies2 = File.ReadLines("Proxies.txt");
foreach (var proxy in porxies2)
{
WebProxy wp = new WebProxy(proxy.ToString());
client1.Proxy = wp;
try
{
content = ScrubContent(client1.DownloadString(args[0]));
break;
}
catch (Exception ex)
{
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("BAD PROXY {0}", proxy);

}
}

try
{
var idchecked = idcheck.Matches(content).Cast<Match>().Single().Groups[1];

args = new[]
{
"https://sessionserver.mojang.com/session/minecraft/profile/" + idchecked

};
}
catch (InvalidOperationException ex)
{
if(ListType == 1)
{
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("Available name " + name);
AvailableWriter.WriteLine(name);
AvailableNumber++;
}
else
{
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("Available name " + localPath);
AvailableWriter.WriteLine(localPath);
AvailableNumber++;
}
}
using (var client2 = new WebClient())
{
var content1 = string.Empty;
var porxies = File.ReadLines("Proxies.txt");
foreach (var proxy in porxies)
{
WebProxy wp = new WebProxy(proxy.ToString());
client2.Proxy = wp;
try
{
content1 = ScrubContent(client2.DownloadString(args[0]));
break;
}
catch (Exception ex)
{
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("BAD PROXY {0}", proxy);
}
}

try
{
var migrationchecked = Migrationcheck.Matches(content1).Cast<Match>().Single().Groups[1];
Console.ForegroundColor = ConsoleColor.Green;
if(ListType == 1) { Console.WriteLine("UNMIGRATED " + name); UnmigratedWriter.WriteLine(name); }
else { Console.WriteLine("UNMIGRATED " + localPath); UnmigratedWriter.WriteLine(localPath); }


UnmigratedNumber++;
Console.Title = "Cookie Legacy checker | by BataBo | Checked: " + (UnmigratedNumber + MigratedNumber) + " | Good:" + UnmigratedNumber;

}
catch (InvalidOperationException ex)
{

Console.ForegroundColor = ConsoleColor.Red;
if(ListType == 1) {
Console.WriteLine("MIGRATED " + name);
MigratedWriter.WriteLine(name);
}
else
{
Console.WriteLine("MIGRATED " + localPath);
MigratedWriter.WriteLine(localPath);
}

MigratedNumber++;
Console.Title = "Cookie Legacy checker | by BataBo | Checked: " + (UnmigratedNumber + MigratedNumber) + " | Good:" + UnmigratedNumber;
}

}
}
}






});

here is the output when I manually remove :pass section and check throught varibale name:

Your key is valid Threads : 100 Please specify the type of list. Type 1 for u - Pastebin.com

And it took 30s to finish

here is the output when i check though variable localPath

Your key is valid Threads : 250 Please specify the type of list. Type 1 for u - Pastebin.com

And it took 90s to finish

Continue reading...
 
Back
Top