Advertisement
Guest User

Untitled

a guest
Feb 26th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. using System;
  2.  
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace Exploit
  9. {
  10. class Program
  11. {
  12. static void WriteCommands()
  13. {
  14. Console.WriteLine("clear - Clears the console.");
  15. Console.WriteLine("exit - Exists the program.");
  16. Console.WriteLine("commands/cmds - Writes a list of commands");
  17. }
  18. static void Initiate()
  19. {
  20. while (true)
  21. {
  22. Console.WriteLine("Please say commands (or cmds) for a list of the commands.");
  23. Console.Write(">");
  24. string Input = Console.ReadLine();
  25. if (Input == "cmds" || Input == "commands")
  26. {
  27. break;
  28. }
  29. else
  30. {
  31. Console.WriteLine("Invalid command. Please try again.");
  32. }
  33. }
  34. WriteCommands();
  35. while (true)
  36. {
  37. Console.Write(">");
  38. }
  39. }
  40. static void Main(string[] args)
  41. {
  42. Console.WriteLine("Hello, user. Welcome to Agluk's Exploit.");
  43. Console.WriteLine("Please verify your account.");
  44. Console.Write("Username: ");
  45. string Username = Console.ReadLine();
  46. Console.Write("Password: ");
  47. string Password = Console.ReadLine();
  48. if (Username == "Agluk15" && Password == "Agluk144")
  49. {
  50. Console.WriteLine("Successful login.");
  51. Initiate();
  52. }
  53. else
  54. {
  55. for (int Iteration = 5; Iteration > 0; Iteration--)
  56. {
  57. Console.WriteLine("Incorrect login. Closing in " + Iteration + " seconds.");
  58. System.Threading.Thread.Sleep(1000);
  59. }
  60. }
  61. }
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement