Created
October 13, 2020 19:58
-
-
Save meatyite/4ae104b25900e04c3260f74cc484768a to your computer and use it in GitHub Desktop.
Hackertyper in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace hackertyper | |
{ | |
class MainClass | |
{ | |
public static string text = ""; | |
public static string help = "hackertyper by sl4v\n" + | |
"\n-h show help" + | |
"\n-v show version" + | |
"\n-f [file] use file"; | |
public static void Main(string[] args) | |
{ | |
if (args.Length >= 1) | |
{ | |
switch (args[0]) | |
{ | |
case "-h": | |
Console.WriteLine(help); | |
Environment.Exit(0); | |
break; | |
case "-v": | |
Console.WriteLine("I just made this lol. By sl4v"); | |
Environment.Exit(0); | |
break; | |
case "-f": | |
text = System.IO.File.ReadAllText(args[1]); | |
break; | |
} | |
} | |
else | |
{ | |
Console.WriteLine("ELITE H4XING..."); | |
System.Net.WebClient client = new System.Net.WebClient(); | |
text = client.DownloadString("https://hackertyper.net/kernel.txt"); | |
Console.WriteLine("Starting H4X!"); | |
Console.Clear(); | |
} | |
string text_until_now = ""; | |
Random random = new Random(); | |
for (int i = 0; text.Length > i; i++) | |
{ | |
text_until_now += text[i]; | |
if (i % random.Next(2, 12) == 0) | |
{ | |
Console.ReadKey(true); | |
Console.Write(text_until_now); | |
text_until_now = ""; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment