Advertisement
goku13l

Untitled

Oct 24th, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.56 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.IO;
  7. using System.Diagnostics;
  8. using System.Net;
  9. using System.IO.Compression;
  10. using System.Threading;
  11. using Microsoft.Win32;
  12. using System.Windows.Forms;
  13.  
  14. namespace ConsoleBoostrapper
  15. {
  16.     class Program
  17.     {
  18.         static string DownloadLink, FolderName, ExploitName;
  19.  
  20.         [STAThread]
  21.         static void Main(string[] args)
  22.         {
  23.             DownloadLink = "https://cdn.discordapp.com/attachments/876535645990977549/882758188854829056/Nihon.zip";
  24.             FolderName = $"Download" + ".zip";
  25.             ExploitName = "Nihon";
  26.  
  27.             Console.Title = $"{ExploitName} Bootstrapper";
  28.             string Watermark = @"
  29.  ______                    _                 _          
  30.  |  _  \                  | |               | |          
  31.  | | | |_____      ___ __ | | ___   __ _  __| | ___ _ __
  32.  | | | / _ \ \ /\ / / '_ \| |/ _ \ / _` |/ _` |/ _ \ '__|
  33.  | |/ / (_) \ V  V /| | | | | (_) | (_| | (_| |  __/ |  
  34.  |___/ \___/ \_/\_/ |_| |_|_|\___/ \__,_|\__,_|\___|_|  
  35.                                                          
  36.                                                        ";
  37.             Console.ForegroundColor = ConsoleColor.Red;
  38.             Console.WriteLine(Watermark);
  39.             Console.ResetColor();
  40.             if (Directory.Exists(ExploitName)) { Directory.Delete(ExploitName, true); }
  41.             Console.Write("  1. Install \n  2. Uninstall \n\n  Choice | ");
  42.             Console.ForegroundColor = ConsoleColor.DarkYellow;
  43.             string Choice = Console.ReadLine();
  44.             Console.ResetColor();
  45.  
  46.             if (Choice.StartsWith("1"))
  47.             {
  48.                 Console.Clear();
  49.                 Console.ForegroundColor = ConsoleColor.Red;
  50.                 Console.WriteLine(Watermark);
  51.                 Console.ResetColor();
  52.                 using (var Client = new WebClient { Proxy = null })
  53.                 {
  54.                     Console.Write("\n  1. Extract Here \n  2. Extract To Directory \n\n  Choice | ");
  55.                     Console.ForegroundColor = ConsoleColor.DarkYellow;
  56.                     string ExtractToDirectory = Console.ReadLine();
  57.                     Console.ResetColor();
  58.  
  59.                     if (ExtractToDirectory.StartsWith("1"))
  60.                     {
  61.                         Client.DownloadFile(DownloadLink, FolderName);
  62.                         ZipFile.ExtractToDirectory(FolderName, $"{Environment.CurrentDirectory}\\{ExploitName}");
  63.                         Console.WriteLine($"\n  Successfully Downloaded\n  Thanks {Environment.UserName} For Using {ExploitName} Bootstrapper");
  64.                     }
  65.                     else
  66.                     {
  67.                         FolderBrowserDialog FolderSelection = new FolderBrowserDialog();
  68.                         if (FolderSelection.ShowDialog() == DialogResult.OK)
  69.                         {
  70.                             Client.DownloadFile(DownloadLink, FolderName);
  71.                             ZipFile.ExtractToDirectory(FolderName, FolderSelection.SelectedPath);
  72.                             Console.WriteLine($"\n  Successfully Extracted To {FolderSelection.SelectedPath}\n  Thanks {Environment.UserName} For Using {ExploitName} Bootstrapper");
  73.                         }
  74.                     }
  75.                 }
  76.             }
  77.             else if (Choice.Contains("2"))
  78.             {
  79.                 Directory.Delete(ExploitName, true);
  80.             }
  81.             Console.ReadLine();
  82.         }
  83.     }
  84. }
  85.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement