Skip to content

Commit 041d732

Browse files
authored
Add files via upload
0 parents  commit 041d732

File tree

94 files changed

+69999
-0
lines changed

Some content is hidden

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

94 files changed

+69999
-0
lines changed

HWID Spoofer/EXE/GenKey.exe

6 KB
Binary file not shown.

HWID Spoofer/EXE/HWID.exe

20.5 KB
Binary file not shown.

HWID Spoofer/GenKey/GenKey.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.10.35122.118
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenKey", "GenKey\GenKey.csproj", "{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}"
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+
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.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 = {76CA5CBA-2EE5-4B31-AE30-58740EC6BB1A}
24+
EndGlobalSection
25+
EndGlobal
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+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>GenKey</RootNamespace>
10+
<AssemblyName>GenKey</AssemblyName>
11+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="System" />
37+
<Reference Include="System.Core" />
38+
<Reference Include="System.Xml.Linq" />
39+
<Reference Include="System.Data.DataSetExtensions" />
40+
<Reference Include="Microsoft.CSharp" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Net.Http" />
43+
<Reference Include="System.Xml" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="Program.cs" />
47+
<Compile Include="Properties\AssemblyInfo.cs" />
48+
</ItemGroup>
49+
<ItemGroup>
50+
<None Include="App.config" />
51+
</ItemGroup>
52+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
53+
</Project>
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
using System.IO;
5+
6+
class Program
7+
{
8+
static void Main(string[] args)
9+
{
10+
Console.Write("Enter the number of license keys to generate: ");
11+
int numberOfKeys;
12+
while (!int.TryParse(Console.ReadLine(), out numberOfKeys) || numberOfKeys <= 0)
13+
{
14+
Console.Write("Invalid input. Please enter a positive integer: ");
15+
}
16+
17+
List<string> validLicenseKeys = GenerateValidLicenseKeys(numberOfKeys);
18+
19+
Console.WriteLine("\nGenerated License Keys:");
20+
foreach (var key in validLicenseKeys)
21+
{
22+
Console.WriteLine(key);
23+
}
24+
25+
Console.Write("\nDo you want to save the keys to a file? (y/n): ");
26+
string saveChoice = Console.ReadLine();
27+
if (saveChoice.Equals("y", StringComparison.OrdinalIgnoreCase))
28+
{
29+
SaveKeysToFile(validLicenseKeys);
30+
Console.WriteLine("Keys have been saved to keys.txt");
31+
}
32+
}
33+
34+
static List<string> GenerateValidLicenseKeys(int numberOfKeys)
35+
{
36+
List<string> validKeys = new List<string>();
37+
for (int i = 0; i < numberOfKeys; i++)
38+
{
39+
validKeys.Add(GenerateValidLicenseKey());
40+
}
41+
return validKeys;
42+
}
43+
44+
static string GenerateValidLicenseKey()
45+
{
46+
string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
47+
Random random = new Random();
48+
49+
StringBuilder key = new StringBuilder();
50+
for (int i = 0; i < 3; i++)
51+
{
52+
for (int j = 0; j < 4; j++)
53+
{
54+
key.Append(chars[random.Next(chars.Length)]);
55+
}
56+
key.Append('-');
57+
}
58+
59+
// Generate the last part of the key
60+
string lastPart = "";
61+
int sum = 0;
62+
for (int j = 0; j < 4; j++)
63+
{
64+
char c = chars[random.Next(chars.Length)];
65+
lastPart += c;
66+
if (char.IsDigit(c))
67+
{
68+
sum += c - '0';
69+
}
70+
}
71+
72+
// Encode license key to Base64
73+
string base64EncodedKey = Convert.ToBase64String(Encoding.UTF8.GetBytes(key.ToString() + lastPart));
74+
75+
// Calculate the sum of all numeric characters in the base64 encoded string
76+
int base64Sum = 0;
77+
foreach (char c in base64EncodedKey)
78+
{
79+
if (char.IsDigit(c))
80+
{
81+
base64Sum += c - '0';
82+
}
83+
}
84+
85+
// Total sum of numeric values
86+
int totalSum = base64Sum + sum;
87+
88+
// Ensure the total sum is in the range 0 to 20
89+
if (totalSum > 20)
90+
{
91+
lastPart = AdjustLastPart(lastPart, 20 - base64Sum, sum, random);
92+
}
93+
94+
key.Append(lastPart);
95+
return key.ToString();
96+
}
97+
98+
static string AdjustLastPart(string lastPart, int maxAllowedSum, int currentSum, Random random)
99+
{
100+
// Adjust the last part to ensure the sum is within the range
101+
StringBuilder adjustedPart = new StringBuilder(lastPart);
102+
int maxDifference = maxAllowedSum - currentSum;
103+
int index = 3;
104+
105+
while (maxDifference < 0 && index >= 0)
106+
{
107+
char c = adjustedPart[index];
108+
if (char.IsDigit(c))
109+
{
110+
int digitValue = c - '0';
111+
int newDigitValue = Math.Max(0, digitValue + maxDifference);
112+
113+
adjustedPart[index] = (char)(newDigitValue + '0');
114+
maxDifference -= (newDigitValue - digitValue);
115+
}
116+
index--;
117+
}
118+
119+
return adjustedPart.ToString();
120+
}
121+
122+
static void SaveKeysToFile(List<string> keys)
123+
{
124+
using (StreamWriter writer = new StreamWriter("keys.txt"))
125+
{
126+
foreach (var key in keys)
127+
{
128+
writer.WriteLine(key);
129+
}
130+
}
131+
}
132+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("GenKey")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("GenKey")]
13+
[assembly: AssemblyCopyright("Copyright © 2024")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("66c48c5b-39bd-483e-a2f9-a5590be0e66b")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
7 KB
Binary file not shown.
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+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>
23.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)