Advertisement
Anonim_ID

Catatan Akhir Ramadhan 2014

Jul 27th, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.62 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. namespace Ramadhan2014
  7. {
  8.     class Program
  9.     {
  10.         static string base64decode(string anu)
  11.         {
  12.             return new System.Text.ASCIIEncoding().GetString(Convert.FromBase64String(anu));
  13.         }
  14.         static void centerText(String text)
  15.         {
  16.             Console.ForegroundColor = ConsoleColor.White;
  17.             Console.Write(new string(' ', (Console.WindowWidth - text.Length) / 2));
  18.             Console.WriteLine(text);
  19.         }
  20.         static void Main(string[] args)
  21.         {
  22.             string alone = "                                                  \r\n"  
  23. "                   ░▒▓▓▒▒░                        \r\n"  
  24. "              ░▒▓██▓▒░▒▒▓▓██▓                     \r\n"  
  25. "           ▒▓██▓▒           ██                    \r\n"  
  26. "         ▓██▒        ▓▓▒    ░██                   \r\n"  
  27. "       ▒█▓     ▒▒▒▓███░ ░░░   ▓█                  \r\n"  
  28. "      ▒█░ ▒▒ ▒  ░ ░░░  ▒██▓█▒  ▒█░                \r\n"  
  29. "     ░█   ░▓  ▒▓▓█   ▒   ███▓  ░█▓█▓▓▓▓▒░         \r\n"  
  30. "     █▒     ▒░█▓▒█▒     ░░▓▒▓▒░▒▒░▒▓█▓▒▓██▓       \r\n"  
  31. "    ░█   ░    ▓█▓█▓ ▓▒░▓█░ ░  ░ ░▒▓█▓ ▒  ░██▒     \r\n"  
  32. "    ▓█ ▒▒░   ░░▒▒░   ░ ▒     ░▓▓▓▓▓░  ▓░   ░██    \r\n"  
  33. "    █▓         ██▒░    ░▒░▒████▓▓▓░░░ ▒      ██   \r\n"  
  34. "    █▒      ▓▒ █▓████████████▓▒ ░░░▓▒         ▓█  \r\n"  
  35. "    █▓▒     █▒ ▓▒     ░░    ░ ░▒▒▒▒▓▒    ▒▓    ▓█ \r\n"  
  36. "    █░▓▓░    ▒▒ ▒ ░    ░░▒▒ ░░ ░░▒   ░  ░█░     █▒\r\n"  
  37. "   ░█  ▓ ▓▒     ▒  ▒▒▒░          ▒   ▒ ▒█      ░▒█\r\n"  
  38. "   █▓    ▒▓     ░    ░░       ░░     ░░█        ░█\r\n"  
  39. "  ░█ ▒▓        ▒▓       ░▒    ░▒      █░        ░█\r\n"  
  40. "  █▓ ▒░░  ░     ▓▓     ░▒         ░░ ▒▒ ▒       █░\r\n"  
  41. "  █▓  ▒▒  ▒▓     ▒▓               ░▒░▓         ██ \r\n"  
  42. "  ▒█▓     ▓▓      ▒▓░░   ▒▓▓        ░░        ▓█  \r\n"  
  43. "    ██░  ░█░       ▒▓▒   ░░▒  ░▒             ██   \r\n"  
  44. "     ▒██  ▒░░   ░▒   ░        ▓             ██    \r\n"  
  45. "       ▓█▓ ▒▓▒░  ░            ▒▓           █▓     \r\n"  
  46. "         ▓█▒  ▒▒              ░▓         ░█▒      \r\n"  
  47. "           ██░ ░▓░            ▒      ░   █░       \r\n"  
  48. "            ▒██▓▒▒▒   ▒      ░░   ░ ▒▒▒▓█▒        \r\n"  
  49. "              ░▓▓▓▓▓▒░▓▓▒▒▓▓ ▒▒▓███▓███░          \r\n"  
  50. "                   ░▒▓▒▒▓▒▒▒▓▒▒░░                 \r\n";
  51.             Console.Title = base64decode("U2VsYW1hdCBIYXJpIFJheWEgSWR1bCBGaXRyaSAxIFN5YXdhbCAxNDM1SCB8IGJ5IEFuZ2tp");
  52.             string[] pertamax = { "U2VsYW1hdCBIYXJpIFJheWEgSWR1bCBGaXRyaSAxIFN5YXdhbCAxNDM1SA0K", "VGFxYWJiYWxhbGxhaHUgbWlubmEgd2EgbWlua3VtJyBzaGl5YW1hbmEgd2Egc2hpeWFtYWt1bScgd2EgamEnYWxhbmFsbGFodSBtaW5hbCAnYWlkaW4gd2FsIGZhaXppbi4=" };
  53.             Console.ForegroundColor = ConsoleColor.White;
  54.             for (int i = 0; i < pertamax.Length; i  )
  55.             {
  56.                 foreach (char anu in base64decode(pertamax[i]))
  57.                 {
  58.                     Console.Write(anu);
  59.                     Thread.Sleep(100);
  60.                 }
  61.             }
  62.             Console.WriteLine("\r\n"); centerText("--------------------------------------------------------------");
  63.             Thread.Sleep(1000);
  64.             string[] keduax = { "U2ViZWx1bSB0YWtiaXIgYmVya3VtYW5kYW5nLi4uDQo=", "U2ViZWx1bSBhamFsIG1lbmplbXB1dC4uLg0K", "U2ViZWx1bSBqYXJpbmdhbiBvdmVyIGxvYWQuLi4NCg==", "SWppbmthbiA=" };
  65.             Console.ForegroundColor = ConsoleColor.Green;
  66.             for (int i = 0; i < keduax.Length; i  )
  67.             {
  68.                 foreach (char anu in base64decode(keduax[i]))
  69.                 {
  70.                     Console.Write(anu);
  71.                     Thread.Sleep(100);
  72.                 }
  73.             }
  74.             Console.ForegroundColor = ConsoleColor.White;
  75.             foreach (char anu in base64decode("QW5na2kgQW5n"))
  76.             {
  77.                 Console.Write(anu);
  78.                 Thread.Sleep(500);
  79.             }
  80.             Console.ForegroundColor = ConsoleColor.Green;
  81.             foreach (char anu in base64decode("bWVtb2hvbiBtYWFmIGxhaGlyIGRhbiBiYXRoaW4uLi4NCg0K"))
  82.             {
  83.                 Console.Write(anu);
  84.                 Thread.Sleep(100);
  85.             }
  86.  
  87.             Console.WriteLine("\r\n"); centerText("--------------------------------------------------------------");
  88.             Thread.Sleep(1000);
  89.             Console.BackgroundColor = ConsoleColor.DarkGreen;
  90.             centerText("'Orang yang paling mulia adalah Orang yang mau memaafkan kesalahan orang lain!'\r\n");
  91.             Thread.Sleep(1000);
  92.             Console.ResetColor();
  93.             Console.ForegroundColor = ConsoleColor.White;
  94.      
  95.             Console.Write(base64decode("bWFhZmthbj8geWEvdGlkYWs6IA=="));
  96.             string respon = Console.ReadLine();
  97.             if (respon.ToLower()  == "ya")
  98.             {
  99.                 centerText("--------------------------------------------------------------\r\n");
  100.                 string[] ketigax = { "VGhlIGhvbHkgYW5kIGJlYXV0aWZ1bCBTeWF3YWwgd2lsbCBjb21lIHNvb24uLi4NCg==", "VGhlcmUgaXMgbm8gd29yZCBwcm9wZXIgdG8gd2VsY29tZSBpdC4uLg0K", "RXhjZXB0IHRoZSB3b3JkIG9mIHByYXkgYW5kIGZvcmdpdmVuZXNzLi4uDQo=", "TXkgTWFqZXN0eSBpZiB5b3UgZm9yZ2l2ZSBhbGwgbXkgZmF1bHQuLi4NCg==", "QW5kIGhvcGUgeW91ciB3b3JzaGlwIGFjY2VwdGVkIGJ5IEFsbGFoIFRoZSBHb2Qgb2YgTWVyY2lmdWwgYW5kIHRoZSBCZW5lZmljZW50Li4uDQo=" };
  101.                 Console.ForegroundColor = ConsoleColor.Green;
  102.                 for (int i = 0; i < ketigax.Length; i  )
  103.                 {
  104.                     foreach (char anu in base64decode(ketigax[i]))
  105.                     {
  106.                         Console.Write(anu);
  107.                         Thread.Sleep(100);
  108.                     }
  109.                 }
  110.             }
  111.             else if (respon == "tidak")
  112.             {
  113.                 Console.ForegroundColor = ConsoleColor.Red;
  114.                 Console.WriteLine(base64decode("ZGFmdXFxIGR1ZGUgOlY="));
  115.             }
  116.             else
  117.             {
  118.                 Console.ForegroundColor = ConsoleColor.Red;
  119.                 Console.WriteLine(base64decode("Pz8/IDonKA=="));
  120.             }
  121.             centerText("--------------------------------------------------------------\r\n");
  122.             Console.BackgroundColor = ConsoleColor.DarkGreen;
  123.             Console.ForegroundColor = ConsoleColor.White;
  124.             foreach (char anu in "Let's write all the mistakes down in the sand...\r\nAnd let the wind of forgiveness erase it away...\r\n")
  125.             {
  126.                 Console.Write(anu);
  127.                 Thread.Sleep(50);
  128.             }
  129.             Console.ResetColor();
  130.  
  131.             foreach (char anu in alone)
  132.             {
  133.                 Console.Write(anu);
  134.                 Thread.Sleep(5);
  135.             }
  136.             Console.ReadKey();
  137.         }
  138.     }
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement