Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- using System.IO;
- using System.IO.Compression;
- using System.Net;
- using System.Threading;
- namespace Bootstrapper
- {
- internal class Program
- {
- public static void Check() //prevents annoying errors AKA deletes the zip of it exists and downloads the latest version
- {
- bool flag = Directory.Exists("Osmium.zip");
- if (flag)
- {
- Directory.Delete("Osmium.zip", true);
- }
- }
- public static void CheckForMove()
- {
- bool flag = Directory.Exists("Osmium");
- if (flag)
- {
- Directory.Delete("Osmium", true);
- }
- }
- public static void CheckForUpdates()
- {
- bool flag = new WebClient().DownloadString("https://pastebin.com/raw/LINK").Contains("1"); //this pastebin checks and make sures you have the latest bootstrapper version
- if (flag)
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("Out-Dated Client, Please update the Installer. We will redirect you to the download link.");
- Process.Start("https://discord.gg/YOURDISCORD"); //your discord link
- Console.WriteLine("[-] Press any key to exit the Installer...");
- Console.ReadKey();
- Environment.Exit(0);
- }
- }
- public static void Extract()
- {
- ZipFile.ExtractToDirectory(".\\Osmium.zip", ".\\Osmium");
- Thread.Sleep(1850);
- string path = ".\\Osmium.zip";
- bool flag = File.Exists(path);
- if (flag)
- {
- try
- {
- File.Delete(path);
- Thread.Sleep(2200);
- }
- catch (Exception ex)
- {
- Exception ex2 = ex;
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("Error, try again!" + ex2.ToString());
- }
- }
- }
- private static void Main(string[] args)
- {
- Console.Title = "Installer";
- Console.WriteLine("Osmium Bootstrapper V1");
- Thread.Sleep(500);
- Console.WriteLine("Checking For Updates...");
- Thread.Sleep(500);
- CheckForUpdates();
- Console.WriteLine("-----------------------");
- Console.WriteLine("Preparing To Install Required Files, Please Wait...");
- Thread.Sleep(500);
- Thread.Sleep(1500);
- Console.WriteLine("Checking, Please Wait...");
- Thread.Sleep(500);
- Check();
- Console.WriteLine("[Downloading] Osmium.zip");
- new WebClient().DownloadFile(new WebClient().DownloadString("https://pastebin.com/raw/example"), "Release.zip"); //put a pastebin raw that contains a direct download for your exploit, for example, a discord cdn download
- Thread.Sleep(500);
- Console.WriteLine("[Downloaded] Osmium.zip");
- Thread.Sleep(500);
- Console.WriteLine("[Extracting] Osmium.zip");
- CheckForMove();
- Move();
- Extract();
- Thread.Sleep(1000);
- Console.WriteLine("[Extracted] Osmium.zip");
- Thread.Sleep(500);
- Console.WriteLine("Osmium has been downloaded successfully! Press any key to start Exploit Name...");
- Console.ReadKey();
- string ExploitDirectory = Environment.CurrentDirectory + "\\Osmium\\Directory\\Osmium.exe";
- try
- {
- Process.Start(ExploitDirectory);
- }
- catch (Exception)
- {
- Console.WriteLine("Failed to Open Osmium.exe, please turn off your anti-virus!");
- Console.ReadKey();
- Environment.Exit(0);
- }
- Environment.Exit(0);
- }
- public static void Move()
- {
- string sourceDirName = "Release";
- string destDirName = "Release";
- try
- {
- Directory.Move(sourceDirName, destDirName);
- }
- catch
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment