Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Net;
- using System.IO;
- namespace clanbase_ggl_com
- {
- class Program
- {
- //Coded by Metts - metts.blog.hu
- static WebRequest wrGETURL;
- static Stream objStream;
- static StreamReader objReader;
- static string url = "http://clanbase.ggl.com/personlist.php?email=";
- static string file;
- static List<string> list = new List<string>();
- static string email;
- static string get;
- static void Main(string[] args)
- {
- Console.WriteLine("////////---Coded by Metts - metts.blog.hu---////////");
- Console.Write("File (file.txt): ");
- file = Console.ReadLine();
- if (!File.Exists(file))
- {
- Console.WriteLine("File not exists");
- Console.ReadLine();
- }
- else
- {
- using (StreamReader sr = new StreamReader(file))
- {
- while (sr.Peek() >= 0)
- {
- list.Add(sr.ReadLine());
- }
- }
- int all = list.Count;
- Console.WriteLine("\nProgram Start \nLinenumber: " + list.Count);
- for (int i = 0; i < list.Count; i++)
- {
- email = list[i];
- get = url + "" + email;
- Console.WriteLine("------------------------------------------------------------------------------");
- Console.WriteLine("ID : " + i);
- Console.WriteLine("LINK : " + get);
- Console.WriteLine("EMAIL: " + email);
- Console.Write("ISSET: ");
- try
- {
- wrGETURL = WebRequest.Create(get);
- objStream = wrGETURL.GetResponse().GetResponseStream();
- objReader = new StreamReader(objStream);
- string end = objReader.ReadToEnd();
- if (end.Contains("No players matching criteria "))
- Console.WriteLine("false");
- else
- {
- Console.WriteLine("true");
- Console.WriteLine(email);
- File.AppendAllText("output.txt", email + "\n");
- all++;
- }
- }
- catch (Exception e)
- {
- Console.WriteLine("The process failed: {0}", e.ToString());
- }
- Console.WriteLine("------------------------------------------------------------------------------");
- }
- Console.WriteLine("END ({0}/{1})", list.Count, all);
- Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement