Thanksss
static string key;
static string hwid;
static void Main(string[] args)
{
Console.WriteLine("Cracked.to Auth Key?");
key = Console.ReadLine();
try
{
using (HttpRequest httpRequest = new HttpRequest())
{
httpRequest.IgnoreProtocolErrors = true;
httpRequest.UserAgent = Http.ChromeUserAgent();
httpRequest.ConnectTimeout = 30000;
string text = httpRequest.Post("https://cracked.to/auth.php", "a=auth&k=" + key + "&hwid=" + gethwid(), "application/x-www-form-urlencoded").ToString();
Dictionary<string, string> response = JsonConvert.DeserializeObject<Dictionary<string, string>>(text);
if (text.Contains("error"))
{
MessageBox.Show("Error " + response["error"] + "!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else if (text.Contains("auth"))
{
MessageBox.Show("Welcome " + response["username"] + ", enjoy your exclusive Cracked.to tool!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
return;
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
Application.Exit();
return;
}
}
private static string gethwid()
{
if (string.IsNullOrEmpty(hwid))
{
DriveInfo[] drives = DriveInfo.GetDrives();
int num = drives.Length - 1;
for (int i = 0; i <= num; i++)
{
DriveInfo driveInfo = drives[i];
if (driveInfo.IsReady)
{
hwid = driveInfo.RootDirectory.ToString();
break;
}
}
}
if (!string.IsNullOrEmpty(hwid) && hwid.EndsWith(":\\"))
{
hwid = hwid.Substring(0, hwid.Length - 2);
}
string result;
using (ManagementObject managementObject = new ManagementObject("win32_logicaldisk.deviceid=\"" + hwid + ":\""))
{
managementObject.Get();
result = managementObject["VolumeSerialNumber"].ToString();
}
return result;
}