Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 38e5a9e

Browse files
committed
yes
1 parent dcf1332 commit 38e5a9e

83 files changed

Lines changed: 862 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LunaR Spoofer.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32319.34
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LunaR Spoofer", "LunaR Spoofer\LunaR Spoofer.csproj", "{CCB648BF-ABA5-4FB0-824F-7E2E84FED4C4}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{CCB648BF-ABA5-4FB0-824F-7E2E84FED4C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{CCB648BF-ABA5-4FB0-824F-7E2E84FED4C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{CCB648BF-ABA5-4FB0-824F-7E2E84FED4C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{CCB648BF-ABA5-4FB0-824F-7E2E84FED4C4}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {25E30B7C-8354-487D-98FA-83CBF67B073F}
24+
EndGlobalSection
25+
EndGlobal

LunaR Spoofer/Extensions.cs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System.Diagnostics;
2+
3+
namespace LunaR_Spoofer
4+
{
5+
internal class Extensions
6+
{
7+
public static void RunAsProcess(string Code)
8+
{
9+
Process? process = Process.Start(new ProcessStartInfo("cmd.exe", "/c " + Code)
10+
{
11+
CreateNoWindow = true,
12+
UseShellExecute = false
13+
});
14+
process?.WaitForExit();
15+
process?.Close();
16+
}
17+
18+
private static readonly Random random = new(Environment.TickCount);
19+
public static string RandomString(int length)
20+
{
21+
char[] array = "abcdefghlijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".ToArray();
22+
string text = string.Empty;
23+
for (int i = 0; i < length; i++)
24+
{
25+
text += array[random.Next(array.Length)].ToString();
26+
}
27+
return text;
28+
}
29+
30+
public static string RandomNumberString(int length)
31+
{
32+
char[] array = "0123456789".ToArray();
33+
string text = string.Empty;
34+
for (int i = 0; i < length; i++)
35+
{
36+
text += array[random.Next(array.Length)].ToString();
37+
}
38+
return text;
39+
}
40+
41+
public static void DeleteDirectory(DirectoryInfo dir)
42+
{
43+
foreach (FileInfo f in dir.GetFiles()) f.Delete();
44+
foreach (DirectoryInfo SubDir in dir.GetDirectories()) SubDir.Delete(true);
45+
}
46+
}
47+
}

LunaR Spoofer/LunaR Spoofer.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<RootNamespace>LunaR_Spoofer</RootNamespace>
7+
<ImplicitUsings>enable</ImplicitUsings>
8+
<Nullable>enable</Nullable>
9+
</PropertyGroup>
10+
11+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<_LastSelectedProfileId>C:\Users\NotUmbra\source\repos\LunaR Spoofer\LunaR Spoofer\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
5+
</PropertyGroup>
6+
</Project>

LunaR Spoofer/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LunaR_Spoofer.Spoofers.Init();
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>bin\Release\net6.0\publish\win-x64\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<TargetFramework>net6.0</TargetFramework>
12+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
13+
<SelfContained>false</SelfContained>
14+
<PublishSingleFile>true</PublishSingleFile>
15+
<PublishReadyToRun>false</PublishReadyToRun>
16+
</PropertyGroup>
17+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<History>True|2022-04-07T16:18:40.5412655Z;False|2022-04-07T18:18:20.8510539+02:00;True|2022-04-07T17:59:44.1485514+02:00;True|2022-04-07T17:57:02.1604712+02:00;</History>
8+
</PropertyGroup>
9+
</Project>

LunaR Spoofer/Spoofers.cs

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
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+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v6.0",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v6.0": {
9+
"LunaR Spoofer/1.0.0": {
10+
"runtime": {
11+
"LunaR Spoofer.dll": {}
12+
}
13+
}
14+
}
15+
},
16+
"libraries": {
17+
"LunaR Spoofer/1.0.0": {
18+
"type": "project",
19+
"serviceable": false,
20+
"sha512": ""
21+
}
22+
}
23+
}
5 KB
Binary file not shown.

0 commit comments

Comments
 (0)