Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Windows.Forms;
- using System.Net;
- using System.Text.RegularExpressions;
- using Microsoft.VisualBasic.FileIO;
- using System.Collections.Generic;
- internal static class xMinecraft
- {
- private static WebClient wc = new WebClient();
- private static List<string> gen = new List<string>();
- private static int Count;
- public static void Main()
- {
- Console.Title = "xMinecraft - Fast minecraft account generator";
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine(" __ __ _ __ _ ");
- Console.WriteLine(" | \\/ (_) / _| | ");
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine(" __ _| \\ / |_ _ __ ___ ___ _ __ __ _| |_| |_ ");
- Console.WriteLine(" \\ \\/ / |\\/| | | '_ \\ / _ \\/ __| '__/ _` | _| __|");
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine(" > <| | | | | | | | __/ (__| | | (_| | | | |_ ");
- Console.WriteLine(" /_/\\_\\_| |_|_|_| |_|\\___|\\___|_| \\__,_|_| \\__|");
- Console.ForegroundColor = ConsoleColor.DarkGray;
- Console.WriteLine();
- Console.WriteLine(" Simple Minecraft account generator open-source " + Environment.NewLine + " by @srsly from Inforge.net");
- Console.WriteLine();
- Console.Write("How many accounts would you like to make? ");
- string accs = Console.ReadLine();
- if (IsNumeric(accs))
- {
- GenAccs(Convert.ToInt32(accs));
- }
- else
- {
- MessageBox.Show("Not numeric!", "xMinecraft", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- }
- public static void GenAccs(int number)
- {
- string pattern = "([A-Za-z0-9_.+-]+@(?:[A-Za-z-0-9])+\\.[a-za-z0-9]{2,10}:(?:[A-Za-z0-9]{3,}))";
- Console.ForegroundColor = ConsoleColor.Green;
- for (var i = 0; i < number; i++)
- {
- try
- {
- string strPage = wc.DownloadString("http://www.crackedminecraft.net/freeaccounts.php");
- MatchCollection mc = Regex.Matches(strPage, pattern);
- foreach (Match m in mc)
- {
- Console.WriteLine("#{0} - {1}", Count + 1, m);
- gen.Add(m.ToString());
- Count += 1;
- }
- }
- catch (Exception Ex)
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine(Ex.Message);
- Console.ForegroundColor = ConsoleColor.DarkGray;
- }
- }
- Console.ForegroundColor = ConsoleColor.DarkGray;
- Console.WriteLine();
- Console.WriteLine(Count + " accounts generated successfully!");
- Console.Write("Do you want to save them on your Desktop? (y/n) ");
- string reply = Console.ReadLine();
- if (reply.ToLower() == "y")
- {
- try
- {
- string p = SpecialDirectories.Desktop + "\\xMinecraftList.txt";
- int fn = Microsoft.VisualBasic.FileSystem.FreeFile();
- Microsoft.VisualBasic.FileSystem.FileOpen(fn, p, Microsoft.VisualBasic.OpenMode.Output, Microsoft.VisualBasic.OpenAccess.Default, Microsoft.VisualBasic.OpenShare.Default, -1);
- Microsoft.VisualBasic.FileSystem.FileClose();
- System.IO.StreamWriter ow = new System.IO.StreamWriter(p, true);
- for (var i = 0; i < gen.Count; i++)
- {
- ow.WriteLine(gen[i]);
- }
- ow.Close();
- MessageBox.Show("All accounts are now saved on a text file!", "xMinecraft", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- catch (Exception Ex)
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine(Ex.Message);
- Console.ForegroundColor = ConsoleColor.DarkGray;
- }
- }
- }
- static bool IsNumeric(this string s)
- {
- float output;
- return float.TryParse(s, out output);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement