commit da83e8dab5cb5b965e0a64fa8a813de8383693d2 Author: Dunestorm Date: Tue Mar 5 21:26:35 2019 +0000 Imported License Generator diff --git a/LicenceGenerator.sln b/LicenceGenerator.sln new file mode 100644 index 0000000..cafdeaa --- /dev/null +++ b/LicenceGenerator.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LicenceGenerator", "LicenceGenerator\LicenceGenerator.csproj", "{B2B7102E-B9BA-4F07-AB0E-1B6051680AFD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B2B7102E-B9BA-4F07-AB0E-1B6051680AFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B2B7102E-B9BA-4F07-AB0E-1B6051680AFD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B2B7102E-B9BA-4F07-AB0E-1B6051680AFD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B2B7102E-B9BA-4F07-AB0E-1B6051680AFD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/LicenceGenerator/App.config b/LicenceGenerator/App.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/LicenceGenerator/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LicenceGenerator/LicenceGenerator.csproj b/LicenceGenerator/LicenceGenerator.csproj new file mode 100644 index 0000000..94c8870 --- /dev/null +++ b/LicenceGenerator/LicenceGenerator.csproj @@ -0,0 +1,63 @@ + + + + + Debug + AnyCPU + {B2B7102E-B9BA-4F07-AB0E-1B6051680AFD} + Exe + Properties + LicenceGenerator + LicenceGenerator + v4.5.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + .\SKGL.dll + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LicenceGenerator/Program.cs b/LicenceGenerator/Program.cs new file mode 100644 index 0000000..f41c7f7 --- /dev/null +++ b/LicenceGenerator/Program.cs @@ -0,0 +1,60 @@ +using System; +using SKGL; +using System.Threading; + +namespace LicenceGenerator +{ + class Program + { + private static int intResponse; + private static readonly string privateKey = "TRZzjAutdtA542aeQj"; + private static readonly string accessPassword = "fullIMPACT77@@@"; + + static void Main(string[] args) + { + PasswordCheck(); + + Console.WriteLine("-- Licence file generator for MicronSync --"); + Console.WriteLine("How many licences would you like to generate?"); + string response = Console.ReadLine(); + + if (!Int32.TryParse(response, out intResponse)) + { + Console.WriteLine("Please enter a valid number!"); + Main(null); + } + + GenerateLicences(); + + Console.WriteLine("Press any key to exit..."); + Console.ReadLine(); + } + + private static void PasswordCheck() + { + Console.WriteLine("Please enter the access password:"); + string response = Console.ReadLine(); + + if (response != accessPassword) + { + Console.WriteLine("Incorrect password. Goodbye!"); + Console.ReadLine(); + Environment.Exit(0); + } + + Console.Clear(); + } + + private static void GenerateLicences() + { + Generate gen = new Generate(); + + for (int i = 0; i < intResponse; i++) + { + Thread.Sleep(100); + gen.secretPhase = privateKey; + Console.WriteLine(gen.doKey(0)); + } + } + } +} diff --git a/LicenceGenerator/Properties/AssemblyInfo.cs b/LicenceGenerator/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f67a24c --- /dev/null +++ b/LicenceGenerator/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("LicenceGenerator")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("LicenceGenerator")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b2b7102e-b9ba-4f07-ab0e-1b6051680afd")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/LicenceGenerator/SKGL.dll b/LicenceGenerator/SKGL.dll new file mode 100644 index 0000000..f6f92f7 Binary files /dev/null and b/LicenceGenerator/SKGL.dll differ diff --git a/LicenceGenerator/bin/Release/LicenceGenerator.exe b/LicenceGenerator/bin/Release/LicenceGenerator.exe new file mode 100644 index 0000000..1692a17 Binary files /dev/null and b/LicenceGenerator/bin/Release/LicenceGenerator.exe differ diff --git a/LicenceGenerator/bin/Release/LicenceGenerator.exe.config b/LicenceGenerator/bin/Release/LicenceGenerator.exe.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/LicenceGenerator/bin/Release/LicenceGenerator.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LicenceGenerator/bin/Release/LicenceGenerator.pdb b/LicenceGenerator/bin/Release/LicenceGenerator.pdb new file mode 100644 index 0000000..ae7d8c8 Binary files /dev/null and b/LicenceGenerator/bin/Release/LicenceGenerator.pdb differ diff --git a/LicenceGenerator/bin/Release/LicenceGenerator.vshost.exe b/LicenceGenerator/bin/Release/LicenceGenerator.vshost.exe new file mode 100644 index 0000000..681ab77 Binary files /dev/null and b/LicenceGenerator/bin/Release/LicenceGenerator.vshost.exe differ diff --git a/LicenceGenerator/bin/Release/LicenceGenerator.vshost.exe.config b/LicenceGenerator/bin/Release/LicenceGenerator.vshost.exe.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/LicenceGenerator/bin/Release/LicenceGenerator.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LicenceGenerator/bin/Release/SKGL.dll b/LicenceGenerator/bin/Release/SKGL.dll new file mode 100644 index 0000000..f6f92f7 Binary files /dev/null and b/LicenceGenerator/bin/Release/SKGL.dll differ