Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string mbInfo = String.Empty;
- ManagementScope scope = new ManagementScope("\\\\" + Environment.MachineName + "\\root\\cimv2");
- scope.Connect();
- ManagementObject wmiClass = new ManagementObject(scope, new ManagementPath("Win32_BaseBoard.Tag=\"Base Board\""), new ObjectGetOptions());
- foreach (PropertyData propData in wmiClass.Properties)
- {
- if (propData.Name == "SerialNumber")
- mbInfo = String.Format("{0,-25}{1}", propData.Name, Convert.ToString(propData.Value));
- }
- var replacement = mbInfo.Replace(mbInfo, "I"+_random66);
- MessageBox.Show(mbInfo);
- List<string> CPU_ProcessorNameString = new List<string>();
- CPU_ProcessorNameString.Add("HP Intel Core i3 - 6100");
- CPU_ProcessorNameString.Add("IBM Intel Xeon E5620");
- CPU_ProcessorNameString.Add("Lenovo Intel Xeon Silver 4114");
- CPU_ProcessorNameString.Add("AMD Athlon 220GE Boxed");
- CPU_ProcessorNameString.Add("AMD Ryzen 5 2600X Wraith Max Boxed");
- CPU_ProcessorNameString.Add("AMD Ryzen 3 2300X Tray");
- Random randNum1 = new Random();
- int aRandomPos1 = randNum1.Next(CPU_ProcessorNameString.Count);
- string currCPU_P = CPU_ProcessorNameString[aRandomPos1];
- RegistryKey myKey1 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0", true);
- if (myKey1 != null)
- {
- myKey1.SetValue("ProcessorNameString", currCPU_P, RegistryValueKind.String);
- myKey1.Close();
- }
- //Spoof WIN ID
- var chars = "0123456789";
- var stringChars = new char[5];
- var random = new Random();
- for (int i = 0; i < stringChars.Length; i++)
- {
- stringChars[i] = chars[random.Next(chars.Length)];
- }
- var _random = new String(stringChars);
- var chars3 = "0123456789";
- var stringChars3 = new char[5];
- var random3 = new Random();
- for (int i = 0; i < stringChars3.Length; i++)
- {
- stringChars3[i] = chars3[random3.Next(chars3.Length)];
- }
- var _random3 = new String(stringChars3);
- var chars2 = "0123456789";
- var stringChars2 = new char[4];
- var random2 = new Random();
- for (int i = 0; i < stringChars2.Length; i++)
- {
- stringChars2[i] = chars2[random.Next(chars2.Length)];
- }
- var _random2 = new String(stringChars2);
- var chars1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- var stringChars1 = new char[5];
- var random1 = new Random();
- for (int i = 0; i < stringChars1.Length; i++)
- {
- stringChars1[i] = chars1[random1.Next(chars1.Length)];
- }
- var _random1 = new String(stringChars1);
- RegistryKey myKey20 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
- if (myKey20 != null)
- {
- myKey20.SetValue("ProductId", _random + "-" + _random + "-" + _random + "-" + _random1, RegistryValueKind.String);
- myKey20.Close();
- }
- RegistryKey myKey30 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
- if (myKey30 != null)
- {
- myKey30.SetValue("BuildLabEx", "17763.1.amd64fre.rs5_release.180914-" + _random2, RegistryValueKind.String);
- myKey30.Close();
- }
- RegistryKey myKey32 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
- if (myKey32 != null)
- {
- myKey32.SetValue("BuildLab", "17763.rs5_release.180914-" + _random2, RegistryValueKind.String);
- myKey32.Close();
- }
- RegistryKey myKey21 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\DefaultProductKey", true);
- if (myKey21 != null)
- {
- WIN_CurrentVersion.Add("8.0");
- WIN_CurrentVersion.Add("9.0");
- WIN_CurrentVersion.Add("1.1");
- WIN_CurrentVersion.Add("1.2");
- WIN_CurrentVersion.Add("1.3");
- WIN_CurrentVersion.Add("1.4");
- WIN_CurrentVersion.Add("1.5");
- WIN_CurrentVersion.Add("1.6");
- Random randNum23 = new Random();
- int aRandomPos23 = randNum23.Next(WIN_CurrentVersion.Count);
- string currWIN_CV = WIN_CurrentVersion[aRandomPos23];
- RegistryKey myKey23 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
- if (myKey23 != null)
- {
- List<string> WIN_EditionID = new List<string>();
- WIN_EditionID.Add("Professional");
- WIN_EditionID.Add("Enterprise");
- WIN_EditionID.Add("Pro");
- WIN_EditionID.Add("Home");
- Random randNum27 = new Random();
- int aRandomPos27 = randNum27.Next(WIN_CurrentVersion.Count);
- string currWIN_E = WIN_CurrentVersion[aRandomPos27];
- RegistryKey myKey27 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true);
- if (myKey27 != null)
- {
- myKey27.SetValue("EditionID", currWIN_E, RegistryValueKind.String);
- myKey27.Close();
- }
- RegistryKey myKey28 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\SystemInformation", true);
- if (myKey28 != null)
- {
- myKey28.SetValue("ComputerHardwareId", _random, RegistryValueKind.String);
- myKey28.Close();
- }
- RegistryKey myKey29 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DEVICEMAP\\Scsi\\Scsi Port 0\\Scsi Bus 0\\Target Id 0\\Logical Unit Id 0", true);
- if (myKey29 != null)
- {
- myKey29.SetValue("Identifier", _random, RegistryValueKind.String);
- myKey29.Close();
- }
- RegistryKey myKey31 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DEVICEMAP\\Scsi\\Scsi Port 0\\Scsi Bus 1\\Target Id 0\\Logical Unit Id 0", true);
- if (myKey31 != null)
- {
- myKey31.SetValue("Identifier", _random, RegistryValueKind.String);
- myKey31.Close();
- }
- //Spoof BIOS
- List<string> BIOS_BaseBoardProduct = new List<string>();
- BIOS_BaseBoardProduct.Add("MSI A320M PRO - E");
- BIOS_BaseBoardProduct.Add("Asus Prime A320M-C R2.0");
- BIOS_BaseBoardProduct.Add("Gigabyte GA - A320M - H");
- BIOS_BaseBoardProduct.Add("ASRock Z390 Phantom Gaming SLI");
- BIOS_BaseBoardProduct.Add("Asus ROG Rampage VI Extreme Omega");
- BIOS_BaseBoardProduct.Add("Asus Prime H310I - Plus R2.0");
- BIOS_BaseBoardProduct.Add("ASRock AB350M - HDV R3.0");
- BIOS_BaseBoardProduct.Add("MSI B450M Pro-VDH V2");
- myKey.SetValue("BaseBoardProduct", currBIOS_B, RegistryValueKind.String);
- myKey.Close();
- }
- List<string> BIOS_BaseBoardVersion = new List<string>();
- BIOS_BaseBoardVersion.Add("1.0");
- BIOS_BaseBoardVersion.Add("2.0");
- BIOS_BaseBoardVersion.Add("3.0");
- BIOS_BaseBoardVersion.Add("4.0");
- BIOS_BaseBoardVersion.Add("5.0");
- BIOS_BaseBoardVersion.Add("6.0");
- BIOS_BaseBoardVersion.Add("1.5");
- BIOS_BaseBoardVersion.Add("1.6");
- Random randNum2 = new Random();
- int aRandomPos2 = randNum2.Next(BIOS_BaseBoardVersion.Count);
- string currBIOS_V = BIOS_BaseBoardVersion[aRandomPos2];
- RegistryKey myKey2 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
- if (myKey2 != null)
- {
- myKey2.SetValue("BaseBoardVersion", currBIOS_V, RegistryValueKind.String);
- myKey2.Close();
- }
- List<string> BIOS_BaseBoardManufacturer = new List<string>();
- BIOS_BaseBoardManufacturer.Add("MSI");
- BIOS_BaseBoardManufacturer.Add("Asus");
- BIOS_BaseBoardManufacturer.Add("Gigabyte");
- BIOS_BaseBoardManufacturer.Add("ASRock");
- BIOS_BaseBoardManufacturer.Add("Biostar");
- BIOS_BaseBoardManufacturer.Add("EVGA");
- Random randNum3 = new Random();
- int aRandomPos3 = randNum3.Next(BIOS_BaseBoardManufacturer.Count);
- string currBIOS_BM = BIOS_BaseBoardManufacturer[aRandomPos3];
- RegistryKey myKey3 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
- if (myKey3 != null)
- {
- myKey3.SetValue("BaseBoardManufacturer", currBIOS_BM, RegistryValueKind.String);
- myKey3.Close();
- }
- RegistryKey myKey5 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
- if (myKey5 != null)
- {
- myKey5.SetValue("SystemVersion", currBIOS_V, RegistryValueKind.String);
- myKey5.Close();
- }
- RegistryKey myKey6 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
- if (myKey6 != null)
- {
- myKey6.SetValue("SystemManufacturer", currBIOS_BM, RegistryValueKind.String);
- myKey6.Close();
- }
- List<string> BIOS_BIOSReleaseDate = new List<string>();
- BIOS_BIOSReleaseDate.Add("01/02/2016");
- BIOS_BIOSReleaseDate.Add("01/04/2016");
- BIOS_BIOSReleaseDate.Add("01/03/2016");
- BIOS_BIOSReleaseDate.Add("01/05/2016");
- BIOS_BIOSReleaseDate.Add("02/05/2016");
- BIOS_BIOSReleaseDate.Add("03/05/2016");
- Random randNum4 = new Random();
- int aRandomPos4 = randNum4.Next(BIOS_BIOSReleaseDate.Count);
- string currBIOS_BR = BIOS_BIOSReleaseDate[aRandomPos4];
- RegistryKey myKey4 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
- if (myKey4 != null)
- {
- myKey4.SetValue("BIOSReleaseDate", currBIOS_BR, RegistryValueKind.String);
- myKey4.Close();
- }
- myKey8.SetValue("BIOSVersion", currBIOS_BV, RegistryValueKind.String);
- myKey8.Close();
- }
- List<string> BIOS_BIOSVendor = new List<string>();
- BIOS_BIOSVendor.Add("American Megatrends Inc.");
- BIOS_BIOSVendor.Add("Dell Inc.");
- BIOS_BIOSVendor.Add("Phoenix Technologies, Ltd");
- BIOS_BIOSVendor.Add("Lenovo");
- BIOS_BIOSVendor.Add("Packard Bell");
- BIOS_BIOSVendor.Add("Award Software, Inc.");
- BIOS_BIOSVendor.Add("Acer");
- BIOS_BIOSVendor.Add("Insyde Corp.");
- BIOS_BIOSVendor.Add("TOSHIBA");
- BIOS_BIOSVendor.Add("Intel Corporation");
- BIOS_BIOSVendor.Add("IBM");
- BIOS_BIOSVendor.Add("innotek GmbH");
- BIOS_BIOSVendor.Add("Gateway");
- BIOS_BIOSVendor.Add("Sun Microsystems");
- Random randNum9 = new Random();
- int aRandomPos9 = randNum9.Next(BIOS_BIOSVendor.Count);
- string currBIOS_BVEN = BIOS_BIOSVendor[aRandomPos9];
- RegistryKey myKey9 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\BIOS", true);
- if (myKey9 != null)
- {
- myKey9.SetValue("BIOSVendor", currBIOS_BVEN, RegistryValueKind.String);
- myKey9.Close();
- }
- RegistryKey myKey10 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey10 != null)
- {
- myKey10.SetValue("BIOSVendor", currBIOS_BVEN, RegistryValueKind.String);
- myKey10.Close();
- }
- RegistryKey myKey11 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey11 != null)
- {
- myKey11.SetValue("BIOSVersion", currBIOS_BV, RegistryValueKind.String);
- myKey11.Close();
- }
- RegistryKey myKey12 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey12 != null)
- {
- myKey12.SetValue("SystemProductName", currBIOS_S, RegistryValueKind.String);
- myKey12.Close();
- }
- RegistryKey myKey13 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey13 != null)
- {
- myKey13.SetValue("BIOSReleaseDate", currBIOS_BR, RegistryValueKind.String);
- myKey13.Close();
- }
- RegistryKey myKey14 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey14 != null)
- {
- myKey14.SetValue("SystemManufacturer", currBIOS_BM, RegistryValueKind.String);
- myKey14.Close();
- }
- RegistryKey myKey15 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey15 != null)
- {
- myKey15.SetValue("BaseBoardManufacturer", currBIOS_BM, RegistryValueKind.String);
- myKey15.Close();
- }
- RegistryKey myKey16 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey16 != null)
- {
- myKey16.SetValue("SystemVersion", currBIOS_V, RegistryValueKind.String);
- myKey16.Close();
- }
- RegistryKey myKey17 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey17 != null)
- {
- myKey17.SetValue("BaseBoardVersion", currBIOS_V, RegistryValueKind.String);
- myKey17.Close();
- }
- RegistryKey myKey18 = Registry.LocalMachine.OpenSubKey("SYSTEM\\HardwareConfig\\Current", true);
- if (myKey18 != null)
- {
- myKey18.SetValue("BaseBoardProduct", currBIOS_B, RegistryValueKind.String);
- myKey18.Close();
- }
- Guid id = Guid.NewGuid();
- RegistryKey myKey19 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\SystemInformation", true);
- if (myKey19 != null)
- {
- myKey19.SetValue("ComputerHardwareId", "{"+id+"}", RegistryValueKind.String);
- myKey19.Close();
- }
- RegistryKey myKey44 = Registry.CurrentUser.OpenSubKey("Software\\Epic Games\\Unreal Engine\\Identifiers", true);
- if (myKey44 != null)
- {
- myKey44.SetValue("AccountId", finalString12 + finalString12 + finalString12, RegistryValueKind.String);
- myKey44.Close();
- }
- RegistryKey myKey41 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter\\0\\DiskController\\0\\DiskPeripheral\\0", true);
- if (myKey41 != null)
- {
- myKey41.SetValue("Identifier", finalString12+"-A", RegistryValueKind.String);
- myKey41.Close();
- }
- RegistryKey myKey42 = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter\\0\\DiskController\\0\\DiskPeripheral\\1", true);
- if (myKey42 != null)
- {
- myKey42.SetValue("Identifier", finalString12 +"-A", RegistryValueKind.String);
- myKey42.Close();
- }
- Guid guid_id = Guid.NewGuid();
- RegistryKey myKey43 = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Feeds", true);
- if (myKey43 != null)
- {
- myKey43.SetValue("BackgroundSync", guid_id, RegistryValueKind.String);
- myKey43.Close();
- }
- try
- {
- RegistryKey myKey45 = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\IdentityCRL\\ExtendedProperties", true);
- if (myKey45 != null)
- {
- myKey45.SetValue("LID", finalString13 + "BE" + "123", RegistryValueKind.String);
- myKey45.Close();
- }
- }
- catch { }
- RegistryKey myKey46 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ActiveComputerName", true);
- if (myKey46 != null)
- {
- myKey46.SetValue("ComputerName", finalString13, RegistryValueKind.String);
- myKey46.Close();
- }
- RegistryKey myKey47 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName", true);
- if (myKey47 != null)
- {
- myKey47.SetValue("ComputerName", finalString13, RegistryValueKind.String);
- myKey47.Close();
- }
- RegistryKey myKey48 = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName", true);
- if (myKey48 != null)
- {
- myKey48.SetValue("Hostname", finalString13, RegistryValueKind.String);
- myKey48.SetValue("NV Hostname", finalString13, RegistryValueKind.String);
- myKey48.Close();
- }
- var dir = AppDomain.CurrentDomain.BaseDirectory;
- string file = dir + "\\Assets\\HDDspoofer";
- try
- {
- Process.Start(file);
- }
- catch
- {
- MessageBox.Show("A file got deleted by your antivirus(mapper.exe), make sure to disable your antivirus before installing the spoofer. Please re-install the spoofer.");
- }
- MessageBox.Show("Hardware has been succesfully spoofed");
- }
- private void button3_Click(object sender, EventArgs e)
- {
- var dir122 = AppDomain.CurrentDomain.BaseDirectory;
- string file122 = dir122 + "\\Assets\\)Msh3d";
- Process.Start(file122);
- }
- private void button4_Click(object sender, EventArgs e)
- {
- var track1 = Path.Combine(Environment.GetFolderPath(
- Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Logs\\FortniteGame-backup-2019.02.02-10.35.16.log");
- if (File.Exists(track1))
- {
- File.Delete(track1);
- }
- var track2 = Path.Combine(Environment.GetFolderPath(
- Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\LMS\\Manifest.sav");
- if (File.Exists(track2))
- {
- File.Delete(track2);
- }
- var track3 = Path.Combine(Environment.GetFolderPath(
- Environment.SpecialFolder.LocalApplicationData), "Microsoft\\Feeds:KnownSources");
- if (File.Exists(track3))
- {
- File.Delete(track3);
- }
- var track4 = Path.Combine(Environment.GetFolderPath(
- Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Config\\WindowsClient\\GameUserSettings.ini");
- if (File.Exists(track4))
- {
- File.Delete(track4);
- }
- var track5 = Path.Combine(Environment.GetFolderPath(
- Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Config\\WindowsClient\\GameUserSettings.ini");
- if (File.Exists(track5))
- {
- File.Delete(track5);
- }
- if (File.Exists(@"D:\desktop.ini:CachedTiles"))
- {
- File.Delete(@"F:\desktop.ini:CachedTiles");
- }
- var track6 = Path.Combine(Environment.GetFolderPath(
- Environment.SpecialFolder.LocalApplicationData), "EpicGamesLauncher\\Saved\\HardwareSurvey\\dxdiag.txt");
- if (File.Exists(track6))
- {
- File.Delete(track6);
- }
- var dir = AppDomain.CurrentDomain.BaseDirectory;
- try
- {
- string file = dir + "Assets\\tempdelet";
- Process.Start(file);
- }
- catch
- {
- }
- System.IO.DirectoryInfo di1 = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "FortniteGame\\Saved\\Logs"));
- try
- {
- foreach (FileInfo file1 in di1.GetFiles())
- {
- file1.Delete();
- }
- foreach (DirectoryInfo dir1 in di1.GetDirectories())
- {
- dir1.Delete(true);
- }
- }
- catch { }
- System.IO.DirectoryInfo di2 = new DirectoryInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "EpicGamesLauncher\\Saved\\Logs"));
- try
- {
- foreach (FileInfo file2 in di2.GetFiles())
- {
- file2.Delete();
- }
- foreach (DirectoryInfo dir2 in di2.GetDirectories())
- {
- dir2.Delete(true);
- }
- }
- catch { }
- System.IO.DirectoryInfo di3 = new DirectoryInfo("D:\\MSOCache");
- try
- {
- foreach (DirectoryInfo dir3 in di3.GetDirectories())
- {
- dir3.Delete(true);
- }
- }
- catch { }
- if (File.Exists(@"D:\Recovery\ntuser.sys"))
- {
- File.Delete(@"D:\Recovery\ntuser.sys");
- }
- if (File.Exists(@"C:\Recovery\ntuser.sys"))
- {
- File.Delete(@"C:\Recovery\ntuser.sys");
- }
- if (File.Exists(@"E:\Recovery\ntuser.sys"))
- {
- File.Delete(@"E:\Recovery\ntuser.sys");
- }
- if (File.Exists(@"F:\Recovery\ntuser.sys"))
- {
- File.Delete(@"F:\Recovery\ntuser.sys");
- }
- string driveLetter = Path.GetPathRoot(Environment.CurrentDirectory);
- if (File.Exists(driveLetter + "\\Public\\Libraries\\collection.dat"))
- {
- File.Delete(driveLetter + "\\Public\\Libraries\\collection.dat");
- }
- if (File.Exists(driveLetter + "\\Public\\Shared Files"))
- {
- File.Delete(driveLetter + "\\Public\\Shared Files");
- }
- if (File.Exists(driveLetter + "\\MSOCache"))
- {
- File.Delete(driveLetter + "\\MSOCache");
- }
- var currentuser = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
- var currentProgramData = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
- if (File.Exists(currentProgramData + "\\Epic\\EpicGamesLauncher\\Data\\EMS\\current"))
- {
- File.Delete(currentProgramData + "\\Epic\\EpicGamesLauncher\\Data\\EMS\\current");
- }
- }
- System.IO.DirectoryInfo di4 = new DirectoryInfo(@"C:\Users\paulu\AppData\Roaming\EasyAntiCheat");
- try
- {
- foreach (DirectoryInfo dir4 in di4.GetDirectories())
- {
- dir4.Delete(true);
- }
- }
- catch { }
- try
- {
- DirectoryInfo di_m99 = new DirectoryInfo(currentProgramData + @"\Epic\SocialBackup");
- FileInfo[] files99 = di_m99.GetFiles("*.bak")
- .Where(p => p.Extension == ".bak").ToArray();
- foreach (FileInfo file99 in files99)
- try
- {
- file99.Attributes = FileAttributes.Normal;
- if (File.Exists(file99.FullName))
- {
- File.Delete(file99.FullName);
- }
- }
- catch { }
- }
- catch
- {
- }
- var dir10 = AppDomain.CurrentDomain.BaseDirectory;
- try
- {
- string file10 = dir10 + "Assets\\main_cleaner";
- Process.Start(file10);
- }
- catch
- {
- MessageBox.Show("A file has been deleted, please re-install the software.");
- }
- {
- MessageBox.Show("A file has been deleted, please re-install the software.");
- }
- Guid id = Guid.NewGuid();
- RegistryKey myKey54 = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Cryptography", true);
- if (myKey54 != null)
- {
- myKey54.SetValue("MachineGuid", id, RegistryValueKind.String);
- myKey54.Close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement