Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDevError authored Aug 6, 2024
0 parents commit 041d732
Show file tree
Hide file tree
Showing 94 changed files with 69,999 additions and 0 deletions.
Binary file added HWID Spoofer/EXE/GenKey.exe
Binary file not shown.
Binary file added HWID Spoofer/EXE/HWID.exe
Binary file not shown.
25 changes: 25 additions & 0 deletions HWID Spoofer/GenKey/GenKey.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35122.118
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenKey", "GenKey\GenKey.csproj", "{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {76CA5CBA-2EE5-4B31-AE30-58740EC6BB1A}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions HWID Spoofer/GenKey/GenKey/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
53 changes: 53 additions & 0 deletions HWID Spoofer/GenKey/GenKey/GenKey.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{66C48C5B-39BD-483E-A2F9-A5590BE0E66B}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>GenKey</RootNamespace>
<AssemblyName>GenKey</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
132 changes: 132 additions & 0 deletions HWID Spoofer/GenKey/GenKey/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

class Program
{
static void Main(string[] args)
{
Console.Write("Enter the number of license keys to generate: ");
int numberOfKeys;
while (!int.TryParse(Console.ReadLine(), out numberOfKeys) || numberOfKeys <= 0)
{
Console.Write("Invalid input. Please enter a positive integer: ");
}

List<string> validLicenseKeys = GenerateValidLicenseKeys(numberOfKeys);

Console.WriteLine("\nGenerated License Keys:");
foreach (var key in validLicenseKeys)
{
Console.WriteLine(key);
}

Console.Write("\nDo you want to save the keys to a file? (y/n): ");
string saveChoice = Console.ReadLine();
if (saveChoice.Equals("y", StringComparison.OrdinalIgnoreCase))
{
SaveKeysToFile(validLicenseKeys);
Console.WriteLine("Keys have been saved to keys.txt");
}
}

static List<string> GenerateValidLicenseKeys(int numberOfKeys)
{
List<string> validKeys = new List<string>();
for (int i = 0; i < numberOfKeys; i++)
{
validKeys.Add(GenerateValidLicenseKey());
}
return validKeys;
}

static string GenerateValidLicenseKey()
{
string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
Random random = new Random();

StringBuilder key = new StringBuilder();
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 4; j++)
{
key.Append(chars[random.Next(chars.Length)]);
}
key.Append('-');
}

// Generate the last part of the key
string lastPart = "";
int sum = 0;
for (int j = 0; j < 4; j++)
{
char c = chars[random.Next(chars.Length)];
lastPart += c;
if (char.IsDigit(c))
{
sum += c - '0';
}
}

// Encode license key to Base64
string base64EncodedKey = Convert.ToBase64String(Encoding.UTF8.GetBytes(key.ToString() + lastPart));

// Calculate the sum of all numeric characters in the base64 encoded string
int base64Sum = 0;
foreach (char c in base64EncodedKey)
{
if (char.IsDigit(c))
{
base64Sum += c - '0';
}
}

// Total sum of numeric values
int totalSum = base64Sum + sum;

// Ensure the total sum is in the range 0 to 20
if (totalSum > 20)
{
lastPart = AdjustLastPart(lastPart, 20 - base64Sum, sum, random);
}

key.Append(lastPart);
return key.ToString();
}

static string AdjustLastPart(string lastPart, int maxAllowedSum, int currentSum, Random random)
{
// Adjust the last part to ensure the sum is within the range
StringBuilder adjustedPart = new StringBuilder(lastPart);
int maxDifference = maxAllowedSum - currentSum;
int index = 3;

while (maxDifference < 0 && index >= 0)
{
char c = adjustedPart[index];
if (char.IsDigit(c))
{
int digitValue = c - '0';
int newDigitValue = Math.Max(0, digitValue + maxDifference);

adjustedPart[index] = (char)(newDigitValue + '0');
maxDifference -= (newDigitValue - digitValue);
}
index--;
}

return adjustedPart.ToString();
}

static void SaveKeysToFile(List<string> keys)
{
using (StreamWriter writer = new StreamWriter("keys.txt"))
{
foreach (var key in keys)
{
writer.WriteLine(key);
}
}
}
}
36 changes: 36 additions & 0 deletions HWID Spoofer/GenKey/GenKey/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GenKey")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GenKey")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("66c48c5b-39bd-483e-a2f9-a5590be0e66b")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
6 changes: 6 additions & 0 deletions HWID Spoofer/GenKey/GenKey/bin/Debug/GenKey.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Binary file added HWID Spoofer/GenKey/GenKey/bin/Debug/GenKey.pdb
Binary file not shown.
21 changes: 21 additions & 0 deletions HWID Spoofer/GenKey/GenKey/bin/Release/GenKey.application
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<assemblyIdentity name="GenKey.application" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="GenKey" asmv2:product="GenKey" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" />
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
<framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks>
<dependency>
<dependentAssembly dependencyType="install" codebase="GenKey.exe.manifest" size="3441">
<assemblyIdentity name="GenKey.exe" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>rwN+fCoIUAkHqqBHhfyxav3Hpf7zU513fA/OpEi97kc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
</asmv1:assembly>
Binary file not shown.
6 changes: 6 additions & 0 deletions HWID Spoofer/GenKey/GenKey/bin/Release/GenKey.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
65 changes: 65 additions & 0 deletions HWID Spoofer/GenKey/GenKey/bin/Release/GenKey.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<asmv1:assemblyIdentity name="GenKey.exe" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="GenKey" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<commandLine file="GenKey.exe" parameters="" />
</entryPoint>
<trustInfo>
<security>
<applicationRequestMinimum>
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!--
UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentOS>
<osVersionInfo>
<os majorVersion="4" minorVersion="10" buildNumber="0" servicePackMajor="0" />
</osVersionInfo>
</dependentOS>
</dependency>
<dependency>
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
<assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="GenKey.exe" size="6144">
<assemblyIdentity name="GenKey" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>ckBLbrewEsvQQ8OR6Yi2Iae1OiyVNMyWyGs/d5L69YI=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
<file name="GenKey.exe.config" size="189">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>
Binary file added HWID Spoofer/GenKey/GenKey/bin/Release/GenKey.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Loading

0 comments on commit 041d732

Please sign in to comment.