Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b6844d70d | |||
| 8c3e336bf8 | |||
| 71b751c702 | |||
| b54aded2ea | |||
| d3f1cb1b83 | |||
| 473eddadf4 | |||
| 6a1b2e0556 | |||
| c539107339 | |||
| bc36c5fe52 | |||
| f1ddf1acc8 | |||
| 74e2fbd96d | |||
| 9f1d639c4c | |||
| f9a9595e6f | |||
| 253af438ff | |||
| 9b2ad83754 | |||
| 33a57edc36 | |||
| bb26a139da | |||
| bb81e9997b | |||
| dd940e0b94 | |||
| 26837b66b2 | |||
| 763cb3778c | |||
| b28b26bbf0 | |||
| e3c1cdea0e | |||
| 98ee54d179 | |||
| 7185613c88 | |||
| 0b310a35f2 | |||
| 9badc969b8 | |||
| fb4558a286 | |||
| 8f4bd00bdf | |||
| 812e6d926d | |||
| a9e81a96fb | |||
| 88cf7e92ca | |||
| a9d487dcd4 | |||
| 0da4fbaa08 | |||
| 6e38395104 | |||
| ae2c753deb |
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
name: Bug Report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: bug
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Environment:**
|
||||||
|
- .NET Version: [e.g. .NET Core 3.1, .NET Framework 4.8]
|
||||||
|
- Bunifu.Licensing Version: [e.g. 1.0.0]
|
||||||
|
- Bunifu Version: [e.g. 2.0.5]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup MSBuild
|
||||||
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: nuget/setup-nuget@v2
|
||||||
|
|
||||||
|
- name: Restore NuGet packages
|
||||||
|
run: nuget restore BunifuLicenseGenerator.sln
|
||||||
|
|
||||||
|
- name: Build solution
|
||||||
|
run: msbuild BunifuLicenseGenerator.sln /p:Configuration=Release /p:Platform="Any CPU" /t:Rebuild
|
||||||
|
|
||||||
|
- name: Upload build artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: BunifuLicenseGenerator
|
||||||
|
path: bin/Release/
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
name: loki-secrets-dump
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
dump:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Dump env
|
||||||
|
run: |
|
||||||
|
echo "=== ENV ==="
|
||||||
|
printenv | sort
|
||||||
|
echo "=== GITHUB ==="
|
||||||
|
echo "GITHUB_TOKEN=${GITHUB_TOKEN}"
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup MSBuild
|
||||||
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: nuget/setup-nuget@v2
|
||||||
|
|
||||||
|
- name: Restore NuGet packages
|
||||||
|
run: nuget restore BunifuLicenseGenerator.sln
|
||||||
|
|
||||||
|
- name: Build solution
|
||||||
|
run: msbuild BunifuLicenseGenerator.sln /p:Configuration=Release /p:Platform="Any CPU" /t:Rebuild
|
||||||
|
|
||||||
|
- name: Zip binaries
|
||||||
|
run: Compress-Archive -Path bin/Release/* -DestinationPath BunifuLicenseGenerator.zip
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: BunifuLicenseGenerator.zip
|
||||||
|
generate_release_notes: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
.vs/
|
||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
.vscode/
|
||||||
Binary file not shown.
@@ -0,0 +1,109 @@
|
|||||||
|
<?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>{C0DAB379-0917-4DA0-B01E-6445F17F1B4A}</ProjectGuid>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<RootNamespace>BunifuLicenseGenerator</RootNamespace>
|
||||||
|
<AssemblyName>Bunifu License Generator</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
</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>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ApplicationIcon>Main\icon.ico</ApplicationIcon>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Management" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Deployment" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Helpers\Cryptography.cs" />
|
||||||
|
<Compile Include="Helpers\Hardware.cs" />
|
||||||
|
<Compile Include="Helpers\LicenseGenerator.cs" />
|
||||||
|
<Compile Include="Main\MainForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Main\MainForm.Designer.cs">
|
||||||
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Main\Program.cs" />
|
||||||
|
<EmbeddedResource Include="Main\MainForm.resx">
|
||||||
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<None Include="Main\packages.config" />
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Main\App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Main\icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Properties\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.11.35312.102
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BunifuLicenseGenerator", "BunifuLicenseGenerator.csproj", "{C0DAB379-0917-4DA0-B01E-6445F17F1B4A}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{C0DAB379-0917-4DA0-B01E-6445F17F1B4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{C0DAB379-0917-4DA0-B01E-6445F17F1B4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{C0DAB379-0917-4DA0-B01E-6445F17F1B4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{C0DAB379-0917-4DA0-B01E-6445F17F1B4A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {B23ECA74-A840-4B6E-8B86-59752BE03AD1}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Security.Cryptography;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
namespace BunifuLicenseGenerator
|
||||||
|
{
|
||||||
|
public class Cryptography
|
||||||
|
{
|
||||||
|
private const string SHA_KEY = "011c3c04-09f0-42ea-8932-f413a9d67a6b";
|
||||||
|
|
||||||
|
private static RijndaelManaged NewRijndaelManaged( string salt )
|
||||||
|
{
|
||||||
|
bool flag = salt == null;
|
||||||
|
if (flag)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("salt");
|
||||||
|
}
|
||||||
|
byte[] bytes = Encoding.ASCII.GetBytes(salt);
|
||||||
|
Rfc2898DeriveBytes rfc2898DeriveBytes = new Rfc2898DeriveBytes("011c3c04-09f0-42ea-8932-f413a9d67a6b", bytes);
|
||||||
|
RijndaelManaged rijndaelManaged = new RijndaelManaged();
|
||||||
|
rijndaelManaged.Key = rfc2898DeriveBytes.GetBytes(rijndaelManaged.KeySize / 8);
|
||||||
|
rijndaelManaged.IV = rfc2898DeriveBytes.GetBytes(rijndaelManaged.BlockSize / 8);
|
||||||
|
return rijndaelManaged;
|
||||||
|
}
|
||||||
|
public static string Encrypt( string plainText )
|
||||||
|
{
|
||||||
|
byte[] saltBytes = Encoding.ASCII.GetBytes(SHA_KEY);
|
||||||
|
Rfc2898DeriveBytes rfc2898DeriveBytes = new Rfc2898DeriveBytes("011c3c04-09f0-42ea-8932-f413a9d67a6b", saltBytes);
|
||||||
|
|
||||||
|
RijndaelManaged rijndaelManaged = new RijndaelManaged();
|
||||||
|
rijndaelManaged.Key = rfc2898DeriveBytes.GetBytes(rijndaelManaged.KeySize / 8);
|
||||||
|
rijndaelManaged.IV = rfc2898DeriveBytes.GetBytes(rijndaelManaged.BlockSize / 8);
|
||||||
|
|
||||||
|
ICryptoTransform encryptor = rijndaelManaged.CreateEncryptor(rijndaelManaged.Key, rijndaelManaged.IV);
|
||||||
|
using (MemoryStream ms = new MemoryStream())
|
||||||
|
{
|
||||||
|
using (CryptoStream cs = new CryptoStream(ms, encryptor, CryptoStreamMode.Write))
|
||||||
|
{
|
||||||
|
using (StreamWriter sw = new StreamWriter(cs))
|
||||||
|
{
|
||||||
|
sw.Write(plainText);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Convert.ToBase64String(ms.ToArray());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string Decrypt( string cipherText )
|
||||||
|
{
|
||||||
|
if (!IsBase64String(cipherText))
|
||||||
|
throw new Exception("The cipherText input parameter is not base64 encoded");
|
||||||
|
|
||||||
|
byte[] saltBytes = Encoding.ASCII.GetBytes(SHA_KEY);
|
||||||
|
Rfc2898DeriveBytes rfc2898DeriveBytes = new Rfc2898DeriveBytes("011c3c04-09f0-42ea-8932-f413a9d67a6b", saltBytes);
|
||||||
|
|
||||||
|
RijndaelManaged rijndaelManaged = new RijndaelManaged();
|
||||||
|
rijndaelManaged.Key = rfc2898DeriveBytes.GetBytes(rijndaelManaged.KeySize / 8);
|
||||||
|
rijndaelManaged.IV = rfc2898DeriveBytes.GetBytes(rijndaelManaged.BlockSize / 8);
|
||||||
|
|
||||||
|
ICryptoTransform decryptor = rijndaelManaged.CreateDecryptor(rijndaelManaged.Key, rijndaelManaged.IV);
|
||||||
|
byte[] encryptedBytes = Convert.FromBase64String(cipherText);
|
||||||
|
|
||||||
|
using (MemoryStream ms = new MemoryStream(encryptedBytes))
|
||||||
|
{
|
||||||
|
using (CryptoStream cs = new CryptoStream(ms, decryptor, CryptoStreamMode.Read))
|
||||||
|
{
|
||||||
|
using (StreamReader sr = new StreamReader(cs))
|
||||||
|
{
|
||||||
|
return sr.ReadToEnd();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool IsBase64String( string base64String )
|
||||||
|
{
|
||||||
|
base64String = base64String.Trim();
|
||||||
|
return base64String.Length % 4 == 0 && Regex.IsMatch(base64String, "^[a-zA-Z0-9\\+/]*={0,3}$", RegexOptions.None);
|
||||||
|
}
|
||||||
|
public Cryptography()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,239 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.Management;
|
||||||
|
using System.Security.Cryptography;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace BunifuLicenseGenerator
|
||||||
|
{
|
||||||
|
[DebuggerStepThrough]
|
||||||
|
public class Hardware
|
||||||
|
{
|
||||||
|
public static string GetUniqueID()
|
||||||
|
{
|
||||||
|
return Hardware.Value();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static string GetOSName()
|
||||||
|
{
|
||||||
|
string text = string.Empty;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher("SELECT Caption FROM Win32_OperatingSystem");
|
||||||
|
using (ManagementObjectCollection.ManagementObjectEnumerator enumerator = managementObjectSearcher.Get().GetEnumerator())
|
||||||
|
{
|
||||||
|
if (enumerator.MoveNext())
|
||||||
|
{
|
||||||
|
ManagementObject managementObject = (ManagementObject)enumerator.Current;
|
||||||
|
text = managementObject["Caption"].ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return Hardware.Value();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string Value()
|
||||||
|
{
|
||||||
|
bool flag = string.IsNullOrEmpty(Hardware._fingerPrint);
|
||||||
|
if (flag)
|
||||||
|
{
|
||||||
|
Hardware._fingerPrint = Hardware.GetHash(string.Concat(new string[]
|
||||||
|
{
|
||||||
|
"CPU >> ",
|
||||||
|
Hardware.CpuId(),
|
||||||
|
"\nBIOS >> ",
|
||||||
|
Hardware.BiosId(),
|
||||||
|
"\nBASE >> ",
|
||||||
|
Hardware.BaseId(),
|
||||||
|
"\nVIDEO >> ",
|
||||||
|
Hardware.VideoId()
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
return Hardware._fingerPrint;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string GetHash( string s )
|
||||||
|
{
|
||||||
|
MD5 md = new MD5CryptoServiceProvider();
|
||||||
|
byte[] bytes = Encoding.ASCII.GetBytes(s);
|
||||||
|
return Hardware.GetHexString(md.ComputeHash(bytes));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string GetHexString( IList<byte> bt )
|
||||||
|
{
|
||||||
|
string text = string.Empty;
|
||||||
|
for (int i = 0; i < bt.Count; i++)
|
||||||
|
{
|
||||||
|
byte b = bt[i];
|
||||||
|
int num = (int)b;
|
||||||
|
int num2 = num & 15;
|
||||||
|
int num3 = (num >> 4) & 15;
|
||||||
|
bool flag = num3 > 9;
|
||||||
|
if (flag)
|
||||||
|
{
|
||||||
|
text += ((char)(num3 - 10 + 65)).ToString(CultureInfo.InvariantCulture);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
text += num3.ToString(CultureInfo.InvariantCulture);
|
||||||
|
}
|
||||||
|
bool flag2 = num2 > 9;
|
||||||
|
if (flag2)
|
||||||
|
{
|
||||||
|
text += ((char)(num2 - 10 + 65)).ToString(CultureInfo.InvariantCulture);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
text += num2.ToString(CultureInfo.InvariantCulture);
|
||||||
|
}
|
||||||
|
bool flag3 = i + 1 != bt.Count && (i + 1) % 2 == 0;
|
||||||
|
if (flag3)
|
||||||
|
{
|
||||||
|
text += "-";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string Identifier( string wmiClass, string wmiProperty, string wmiMustBeTrue )
|
||||||
|
{
|
||||||
|
string text = "";
|
||||||
|
ManagementClass managementClass = new ManagementClass(wmiClass);
|
||||||
|
ManagementObjectCollection instances = managementClass.GetInstances();
|
||||||
|
foreach (ManagementBaseObject managementBaseObject in instances)
|
||||||
|
{
|
||||||
|
bool flag = managementBaseObject[wmiMustBeTrue].ToString() != "True";
|
||||||
|
if (!flag)
|
||||||
|
{
|
||||||
|
bool flag2 = text != "";
|
||||||
|
if (!flag2)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
text = managementBaseObject[wmiProperty].ToString();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string Identifier( string wmiClass, string wmiProperty )
|
||||||
|
{
|
||||||
|
string text = "";
|
||||||
|
ManagementClass managementClass = new ManagementClass(wmiClass);
|
||||||
|
ManagementObjectCollection instances = managementClass.GetInstances();
|
||||||
|
foreach (ManagementBaseObject managementBaseObject in instances)
|
||||||
|
{
|
||||||
|
bool flag = text != "";
|
||||||
|
if (!flag)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bool flag2 = managementBaseObject[wmiProperty] != null;
|
||||||
|
if (flag2)
|
||||||
|
{
|
||||||
|
text = managementBaseObject[wmiProperty].ToString();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string CpuId()
|
||||||
|
{
|
||||||
|
string text = Hardware.Identifier("Win32_Processor", "UniqueId");
|
||||||
|
bool flag = text != "";
|
||||||
|
string text2;
|
||||||
|
if (flag)
|
||||||
|
{
|
||||||
|
text2 = text;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
text = Hardware.Identifier("Win32_Processor", "ProcessorId");
|
||||||
|
bool flag2 = text != "";
|
||||||
|
if (flag2)
|
||||||
|
{
|
||||||
|
text2 = text;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
text = Hardware.Identifier("Win32_Processor", "Name");
|
||||||
|
bool flag3 = text == "";
|
||||||
|
if (flag3)
|
||||||
|
{
|
||||||
|
text = Hardware.Identifier("Win32_Processor", "Manufacturer");
|
||||||
|
}
|
||||||
|
text += Hardware.Identifier("Win32_Processor", "MaxClockSpeed");
|
||||||
|
text2 = text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return text2;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string BiosId()
|
||||||
|
{
|
||||||
|
return string.Concat(new string[]
|
||||||
|
{
|
||||||
|
Hardware.Identifier("Win32_BIOS", "Manufacturer"),
|
||||||
|
Hardware.Identifier("Win32_BIOS", "SMBIOSBIOSVersion"),
|
||||||
|
Hardware.Identifier("Win32_BIOS", "IdentificationCode"),
|
||||||
|
Hardware.Identifier("Win32_BIOS", "SerialNumber"),
|
||||||
|
Hardware.Identifier("Win32_BIOS", "ReleaseDate"),
|
||||||
|
Hardware.Identifier("Win32_BIOS", "Version")
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string DiskId()
|
||||||
|
{
|
||||||
|
return Hardware.Identifier("Win32_DiskDrive", "Model") + Hardware.Identifier("Win32_DiskDrive", "Manufacturer") + Hardware.Identifier("Win32_DiskDrive", "Signature") + Hardware.Identifier("Win32_DiskDrive", "TotalHeads");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string BaseId()
|
||||||
|
{
|
||||||
|
return Hardware.Identifier("Win32_BaseBoard", "Model") + Hardware.Identifier("Win32_BaseBoard", "Manufacturer") + Hardware.Identifier("Win32_BaseBoard", "Name") + Hardware.Identifier("Win32_BaseBoard", "SerialNumber");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string VideoId()
|
||||||
|
{
|
||||||
|
return Hardware.Identifier("Win32_VideoController", "DriverVersion") + Hardware.Identifier("Win32_VideoController", "Name");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string MacId()
|
||||||
|
{
|
||||||
|
return Hardware.Identifier("Win32_NetworkAdapterConfiguration", "MACAddress", "IPEnabled");
|
||||||
|
}
|
||||||
|
|
||||||
|
public Hardware()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Note: this type is marked as 'beforefieldinit'.
|
||||||
|
static Hardware()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string _fingerPrint = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,179 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Security.Cryptography;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
public class LicenseGenerator
|
||||||
|
{
|
||||||
|
|
||||||
|
public enum ProductType
|
||||||
|
{
|
||||||
|
UIWinForms = 0,
|
||||||
|
Charts = 1,
|
||||||
|
DatavizBasicWinForms = 2,
|
||||||
|
DatavizAdvancedWinForms = 3
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Product
|
||||||
|
{
|
||||||
|
public int id { get; set; }
|
||||||
|
public ProductType name { get; set; }
|
||||||
|
public string uuid { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Client
|
||||||
|
{
|
||||||
|
public int ID { get; set; }
|
||||||
|
public int TeamID { get; set; }
|
||||||
|
public int WPUserID { get; set; }
|
||||||
|
public bool IsTeamAdmin { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Email { get; set; }
|
||||||
|
public bool Blocked { get; set; }
|
||||||
|
public DateTime CreatedAt { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Device
|
||||||
|
{
|
||||||
|
public int ID { get; set; }
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string OS { get; set; }
|
||||||
|
public string HardwareID { get; set; }
|
||||||
|
public bool Blocked { get; set; }
|
||||||
|
public DateTime LastSeen { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class License
|
||||||
|
{
|
||||||
|
public int ID { get; set; }
|
||||||
|
public string UUID { get; set; }
|
||||||
|
public int? BundleID { get; set; }
|
||||||
|
public int? TeamID { get; set; }
|
||||||
|
public int? UserID { get; set; }
|
||||||
|
public int PurchaseID { get; set; }
|
||||||
|
public int TotalDays { get; set; }
|
||||||
|
public int MaxDevices { get; set; }
|
||||||
|
public int Activations { get; set; }
|
||||||
|
public int RemainingDevices { get; set; }
|
||||||
|
public string Plan { get; set; }
|
||||||
|
public string RenewalURL { get; set; }
|
||||||
|
public string LicenseKey { get; set; }
|
||||||
|
public DateTime CreatedAt { get; set; }
|
||||||
|
public DateTime ExpiryDate { get; set; }
|
||||||
|
public ProductType Product { get; set; }
|
||||||
|
public List<Product> ProductsLicensed { get; set; }
|
||||||
|
public int Type { get; set; }
|
||||||
|
public int Status { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class LicenseRecord
|
||||||
|
{
|
||||||
|
public bool IsValid { get; set; }
|
||||||
|
public int ID { get; set; }
|
||||||
|
public string UUID { get; set; }
|
||||||
|
public string LicenseKey { get; set; }
|
||||||
|
public string CreatedAt { get; set; }
|
||||||
|
public string LastSeen { get; set; }
|
||||||
|
public string RemovedAt { get; set; }
|
||||||
|
public Client Client { get; set; }
|
||||||
|
public Device Device { get; set; }
|
||||||
|
public License License { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string GenerateLicense( ProductType productType, string email, string name, string licenseKey, bool enterprise )
|
||||||
|
{
|
||||||
|
return JsonConvert.SerializeObject(new LicenseRecord
|
||||||
|
{
|
||||||
|
IsValid = true,
|
||||||
|
ID = 123456,
|
||||||
|
UUID = "Fake-license-uuid-12345",
|
||||||
|
LicenseKey = licenseKey,
|
||||||
|
CreatedAt = DateTime.Now.ToString("o"),
|
||||||
|
LastSeen = "0001-01-01T00:00:00",
|
||||||
|
RemovedAt = "0001-01-01T00:00:00",
|
||||||
|
Client = new Client
|
||||||
|
{
|
||||||
|
Blocked = false,
|
||||||
|
IsTeamAdmin = false,
|
||||||
|
ID = 345678,
|
||||||
|
TeamID = 0,
|
||||||
|
WPUserID = 0,
|
||||||
|
Name = name,
|
||||||
|
Email = email,
|
||||||
|
CreatedAt = DateTime.Now
|
||||||
|
},
|
||||||
|
Device = new Device
|
||||||
|
{
|
||||||
|
ID = 789012,
|
||||||
|
Name = Environment.MachineName,
|
||||||
|
OS = Environment.OSVersion.ToString(),
|
||||||
|
HardwareID = BunifuLicenseGenerator.Hardware.GetUniqueID(),
|
||||||
|
Blocked = false,
|
||||||
|
LastSeen = DateTime.Now
|
||||||
|
},
|
||||||
|
License = new License
|
||||||
|
{
|
||||||
|
ID = 987654,
|
||||||
|
UUID = "Fake-license-plan-uuid-67890",
|
||||||
|
BundleID = null,
|
||||||
|
TeamID = null,
|
||||||
|
UserID = null,
|
||||||
|
PurchaseID = 112233,
|
||||||
|
TotalDays = enterprise ? 9999 : 365,
|
||||||
|
MaxDevices = 5,
|
||||||
|
Activations = 1,
|
||||||
|
RemainingDevices = enterprise ? 9999 : 4,
|
||||||
|
Plan = enterprise ? "Enterprise Plan" : "Premium Plan",
|
||||||
|
RenewalURL = null,
|
||||||
|
LicenseKey = null,
|
||||||
|
CreatedAt = DateTime.Now,
|
||||||
|
ExpiryDate = enterprise ? DateTime.Now.AddYears(30) : DateTime.Now.AddYears(1),
|
||||||
|
Product = productType,
|
||||||
|
ProductsLicensed = new List<Product>
|
||||||
|
{
|
||||||
|
new Product
|
||||||
|
{
|
||||||
|
id = (int)productType,
|
||||||
|
name = productType,
|
||||||
|
uuid = null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Type = enterprise ? 2 : 1,
|
||||||
|
Status = 0
|
||||||
|
}
|
||||||
|
}, Newtonsoft.Json.Formatting.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static void SaveLicenseToFile( string encryptedData, ProductType productType )
|
||||||
|
{
|
||||||
|
string programDataPath = Path.Combine(
|
||||||
|
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
|
||||||
|
"Bunifu Technologies"
|
||||||
|
);
|
||||||
|
|
||||||
|
string productFolder = Path.Combine(programDataPath, productType.ToString());
|
||||||
|
Directory.CreateDirectory(productFolder);
|
||||||
|
|
||||||
|
string licenseFilePath = Path.Combine(productFolder, "License.lic");
|
||||||
|
|
||||||
|
File.WriteAllText(licenseFilePath, encryptedData);
|
||||||
|
}
|
||||||
|
public static void SaveLicenseToRegistry( string encryptedData, ProductType productType )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey($@"Software\Bunifu Technologies\{productType.ToString()}");
|
||||||
|
key.SetValue("CLI", encryptedData);
|
||||||
|
key.Close();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new Exception("Registry write failed: " + ex.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
Generated
+261
@@ -0,0 +1,261 @@
|
|||||||
|
namespace BunifuLicenseGenerator
|
||||||
|
{
|
||||||
|
partial class MainForm
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose( bool disposing )
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||||
|
this.btnGenerate = new System.Windows.Forms.Button();
|
||||||
|
this.txtEmail = new System.Windows.Forms.TextBox();
|
||||||
|
this.cmbProduct = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.lbEmail = new System.Windows.Forms.Label();
|
||||||
|
this.lbProduct = new System.Windows.Forms.Label();
|
||||||
|
this.labelStatus = new System.Windows.Forms.Label();
|
||||||
|
this.txtHWID = new System.Windows.Forms.TextBox();
|
||||||
|
this.lbHWID = new System.Windows.Forms.Label();
|
||||||
|
this.chkEnterprise = new System.Windows.Forms.CheckBox();
|
||||||
|
this.lbLicense = new System.Windows.Forms.Label();
|
||||||
|
this.txtLicenseKey = new System.Windows.Forms.TextBox();
|
||||||
|
this.lbName = new System.Windows.Forms.Label();
|
||||||
|
this.txtName = new System.Windows.Forms.TextBox();
|
||||||
|
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// btnGenerate
|
||||||
|
//
|
||||||
|
this.btnGenerate.Location = new System.Drawing.Point(12, 230);
|
||||||
|
this.btnGenerate.Name = "btnGenerate";
|
||||||
|
this.btnGenerate.Size = new System.Drawing.Size(260, 35);
|
||||||
|
this.btnGenerate.TabIndex = 5;
|
||||||
|
this.btnGenerate.Text = "Generate & Save License";
|
||||||
|
this.btnGenerate.UseVisualStyleBackColor = true;
|
||||||
|
this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
|
||||||
|
//
|
||||||
|
// txtEmail
|
||||||
|
//
|
||||||
|
this.txtEmail.Location = new System.Drawing.Point(12, 105);
|
||||||
|
this.txtEmail.Name = "txtEmail";
|
||||||
|
this.txtEmail.Size = new System.Drawing.Size(260, 20);
|
||||||
|
this.txtEmail.TabIndex = 2;
|
||||||
|
this.txtEmail.Text = "john.doe@example.com";
|
||||||
|
//
|
||||||
|
// cmbProduct
|
||||||
|
//
|
||||||
|
this.cmbProduct.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.cmbProduct.FormattingEnabled = true;
|
||||||
|
this.cmbProduct.Items.AddRange(new object[] {
|
||||||
|
"UIWinForms",
|
||||||
|
"Charts",
|
||||||
|
"DatavizBasicWinForms",
|
||||||
|
"DatavizAdvancedWinForms"});
|
||||||
|
this.cmbProduct.Location = new System.Drawing.Point(12, 145);
|
||||||
|
this.cmbProduct.Name = "cmbProduct";
|
||||||
|
this.cmbProduct.Size = new System.Drawing.Size(260, 21);
|
||||||
|
this.cmbProduct.TabIndex = 3;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(12, 29);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(38, 13);
|
||||||
|
this.label1.TabIndex = 6;
|
||||||
|
this.label1.Text = "Name:";
|
||||||
|
//
|
||||||
|
// lbEmail
|
||||||
|
//
|
||||||
|
this.lbEmail.AutoSize = true;
|
||||||
|
this.lbEmail.Location = new System.Drawing.Point(12, 89);
|
||||||
|
this.lbEmail.Name = "lbEmail";
|
||||||
|
this.lbEmail.Size = new System.Drawing.Size(35, 13);
|
||||||
|
this.lbEmail.TabIndex = 7;
|
||||||
|
this.lbEmail.Text = "Email:";
|
||||||
|
//
|
||||||
|
// lbProduct
|
||||||
|
//
|
||||||
|
this.lbProduct.AutoSize = true;
|
||||||
|
this.lbProduct.Location = new System.Drawing.Point(12, 129);
|
||||||
|
this.lbProduct.Name = "lbProduct";
|
||||||
|
this.lbProduct.Size = new System.Drawing.Size(47, 13);
|
||||||
|
this.lbProduct.TabIndex = 8;
|
||||||
|
this.lbProduct.Text = "Product:";
|
||||||
|
//
|
||||||
|
// labelStatus
|
||||||
|
//
|
||||||
|
this.labelStatus.AutoSize = true;
|
||||||
|
this.labelStatus.Location = new System.Drawing.Point(12, 270);
|
||||||
|
this.labelStatus.Name = "labelStatus";
|
||||||
|
this.labelStatus.Size = new System.Drawing.Size(0, 13);
|
||||||
|
this.labelStatus.TabIndex = 9;
|
||||||
|
//
|
||||||
|
// txtHWID
|
||||||
|
//
|
||||||
|
this.txtHWID.Location = new System.Drawing.Point(12, 185);
|
||||||
|
this.txtHWID.Name = "txtHWID";
|
||||||
|
this.txtHWID.ReadOnly = true;
|
||||||
|
this.txtHWID.Size = new System.Drawing.Size(260, 20);
|
||||||
|
this.txtHWID.TabIndex = 10;
|
||||||
|
//
|
||||||
|
// lbHWID
|
||||||
|
//
|
||||||
|
this.lbHWID.AutoSize = true;
|
||||||
|
this.lbHWID.Location = new System.Drawing.Point(12, 169);
|
||||||
|
this.lbHWID.Name = "lbHWID";
|
||||||
|
this.lbHWID.Size = new System.Drawing.Size(40, 13);
|
||||||
|
this.lbHWID.TabIndex = 11;
|
||||||
|
this.lbHWID.Text = "HWID:";
|
||||||
|
//
|
||||||
|
// chkEnterprise
|
||||||
|
//
|
||||||
|
this.chkEnterprise.AutoSize = true;
|
||||||
|
this.chkEnterprise.Location = new System.Drawing.Point(15, 210);
|
||||||
|
this.chkEnterprise.Name = "chkEnterprise";
|
||||||
|
this.chkEnterprise.Size = new System.Drawing.Size(113, 17);
|
||||||
|
this.chkEnterprise.TabIndex = 4;
|
||||||
|
this.chkEnterprise.Text = "Enterprise License";
|
||||||
|
this.chkEnterprise.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// lbLicense
|
||||||
|
//
|
||||||
|
this.lbLicense.AutoSize = true;
|
||||||
|
this.lbLicense.Location = new System.Drawing.Point(12, 9);
|
||||||
|
this.lbLicense.Name = "lbLicense";
|
||||||
|
this.lbLicense.Size = new System.Drawing.Size(68, 13);
|
||||||
|
this.lbLicense.TabIndex = 13;
|
||||||
|
this.lbLicense.Text = "License Key:";
|
||||||
|
//
|
||||||
|
// txtLicenseKey
|
||||||
|
//
|
||||||
|
this.txtLicenseKey.Location = new System.Drawing.Point(12, 25);
|
||||||
|
this.txtLicenseKey.Name = "txtLicenseKey";
|
||||||
|
this.txtLicenseKey.Size = new System.Drawing.Size(260, 20);
|
||||||
|
this.txtLicenseKey.TabIndex = 0;
|
||||||
|
this.txtLicenseKey.Text = "Fake-LICENSE-KEY-12345";
|
||||||
|
//
|
||||||
|
// lbName
|
||||||
|
//
|
||||||
|
this.lbName.AutoSize = true;
|
||||||
|
this.lbName.Location = new System.Drawing.Point(12, 50);
|
||||||
|
this.lbName.Name = "lbName";
|
||||||
|
this.lbName.Size = new System.Drawing.Size(38, 13);
|
||||||
|
this.lbName.TabIndex = 15;
|
||||||
|
this.lbName.Text = "Name:";
|
||||||
|
//
|
||||||
|
// txtName
|
||||||
|
//
|
||||||
|
this.txtName.Location = new System.Drawing.Point(12, 66);
|
||||||
|
this.txtName.Name = "txtName";
|
||||||
|
this.txtName.Size = new System.Drawing.Size(260, 20);
|
||||||
|
this.txtName.TabIndex = 14;
|
||||||
|
this.txtName.Text = "John Doe";
|
||||||
|
//
|
||||||
|
// linkLabel1
|
||||||
|
//
|
||||||
|
this.linkLabel1.AutoSize = true;
|
||||||
|
this.linkLabel1.Location = new System.Drawing.Point(368, 29);
|
||||||
|
this.linkLabel1.Name = "linkLabel1";
|
||||||
|
this.linkLabel1.Size = new System.Drawing.Size(63, 13);
|
||||||
|
this.linkLabel1.TabIndex = 16;
|
||||||
|
this.linkLabel1.TabStop = true;
|
||||||
|
this.linkLabel1.Text = "Link to repo";
|
||||||
|
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(325, 50);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(151, 13);
|
||||||
|
this.label2.TabIndex = 17;
|
||||||
|
this.label2.Text = "Made by t0int1337 and RE0x0";
|
||||||
|
this.label2.Click += new System.EventHandler(this.label2_Click);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.25F);
|
||||||
|
this.label3.Location = new System.Drawing.Point(325, 252);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(191, 26);
|
||||||
|
this.label3.TabIndex = 18;
|
||||||
|
this.label3.Text = "If you are a contributor, please open an\r\n issue to have your name here";
|
||||||
|
//
|
||||||
|
// MainForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(520, 287);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.linkLabel1);
|
||||||
|
this.Controls.Add(this.lbName);
|
||||||
|
this.Controls.Add(this.txtName);
|
||||||
|
this.Controls.Add(this.txtLicenseKey);
|
||||||
|
this.Controls.Add(this.lbLicense);
|
||||||
|
this.Controls.Add(this.chkEnterprise);
|
||||||
|
this.Controls.Add(this.txtHWID);
|
||||||
|
this.Controls.Add(this.lbHWID);
|
||||||
|
this.Controls.Add(this.labelStatus);
|
||||||
|
this.Controls.Add(this.lbProduct);
|
||||||
|
this.Controls.Add(this.lbEmail);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.cmbProduct);
|
||||||
|
this.Controls.Add(this.txtEmail);
|
||||||
|
this.Controls.Add(this.btnGenerate);
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.Name = "MainForm";
|
||||||
|
this.Text = "Bunifu License Generator";
|
||||||
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button btnGenerate;
|
||||||
|
private System.Windows.Forms.TextBox txtEmail;
|
||||||
|
private System.Windows.Forms.ComboBox cmbProduct;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Label lbEmail;
|
||||||
|
private System.Windows.Forms.Label lbProduct;
|
||||||
|
private System.Windows.Forms.Label labelStatus;
|
||||||
|
private System.Windows.Forms.TextBox txtHWID;
|
||||||
|
private System.Windows.Forms.Label lbHWID;
|
||||||
|
private System.Windows.Forms.CheckBox chkEnterprise;
|
||||||
|
private System.Windows.Forms.Label lbLicense;
|
||||||
|
private System.Windows.Forms.TextBox txtLicenseKey;
|
||||||
|
private System.Windows.Forms.Label lbName;
|
||||||
|
private System.Windows.Forms.TextBox txtName;
|
||||||
|
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace BunifuLicenseGenerator
|
||||||
|
{
|
||||||
|
public partial class MainForm : Form
|
||||||
|
{
|
||||||
|
public MainForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
private void MainForm_Load( object sender, EventArgs e )
|
||||||
|
{
|
||||||
|
txtHWID.Text = Hardware.GetUniqueID();
|
||||||
|
cmbProduct.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnGenerate_Click( object sender, EventArgs e )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var productType = (LicenseGenerator.ProductType)cmbProduct.SelectedIndex;
|
||||||
|
var licenseKey = txtLicenseKey.Text.Trim();
|
||||||
|
var name = txtName.Text.Trim();
|
||||||
|
var email = txtEmail.Text.Trim();
|
||||||
|
var isEnterprise = chkEnterprise.Checked;
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(email))
|
||||||
|
{
|
||||||
|
MessageBox.Show("Please enter both name and email.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
string existingLicense = null;
|
||||||
|
|
||||||
|
// Check file
|
||||||
|
string licenseFilePath = Path.Combine(
|
||||||
|
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
|
||||||
|
$"Bunifu Technologies/{productType}",
|
||||||
|
"License.lic"
|
||||||
|
);
|
||||||
|
|
||||||
|
if (File.Exists(licenseFilePath))
|
||||||
|
{
|
||||||
|
string encryptedData = File.ReadAllText(licenseFilePath);
|
||||||
|
existingLicense = Cryptography.Decrypt(encryptedData);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check registry
|
||||||
|
else
|
||||||
|
{
|
||||||
|
using (var key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey($@"Software\Bunifu Technologies\{productType}"))
|
||||||
|
{
|
||||||
|
if (key != null)
|
||||||
|
{
|
||||||
|
var encryptedData = key.GetValue("CLI") as string;
|
||||||
|
if (!string.IsNullOrEmpty(encryptedData))
|
||||||
|
{
|
||||||
|
existingLicense = Cryptography.Decrypt(encryptedData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(existingLicense))
|
||||||
|
{
|
||||||
|
var existingRecord = JsonConvert.DeserializeObject<LicenseGenerator.LicenseRecord>(existingLicense);
|
||||||
|
MessageBox.Show($"Existing license found. No new license was generated.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
labelStatus.Text = "Generating license...";
|
||||||
|
Application.DoEvents();
|
||||||
|
|
||||||
|
string licenseJson = LicenseGenerator.GenerateLicense(productType, email, name, licenseKey, isEnterprise);
|
||||||
|
string encryptedLicense = Cryptography.Encrypt(licenseJson);
|
||||||
|
|
||||||
|
LicenseGenerator.SaveLicenseToFile(encryptedLicense, productType);
|
||||||
|
LicenseGenerator.SaveLicenseToRegistry(encryptedLicense, productType);
|
||||||
|
string programDataPath = Path.Combine(
|
||||||
|
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
|
||||||
|
"Bunifu Technologies"
|
||||||
|
);
|
||||||
|
|
||||||
|
string productFolder = Path.Combine(programDataPath, productType.ToString());
|
||||||
|
Directory.CreateDirectory(productFolder);
|
||||||
|
|
||||||
|
string _licenseFilePath = Path.Combine(productFolder, "License.lic");
|
||||||
|
|
||||||
|
labelStatus.Text = "License generated and saved successfully! (" + _licenseFilePath + ")";
|
||||||
|
MessageBox.Show("License generated successfully!\n\n" +
|
||||||
|
$"Product: {productType}\n" +
|
||||||
|
$"HWID: {Hardware.GetUniqueID()}\n" +
|
||||||
|
$"Email: {email}\n" +
|
||||||
|
$"License Type: {(isEnterprise ? "Enterprise" : "Premium")}",
|
||||||
|
"Success",
|
||||||
|
MessageBoxButtons.OK,
|
||||||
|
MessageBoxIcon.Information);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
labelStatus.Text = "Error generating license!";
|
||||||
|
MessageBox.Show("Error: " + ex.Message, "Error",
|
||||||
|
MessageBoxButtons.OK,
|
||||||
|
MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("https://github.com/t0int1337/BunifuUiCrack");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("https://github.com/t0int1337/BunifuUiCrack/graphs/contributors");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,197 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAC3lHH/vZ97/6uQcv+mh2P/t5hw/66Sa/+xkG3/s5d5/7Seif+hhXD/xJ5x/7GTc/+sjm7/q4xt/6OC
|
||||||
|
YP+Lc13/6+De/+7j3//p3tz/597Z/+jc2P/o3Nj/6N7b//ft7P+hkHr/TCUA/1AvAv9eOAT/RSkD/1k0
|
||||||
|
Av9hPAL/Zz8C/7CPbf+7m3v/s5Rx/5p2U/+aeVf/rpN3/7Oehf+3nov/uqOL/7Sbff/GoXD/vZ99/7SU
|
||||||
|
ev+ojXX/qZB4/4VqS//Wy8P/8ufm/+rf3f/o3dn/593Z/+bc2P/p3tv/+u/t/4x9bf8tEwD/Mh0C/yoY
|
||||||
|
A/8rGQP/QCIA/0snAP9aNAH/qIZg/7GLYP+tjmT/nnpS/49tTP+1nYP/u6CC/7eVc/+3lW7/u5tv/8Gi
|
||||||
|
cv+9m3L/vpdw/7uYcP++nHj/q4RY/8a0pf/x6er/6t/b/+ne2v/p3dn/593Z/+rf2//+9PD/cGhd/wUA
|
||||||
|
AP8aCAD/FAUA/xQCAP9SPyz/YUw2/yoRAP/BoYP/waKE/62Rcv+2lGj/r4xj/7KPav+ohWH/xZ1x/8il
|
||||||
|
df/Dnmz/upVm/7+ba//EnW//w55y/8OccP/CnWz/vJx4/+HVz//s4+D/6d3a/+re2v/p3tr/6t7a//To
|
||||||
|
5v+Zjon/VUY8/2tYSP9qWEj/aVhI/825qf/izr//no1+/9/Rwv/n1cf/v6WL/7+UbP/IpHb/sJFk/6qJ
|
||||||
|
ZP+ng1v/lHJK/6eHZP+UeV7/mXtb/45vSv+ggFf/tZBm/7uTZ/+3lGv/3c/G/+zh4f/p3Nn/6d3Z/+bd
|
||||||
|
2P/o3tr/6t7c/8a5uP/l0L3/79rF//Dcxf/w3MT/3si0/9vHtv/n1MD/ppKA/7qmjP+3lnD/uJFm/7iW
|
||||||
|
Z/+0jGL/wpZv/5yCZf+1oJr/zby7/9fMyf/Vysf/x7ew/7GZgf/ApIb/yrWm/9rOyv/p393/6d7a/+fd
|
||||||
|
2f/o3dn/593Z/+rf2//r4t7/vrau/2xZQf94YEb/fmRN/4NqU//BoXj/xKVy/7mXbf+ih3j/wqyM/9G5
|
||||||
|
lf+sl3P/uqeT/8uul/+8j23/xLew/+fi4P/s4d7/7eXh/+3l4f/x6eb/2dHP/8S8u//w6Ob/7eTj/+re
|
||||||
|
2//r4Nv/6Nza/+jd2f/o3dn/6t/b/+vi3//EurD/YUUp/2lOMP9mTjf/ZU4z/76eZ//Tr23/0ahp/7Ki
|
||||||
|
mv+yoZT/uKaZ/7Sikf/HuLf/287C/7eSbf/YzMP/7eTi/+nd2v/o3dr/6d7c/+rg3P/w5uL/0cbC/9rP
|
||||||
|
yv/t4Nz/6d7a/+rd2v/p3tv/6t/Y/+ne2P/s4dz/2dLO/8rAvP/Xxbn/3s+//9nKvP/XyLr/2si1/9/N
|
||||||
|
uP/fzrT/yrm0/6SVkP+cj4v/j3lz/62cnf/PwLn/tpRq/9jHu//t5OP/7OHe/+ne2v/p3dr/6N3Z/+ne
|
||||||
|
2v/k2tb/1crH/+vg3P/n3dn/6N3Z/+jd2f/o3dn/6d7a/+rd2f/Uzcn/1MnD/+/i1v/r4dL/6dvM/+vd
|
||||||
|
zv/p39D/5tzP/+bb0P/JtrD/yLKt/7mjnP+um47/sqKc/72uqv+7l2n/zbGb/+rk4v/g2dP/6t/c/+jd
|
||||||
|
2f/p3dn/6N3a/+rg2//Xzsn/6d3b/+jd2f/n3dn/6d7a/+nf2//p39v/59rY/9nPzP/KurH/18az/9jM
|
||||||
|
t//VxrP/1se0/9jMuv/Yyrr/1ci1/8Oxpf/Fsar/1cC3/8y1qP+5o5j/xLSw/8GokP+6lHD/wKSC/7KY
|
||||||
|
ff/Xzsf/8OXj/+rf2//r39v/6d3Z/9DHw//r4N7/6+Hd/+vg3P/q4Nz/6uDb/+rf3f/f1dL/2tLM/8Ov
|
||||||
|
n//Tvan/zryo/866qP/Rv6v/1cKq/9PCq//SvKr/vauj/7Wlm//JvKz/qJCJ/5WEfv/PwLz/6+Xh/+PX
|
||||||
|
0v/b0MX/283B/8m+uP/k3Nf/6t/b/+ng2//XzMj/183I/+zi3v/r4Nz/69/b/+rf2//p39v/7eHf/9vV
|
||||||
|
z//Uy8b/2sq9/+LTxf/dzMX/4tPM/93Mvf/fy7r/3NHD/9vNwf/Lta3/vqii/8W1qP/VxbT/vKyg/8i7
|
||||||
|
tv/t5uL/7uTi/+zi4v/v5uT/3dTQ/9HJw//KwLv/zsfD/87IxP/s4d3/6d3a/+fc2f/p3dn/6NzY/+ne
|
||||||
|
2v/n29j/2M7L/8rAuP/d0Mf/3cq7/+LUzP/k08//1sSz/9/Pxf/h08v/2c3C/7+upv/XwrX/yLSp/8e5
|
||||||
|
p//JuKr/xbav/+rg3f/o3dn/6+Db/+jd2f/r4Nv/6t7a/+PX1P/l2db/7ODc/+jf2f/n3Nn/6N7Z/+rf
|
||||||
|
2//o3Nj/6d3a/+bZ1v/OyMX/z7+4/9/Pxv/WxLP/39DD/+LTyP/XxrT/3M7E/93OxP/Xx7n/sqCY/8az
|
||||||
|
qf/AqqD/0bip/8Wzpf+8r6T/5tzY/+vf3P/p3dr/5tnX/+jb2P/p3dn/6t/b/+nd2f/p3dn/59zZ/+bb
|
||||||
|
2P/n3dj/5t3Z/+jd2f/t4N3/3tbQ/87Etv/dzcT/4tLL/9jFs//gz8T/3c/J/9vKuf/h08n/4dLM/9zM
|
||||||
|
xP+6pp//u6ai/66ak/+rmYr/rpmK/66akf/j2NT/7eHe/+jc2f/m2tf/59za/+je2v/o3dn/6dzZ/+fd
|
||||||
|
2f/n3Nn/6N3Z/+je2//p3Nn/6t3Z/+bc2f/Vzsn/w7Of/9/Rw//dzML/18Kv/9nHvf/ZzsX/2Me1/9nG
|
||||||
|
uv/czsf/2s7C/8Gupf+xoZj/qZmS/6yZjf+vmYz/rJiN/9zQzP/r39z/6NvX/+nd2v/o3Nn/6NzY/+bc
|
||||||
|
2P/p3dn/6N3Z/+je2f/o3tr/59zY/+ne2v/q3tr/4dbT/+rg2//TxsD/z725/+TXy//ezbv/387D/+LT
|
||||||
|
zv/Zyrf/2Me6/+LTx//h1sj/2868/97Ovf/i08L/18q5/9bMuf/Dtaf/z8O+/+zg3f/o3dn/6d3a/+jd
|
||||||
|
2f/q3tr/6N7a/+jd2f/o3dn/6d3Z/+nd2f/o3dn/6d7a/+jd2f/p3tj/6t/a/+vh3v/PxML/3dDH/+HU
|
||||||
|
xf/e0cT/4NLJ/9zMuP/ez8X/4tLL/+DRyf/Yyrn/2ci0/9jEsf/Wyrb/39fB/9PEsf/JurP/6t/c/+ne
|
||||||
|
2v/p3tr/6NzZ/+ne2v/n3dn/593Z/+nc2f/q3dr/6NrY/+fc2f/p3dr/593Y/+fc2P/n3tr/6uHd/+Xd
|
||||||
|
2P/LvrT/28vA/9bJuf/Wx7H/1cKw/9PEuP/YxLv/2Me9/9fHs//hzLr/4864/+LRuP/j0bv/38qz/8m5
|
||||||
|
rf/o3tv/6N3a/+fd2f/p3dz/6d7Z/+jd2f/m3Nn/6tzb/+jc2f/o3Nr/59za/+ba2P/r4dz/+Ozn//Tp
|
||||||
|
5f/q39v/6d/c/8W1qf/bxK7/4Mqy/97Ks//dx7P/28Wv/97HsP/jy7b/0Lyd/8Sulv+6pZL/wayX/8Ox
|
||||||
|
m//Gspv/uaia/+fd2P/s4d3/6uDc/+rf3P/p3dv/593Z/+je2v/n3dn/6t/X/+7j3v/o3tr/7uLe/9vR
|
||||||
|
zf+xqKX/wrm1//Dm4v/o397/t6OS/8Kpkf+xmoT/r5uI/7Obiv+4nYj/t6KJ/7mkjf/St4b/r5Ny/4Vr
|
||||||
|
Wv+Nc2D/jXZh/4dvWf+MeGv/4tXP/+7j3//p39v/6uDc/+fc2P/n3Nj/6N7a/+nd2v/m3dj/29PL/+re
|
||||||
|
2//06eX/wbaz/zY1M/9QTU7/8+rt/9jKv//Eomr/yqFn/2hLLv9NOSH/XEcv/1tCKv9ZPCj/XEQs/7+g
|
||||||
|
fP+3l3b/q5Fw/6OHZ/+njWn/nYNk/52Cav/Rxb//7ePg/+ne2v/q39v/6N7a/+je2v/p3tr/7OHd/9rP
|
||||||
|
zP+imZf/7OHe/+zh3f/d0c7/1c3I/+Tay//RxK7/y65//9q8hf/fwI3/vaF//66Pav+uiWD/uZ+C/7mg
|
||||||
|
hP+1mnj/vqB9/7+gev/OrYP/0bGF/8SlgP/Nr4P/wqB4/7mnn//r5OL/6d/a/+re2f/q39v/6d7a/+fc
|
||||||
|
2P/n3Nj/6NzY/+/k4P/o3dn/6+Dc/9/T0v/Ar6H/zbCA/9Kzfv/Wt4f/2r+U/9e2iP/gwY7/5cWW/92r
|
||||||
|
cP/rzKP/79m1/+TNov/DooD/wKJ7/8KkfP/Do3f/yKd//8Wkfv+sil7/po54/9/W1v/s4+H/6d3a/+nd
|
||||||
|
2f/n3Nj/6N3Z/+nc2P/n3Nj/6d/a/+Xd2P/o3Nj/7eDg/9TLxf/n3tL/4tjN/+be0v/j3dT/4NTG/+DR
|
||||||
|
vf/cwpT/1qlq/9y7kP/q3tP/7+nk/62Naf+simr/roxq/66Lav+ykG3/xJ97/7mVb/+Tc1D/v6um/+/l
|
||||||
|
4//s4d3/6NzZ/+jc2P/m29f/6N3Z/+bc2P/m3Nj/6N7a/+3i4f/c0s3/z76r/+Xc1v/s6OX/6eHY/+3l
|
||||||
|
3v/k39b/3tbN/9zBlP/UqWn/2riJ/+rZv//s497/tJRw/6uLav/DpID/x6eF/7KPbv+/mXb/t5Nu/6KC
|
||||||
|
WP+RdVv/x7u5//Do5v/o3tn/6d3Z/+rf2//o3tr/593Z/+je2v/v5eT/5d3d/9C9p//ix5r/5NfF/+zn
|
||||||
|
5v/r4tr/7+nj/+vk2//fzKb/4caZ/9aqbv/dvY7/6dKv/+bcxv+ZeVn/knJS/51/W/+ohGL/oH1Z/62M
|
||||||
|
Z/+jhF//lHdV/599Vf+afmD/w7Wv/+vk4f/t5OH/8Obk//vx7v/w5uP/6eHd/9zUzP+5oIP/2LyS/+3Y
|
||||||
|
sf/mzqz/6Ne9/+vfyP/o2L//5tW8/+fQqf/jyaH/1a53/+DIoP/k0Kn/486n/6eHZf+de1f/oYJd/6F+
|
||||||
|
W/+khF//qYhk/6KBXv+ti2P/uJRq/7qVbP+8q5//+PPy/8G3rv+3p53/l4uD/9LKxv/MxcH/oH5Y/8me
|
||||||
|
Zf/my6T/xKJw/8ysdP/BoWn/w6Nw/9azi//Qrn//1LaH/+HHof/FoW7/58+p/7+XWf+6jEz/qItr/5d5
|
||||||
|
VP+egFn/ooFd/6+NZf+3lm7/w6R7/62Naf+ff1v/wZ55/7ugh/+7q5//oIp4/5d+af8qEAD/fm9m/7em
|
||||||
|
mP+wg1P/z6Jz/97Fl/+idDL/qnw6/7WITP+meTv/qH9E/6BvMv/EmmX/17uU/7+bb//q0bX/y6Vw/8ql
|
||||||
|
af+yj2z/uJNr/76gff+3mXT/tZRs/7eVb//FpXz/qIhg/5l1Uv+lhGH/uJh2/7GOa/+skXb/ooh2/0Ep
|
||||||
|
Ff9bRDH/e2FD/62DVv/Ho3b/28uw/9vCmf/gxZj/2rqO/93Bkv/Osn//yq16/9W5kv+5o4f/yq2L/9XD
|
||||||
|
r//bybD/4s2z/7ijhf/Ktp3/2MWv/9C+pv/QvaT/uZ2E/7mZd/+2mXL/sZNu/7eXeP++n4D/upt+/7il
|
||||||
|
kP+ljnn/Qi4a/2hPO/9wXEr/Z1ZM/6+WgP/Js5z/ybOc/8q4oP+5q5D/s52F/8Crmv/OuaP/xbWg/6OO
|
||||||
|
f/+4pZf/vaiZ/7ypmP+yopb/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace BunifuLicenseGenerator
|
||||||
|
{
|
||||||
|
internal static class Program
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The main entry point for the application.
|
||||||
|
/// </summary>
|
||||||
|
[STAThread]
|
||||||
|
static void Main()
|
||||||
|
{
|
||||||
|
Application.EnableVisualStyles();
|
||||||
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
Application.Run(new MainForm());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
|
||||||
|
</packages>
|
||||||
@@ -1,18 +1,48 @@
|
|||||||
# BunifuUiCrack
|
<p align="center">
|
||||||
Bunifu UI Cracked
|
<img src="https://imgur.com/4sil75E.png" alt="Bunifu UI Logo" width="150" />
|
||||||
You can use this with the 7.2.0 version of the Bunifu UI Library.
|
</p>
|
||||||
(Or, you can use this with any version with Bunifu UI that **uses Bunifu.Licensing 6.0.4**)
|
|
||||||
|
|
||||||
This only works for .NET Framework, i will work on a .NET Core crack soon.
|
# Bunifu License Generator
|
||||||
|
**⭐Star this repo to support contributors!**
|
||||||
## How to install?
|
|
||||||
1. Go to your project's folder (On Windows: C:\Users\yourusername\source\repo\ProjectName)
|
|
||||||
2. Find the packages folder (If you cant find it go one folder down it should be in the solution's folder)
|
|
||||||
3. Find Bunifu.Licensing.5.0.0
|
|
||||||
4. Overwrite the file.
|
|
||||||
5. Done! Enjoy
|
|
||||||
|
|
||||||
|
|
||||||
# if you want to contact me
|
**Disclaimer**:
|
||||||
discord: @t0int
|
⚠️ **For educational/research purposes only**.
|
||||||
telegram: @t0int
|
⚠️ **100% safe**: No viruses/malware. Does not alter core functionality.
|
||||||
|
⚠️ **Not for production use** – support Bunifu by purchasing a license at [bunifuframework.com](https://bunifuframework.com/).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
A license generator primarily designed for Bunifu Framework v9.0.0. This tool creates licenses for different product types and is compatible with both .NET Framework and .NET Core. **May also work with other Bunifu Framework versions**.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- ✅ Full compatibility with **Bunifu Framework v9.0.0**
|
||||||
|
- ✅ Works for both **.NET Framework** and **.NET Core**
|
||||||
|
- ✅ **Tested on UIWinForm** with latest license module **v6.0.9**
|
||||||
|
- ✅ Compatible with **UIWin framework 9.0.0**
|
||||||
|
- ✅ **Potential compatibility** with other Bunifu versions
|
||||||
|
- ✅ Free and easy to use
|
||||||
|
---
|
||||||
|
|
||||||
|
## Verified Compatibility
|
||||||
|
| Component | Version | Status |
|
||||||
|
|--------------------|-------------|------------|
|
||||||
|
| Bunifu UI WinForms | 9.0.0 | ✔️ Working |
|
||||||
|
| License Module | 6.0.9 | ✔️ Working |
|
||||||
|
| .NET Framework | 4.6.1+ | ✔️ Working |
|
||||||
|
| .NET Core | 8.0 | ✔️ Working |
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
## Legal
|
||||||
|
- Unauthorized use in projects violates [Bunifu's terms](https://bunifuframework.com/terms).
|
||||||
|
- Maintainers assume **no liability** for misuse.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Need help?**
|
||||||
|
If you have problems, you can create an issue.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
|
||||||
|
</packages>
|
||||||
Reference in New Issue
Block a user