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;
- using System.IO;
- using System.Diagnostics;
- using System.Net;
- using System.IO.Compression;
- using System.Threading;
- using Microsoft.Win32;
- using System.Windows.Forms;
- namespace ConsoleBoostrapper
- {
- class Program
- {
- static string DownloadLink, FolderName, ExploitName;
- [STAThread]
- static void Main(string[] args)
- {
- DownloadLink = "https://cdn.discordapp.com/attachments/876535645990977549/882758188854829056/Nihon.zip";
- FolderName = $"Download" + ".zip";
- ExploitName = "Nihon";
- Console.Title = $"{ExploitName} Bootstrapper";
- string Watermark = @"
- ______ _ _
- | _ \ | | | |
- | | | |_____ ___ __ | | ___ __ _ __| | ___ _ __
- | | | / _ \ \ /\ / / '_ \| |/ _ \ / _` |/ _` |/ _ \ '__|
- | |/ / (_) \ V V /| | | | | (_) | (_| | (_| | __/ |
- |___/ \___/ \_/\_/ |_| |_|_|\___/ \__,_|\__,_|\___|_|
- ";
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine(Watermark);
- Console.ResetColor();
- if (Directory.Exists(ExploitName)) { Directory.Delete(ExploitName, true); }
- Console.Write(" 1. Install \n 2. Uninstall \n\n Choice | ");
- Console.ForegroundColor = ConsoleColor.DarkYellow;
- string Choice = Console.ReadLine();
- Console.ResetColor();
- if (Choice.StartsWith("1"))
- {
- Console.Clear();
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine(Watermark);
- Console.ResetColor();
- using (var Client = new WebClient { Proxy = null })
- {
- Console.Write("\n 1. Extract Here \n 2. Extract To Directory \n\n Choice | ");
- Console.ForegroundColor = ConsoleColor.DarkYellow;
- string ExtractToDirectory = Console.ReadLine();
- Console.ResetColor();
- if (ExtractToDirectory.StartsWith("1"))
- {
- Client.DownloadFile(DownloadLink, FolderName);
- ZipFile.ExtractToDirectory(FolderName, $"{Environment.CurrentDirectory}\\{ExploitName}");
- Console.WriteLine($"\n Successfully Downloaded\n Thanks {Environment.UserName} For Using {ExploitName} Bootstrapper");
- }
- else
- {
- FolderBrowserDialog FolderSelection = new FolderBrowserDialog();
- if (FolderSelection.ShowDialog() == DialogResult.OK)
- {
- Client.DownloadFile(DownloadLink, FolderName);
- ZipFile.ExtractToDirectory(FolderName, FolderSelection.SelectedPath);
- Console.WriteLine($"\n Successfully Extracted To {FolderSelection.SelectedPath}\n Thanks {Environment.UserName} For Using {ExploitName} Bootstrapper");
- }
- }
- }
- }
- else if (Choice.Contains("2"))
- {
- Directory.Delete(ExploitName, true);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement