Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Management;
- using System.Net;
- using System.Net.Security;
- using System.Security.Cryptography;
- using System.Security.Cryptography.X509Certificates;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Threading;
- namespace skAuth
- {
- // Token: 0x02000041 RID: 65
- internal class Program
- {
- // Token: 0x0600058F RID: 1423
- public static string GetSRC(string uri)
- {
- ServicePointManager.Expect100Continue = true;
- ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
- HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(uri);
- httpWebRequest.AutomaticDecompression = (DecompressionMethods.GZip | DecompressionMethods.Deflate);
- httpWebRequest.Proxy = null;
- httpWebRequest.ServerCertificateValidationCallback = (RemoteCertificateValidationCallback)Delegate.Combine(httpWebRequest.ServerCertificateValidationCallback, new RemoteCertificateValidationCallback((object obj, X509Certificate cert, X509Chain ssl, SslPolicyErrors error) => (cert as X509Certificate2).Verify()));
- string result;
- using (HttpWebResponse response = (HttpWebResponse)httpWebRequest.GetResponse())
- {
- using (Stream stream = response.GetResponseStream())
- {
- using (StreamReader reader = new StreamReader(stream))
- {
- result = reader.ReadToEnd();
- }
- }
- }
- return result;
- }
- // Token: 0x06000590 RID: 1424
- public static void login()
- {
- string b = Program.GetSRC("https://pastebin.com/raw/ZPrgeSYR");
- if (b.Contains("v1"))
- {
- Console.WriteLine("You are up to date! Enjoy the tool!");
- }
- else if (b.Contains("CRACKED"))
- {
- Console.WriteLine("Tool has been leaked/cracked. Check out the server to see what happened.");
- Thread.Sleep(500);
- Environment.Exit(1);
- }
- else
- {
- Console.WriteLine("You Are using an outdated client. Please update.");
- Thread.Sleep(500);
- Environment.Exit(1);
- }
- Console.Clear();
- if (File.Exists("license.txt"))
- {
- string input = File.ReadAllText("license.txt");
- string lic = Regex.Match(input, "LICKEY: (.*) \\| HWID: (.*)\r").Groups[1].ToString();
- string HWID = Regex.Match(input, "LICKEY: (.*) \\| HWID: (.*)\r").Groups[2].ToString();
- string wtfu = string.Concat(new string[]
- {
- "Skiddies",
- lic,
- HWID,
- DateTime.UtcNow.ToString("yyyy'-'MM'-'dd' 'HH':'mm"),
- "Skiddies"
- });
- if (Program.GetSRC(string.Concat(new string[]
- {
- "https://zionteam.tk/Auth/auth.php?authkey=",
- lic,
- "&hwid=",
- HWID,
- "&software_id=BHS"
- })).Contains(Program.ComputeSha256Hash(wtfu)))
- {
- Console.WriteLine("Access Granted!", ConsoleColor.Green);
- Console.WriteLine("PRESS ANY KEY TO CONTINUE");
- Console.ReadLine();
- Console.Clear();
- return;
- }
- Console.Write("Error... Make sure your key is active and our servers are not down...\nYour HWID:" + HWID, ConsoleColor.Red);
- Console.ReadLine();
- Environment.Exit(-1);
- return;
- }
- else
- {
- Console.WriteLine("Please Input Your License");
- string AuthKey = Console.ReadLine();
- string hwid = Program.HWID();
- string wtfu2 = string.Concat(new string[]
- {
- "Skiddies",
- AuthKey,
- Program.HWID(),
- DateTime.UtcNow.ToString("yyyy'-'MM'-'dd' 'HH':'mm"),
- "Skiddies"
- });
- string[] info = new string[]
- {
- "LICKEY: " + AuthKey + " | HWID: " + hwid
- };
- File.Create("license.txt").Close();
- File.WriteAllLines("license.txt", info);
- if (Program.GetSRC(string.Concat(new string[]
- {
- "https://zionteam.tk/Auth/auth.php?authkey=",
- AuthKey,
- "&hwid=",
- hwid,
- "&software_id=BHS"
- })).Contains(Program.ComputeSha256Hash(wtfu2)))
- {
- Console.WriteLine("Access Granted!", ConsoleColor.Green);
- Console.WriteLine("PRESS ANY KEY TO CONTINUE");
- Console.ReadLine();
- Console.Clear();
- return;
- }
- Console.Write("Error... Make sure your key is active and our servers are not down...\nYour HWID:" + hwid, ConsoleColor.Red);
- Console.ReadLine();
- Environment.Exit(-1);
- return;
- }
- }
- // Token: 0x06000591 RID: 1425
- private static string ComputeSha256Hash(string rawData)
- {
- string result;
- using (SHA256 sha256Hash = SHA256.Create())
- {
- byte[] bytes = sha256Hash.ComputeHash(Encoding.UTF8.GetBytes(rawData));
- StringBuilder builder = new StringBuilder();
- for (int i = 0; i < bytes.Length; i++)
- {
- builder.Append(bytes[i].ToString("x2"));
- }
- result = builder.ToString();
- }
- return result;
- }
- // Token: 0x06000592 RID: 1426
- private static string HWID()
- {
- string text2 = null;
- if (string.IsNullOrEmpty(text2))
- {
- foreach (DriveInfo driveInfo in DriveInfo.GetDrives())
- {
- if (driveInfo.IsReady)
- {
- text2 = driveInfo.RootDirectory.ToString();
- break;
- }
- }
- }
- if (!string.IsNullOrEmpty(text2) && text2.EndsWith(":\\"))
- {
- text2 = text2.Substring(0, text2.Length - 2);
- }
- string str;
- using (ManagementObject managementObject = new ManagementObject("win32_logicaldisk.deviceid=\"" + text2 + ":\""))
- {
- managementObject.Get();
- str = managementObject["VolumeSerialNumber"].ToString();
- }
- return str;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement