|
| 1 | +using Microsoft.Win32; |
| 2 | + |
| 3 | +namespace LunaR_Spoofer |
| 4 | +{ |
| 5 | + internal class Spoofers |
| 6 | + { |
| 7 | + public static void Init() |
| 8 | + { |
| 9 | + Console.Title = "LunaR Spoofer by https://github.com/Umbra999"; |
| 10 | + Console.WriteLine("RUN THE PROGRAM AS ADMIN TO MAKE IT WORK"); |
| 11 | + Console.WriteLine("!!! WARNING THE SPOOF IS PERMANENT ONLY USE IF YOU KNOW WHAT YOU ARE DOING !!!"); |
| 12 | + Console.WriteLine(""); |
| 13 | + Console.WriteLine("Press Enter to spoof your HWID"); |
| 14 | + Console.ReadLine(); |
| 15 | + CleanTraces(); |
| 16 | + SpoofProductID(); |
| 17 | + SpoofProfileGUID(); |
| 18 | + SpoofMachineID(); |
| 19 | + SpoofMachineGUID(); |
| 20 | + //SpoofInstallTime(); |
| 21 | + HideSMBios(); |
| 22 | + FlushDNS(); |
| 23 | + |
| 24 | + Console.WriteLine("HWID Spoofed, Restart your PC to finish"); |
| 25 | + Console.WriteLine("https://github.com/Umbra999"); |
| 26 | + Console.ReadLine(); |
| 27 | + } |
| 28 | + |
| 29 | + private static void CleanTraces() |
| 30 | + { |
| 31 | + string LocalLowFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).Replace("Roaming", "LocalLow"); |
| 32 | + string RoamingFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); |
| 33 | + |
| 34 | + if (Directory.Exists(RoamingFolder + @"/Unity")) |
| 35 | + { |
| 36 | + DirectoryInfo Unity = new(RoamingFolder + @"/Unity"); |
| 37 | + Extensions.DeleteDirectory(Unity); |
| 38 | + } |
| 39 | + |
| 40 | + if (Directory.Exists(LocalLowFolder + @"/Unity")) |
| 41 | + { |
| 42 | + DirectoryInfo Unity = new(LocalLowFolder + @"/Unity"); |
| 43 | + Extensions.DeleteDirectory(Unity); ; |
| 44 | + } |
| 45 | + |
| 46 | + if (Directory.Exists(LocalLowFolder + @"/VRChat")) |
| 47 | + { |
| 48 | + DirectoryInfo VRChat = new(LocalLowFolder + @"/VRChat"); |
| 49 | + Extensions.DeleteDirectory(VRChat); |
| 50 | + } |
| 51 | + |
| 52 | + RegistryKey CurrentUserReg = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64); |
| 53 | + CurrentUserReg.OpenSubKey("Software", true).DeleteSubKeyTree("VRChat"); |
| 54 | + CurrentUserReg.OpenSubKey("Software", true).DeleteSubKeyTree("Unity", false); |
| 55 | + CurrentUserReg.OpenSubKey("Software", true).DeleteSubKeyTree("Unity Technologies", false); |
| 56 | + CurrentUserReg.Close(); |
| 57 | + } |
| 58 | + |
| 59 | + private static void SpoofProductID() |
| 60 | + { |
| 61 | + RegistryKey registryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64).OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", true); |
| 62 | + registryKey.SetValue("ProductID", $"{Extensions.RandomNumberString(5)}-{Extensions.RandomNumberString(5)}-{Extensions.RandomNumberString(5)}-{Extensions.RandomString(5)}"); |
| 63 | + registryKey.Close(); |
| 64 | + } |
| 65 | + |
| 66 | + private static void HideSMBios() |
| 67 | + { |
| 68 | + Extensions.RunAsProcess("reg add HKLM\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Restrictions /F"); |
| 69 | + Extensions.RunAsProcess("reg add HKLM\\SYSTEM\\CurrentControlSet\\Control\\WMI\\Restrictions /v HideMachine /t REG_DWORD /d 1 /F"); |
| 70 | + Extensions.RunAsProcess("taskkill /F /IM WmiPrvSE.exe"); |
| 71 | + } |
| 72 | + |
| 73 | + private static void FlushDNS() |
| 74 | + { |
| 75 | + Extensions.RunAsProcess("ipconfig /release"); |
| 76 | + Extensions.RunAsProcess("ipconfig /flushdns"); |
| 77 | + Extensions.RunAsProcess("ipconfig /renew"); |
| 78 | + Extensions.RunAsProcess("ipconfig /flushdns"); |
| 79 | + Extensions.RunAsProcess("ping localhost -n 3 >nul"); |
| 80 | + } |
| 81 | + |
| 82 | + private static void SpoofMachineID() |
| 83 | + {; |
| 84 | + RegistryKey registryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64).OpenSubKey("SOFTWARE\\Microsoft\\SQMClient", true); |
| 85 | + registryKey.SetValue("MachineId", "{" + Guid.NewGuid().ToString().ToUpper() + "}"); |
| 86 | + } |
| 87 | + |
| 88 | + private static void SpoofMachineGUID() |
| 89 | + { |
| 90 | + string value = Guid.NewGuid().ToString(); |
| 91 | + RegistryKey registryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64).OpenSubKey("SOFTWARE\\Microsoft\\Cryptography", true); |
| 92 | + registryKey.SetValue("MachineGuid", value); |
| 93 | + } |
| 94 | + |
| 95 | + private static void SpoofProfileGUID() |
| 96 | + { |
| 97 | + RegistryKey registryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64).OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\IDConfigDB\\Hardware Profiles\\0001", true); |
| 98 | + registryKey.SetValue("HwProfileGUID", "{" + Guid.NewGuid().ToString() + "}"); |
| 99 | + } |
| 100 | + |
| 101 | + private static void SpoofInstallTime() |
| 102 | + { |
| 103 | + RegistryKey registryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64).OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion", true); |
| 104 | + long unixTime = ((DateTimeOffset)DateTime.Now).ToUnixTimeSeconds(); |
| 105 | + registryKey.SetValue("InstallTime", unixTime); |
| 106 | + registryKey.SetValue("InstallDate", (int)unixTime); |
| 107 | + registryKey.Close(); |
| 108 | + } |
| 109 | + } |
| 110 | +} |
0 commit comments