CoolSimple MC Account Generator

Posts 1–15 of 18 · Page 1 of 2
Simple MC Account Generator
I dunno if it works. My friend told me the link, and requested me to make this shit.
Compile it yourself cuz I'm lazy to upload it:
Code:
using System;
using System.Net;
using System. IO;
using System.Text.RegularExpressions;
using System.Collections.Generic;

internal static class Program
{

    private static WebClient client = new WebClient();
    private static List<string> generatedAccs = new List<string>();
    public static void Main()
    {
        Console.Title = "Minecraft account generator - by Raydenman from mpgh.net";
        Console.Write("Number of accounts to generate: ");
        string number = Console.ReadLine();
        if (IsNumeric(number) != true)
        {
            // Not a number ...
            Main();
            return;
        }

        for (var i = 0; i < Convert.ToInt32(number); i++)
        {
            Console.WriteLine(genAcc());
        }
        Console.WriteLine();
        Console.WriteLine(number + " accounts generated successfully!");
        Console.Write("Would you like to save them in a text file on your Desktop? (y/n) ");
        string reply = Console.ReadLine();
        if (reply.ToLower() == "y")
        {
            SaveToTextFile();
        }
    }

    public static string genAcc()
    {
        try
        {
            string strpage = client.DownloadString("http://minecraftoriginal.com.br/gerador/J3S984MSjrT92sSA.php");
            MatchCollection mc = Regex.Matches(strpage, "([A-Za-z0-9_.+-])+@[A-Za-z-0-9]+\\.[a-za-z0-9]{2,10}:[A-Za-z0-9]{3,}");
            generatedAccs.Add(mc[0].ToString());
            return mc[0].ToString();
        }
        catch
        {
            return genAcc();
        }
    }

    public static void SaveToTextFile()
    {
        if (!(File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\MinecraftAccounts.txt")))
        {
            File.Create(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\MinecraftAccounts.txt").Dispose();
        }

        for (var i = 0; i < generatedAccs.Count; i++)
        {
            StreamWriter sw = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\MinecraftAccounts.txt", true);
            sw.WriteLine(generatedAccs[i] + Environment.NewLine);
            sw.Close();
        }
    }

    public static bool IsNumeric(object Expression)
    {
        double retNum;

        bool isNum = Double.TryParse(Convert.ToString(Expression), System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum);
        return isNum;
    }
}
Quote Originally Posted by fsp View Post
Why have a program do something thats available online, from your source code its pulling information from: http://minecraftoriginal.com.br/gera...MSjrT92sSA.php
I put 30 accounts to generate. It does automatically, instead of refreshing 30 times manually, maybe you are too stupid to understand.
Exactly, I use regular expressions to get the account generated.
@YoloNiggs compile it with your favourite C# IDE.
Quote Originally Posted by Jew View Post



thats exacly what he did?

webclient and regex.
Yes, what's the problem? ...
Quote Originally Posted by Raydenman View Post
I think you don't even understand how the application works.
In all fairness he does though

Quote Originally Posted by Jew View Post



thats exacly what he did?

webclient and regex.
Quote Originally Posted by Raydenman View Post
Yes, what's the problem? ...
no problem at all, good job
Quote Originally Posted by Jew View Post

no problem at all, good job
I think you don't even understand how the application works.
Quote Originally Posted by Raydenman View Post
I think you don't even understand how the application works.

haha,ok dude

lets not get ahead of ourselfs. its an ultra simple c# application. not even multithreaded.

believe me i have made much more complicated things in my life
Quote Originally Posted by Jew View Post



haha,ok dude

lets not get ahead of ourselfs. its an ultra simple c# application. not even multithreaded.

believe me i have made much more complicated things in my life
Why should I use multi-threads in this case?
The style of multithreading you would like to use depends on what you are trying to accomplish.
Parallel programming, etc.
Use thread when you need different execution paths.
In some cases you should it in situations when you want to make things faster.
NB: A console based application haven't GUI thread that needs to repaint the windows and accept user input, so a console application may be ''' a bit ''' quicker.
So, no, THIS IS NOT THE CASE.
"believe me i have made much more complicated things in my life"
I don't develop like you in VB.NET or that shitty "Java".
I develop on C/C++, .NET, I know meta-scripting languages and other.
PS: Your mpgh name describes yourself.
Quote Originally Posted by Raydenman View Post
PS: Your mpgh name describes yourself.
no shit

Also if it takes 1 second for their server to respond to a request.

sending 200 in a second would make it at least 100 times faster.
Quote Originally Posted by Jew View Post

no shit

Also if it takes 1 second for their server to respond to a request.

sending 200 in a second would make it at least 100 times faster.
Ok, 100% noob approved on programming
Quote Originally Posted by Raydenman View Post
Ok, 100% noob approved on programming
thats why i made the fastest scraper on the internet right
Quote Originally Posted by Jew View Post

thats why i made the fastest scraper on the internet right
Fast or slow nevermind .
Stop spamming my topic please.
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?