diff --git a/Win95Keygen.sln b/Win95Keygen.sln new file mode 100644 index 0000000..e2704fa --- /dev/null +++ b/Win95Keygen.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual C# Express 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Win95Keygen", "Win95Keygen\Win95Keygen.csproj", "{72B2F994-2998-46FB-90C2-5AC845EBD186}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {72B2F994-2998-46FB-90C2-5AC845EBD186}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {72B2F994-2998-46FB-90C2-5AC845EBD186}.Debug|Any CPU.Build.0 = Debug|Any CPU + {72B2F994-2998-46FB-90C2-5AC845EBD186}.Release|Any CPU.ActiveCfg = Release|Any CPU + {72B2F994-2998-46FB-90C2-5AC845EBD186}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Win95Keygen/Form1.Designer.cs b/Win95Keygen/Form1.Designer.cs new file mode 100644 index 0000000..ac4d518 --- /dev/null +++ b/Win95Keygen/Form1.Designer.cs @@ -0,0 +1,104 @@ +namespace Win95Keygen +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + this.button1 = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(203, 244); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 0; + this.button1.Text = "Generate"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(12, 246); + this.textBox1.Name = "textBox1"; + this.textBox1.ReadOnly = true; + this.textBox1.Size = new System.Drawing.Size(185, 20); + this.textBox1.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 277); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(81, 13); + this.label1.TabIndex = 2; + this.label1.Text = "By Vichingo455"; + // + // pictureBox1 + // + this.pictureBox1.Image = global::Win95Keygen.Properties.Resources.win95; + this.pictureBox1.Location = new System.Drawing.Point(12, 12); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(266, 229); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 3; + this.pictureBox1.TabStop = false; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(296, 299); + this.Controls.Add(this.label1); + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.Name = "Form1"; + this.Text = "Windows 95 Key Generator"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.PictureBox pictureBox1; + } +} + diff --git a/Win95Keygen/Form1.cs b/Win95Keygen/Form1.cs new file mode 100644 index 0000000..88be75e --- /dev/null +++ b/Win95Keygen/Form1.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Win95Keygen +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + textBox1.Text = GenerateKey(); + } + private static string GenerateKey() + { + //Generate day from 100 to 365 + Random rand; + rand = new Random(); + int day = rand.Next(100,365); + //Generate year + rand = new Random(); + int i = rand.Next(1,9); + string year = "95"; + if (i == 1) + { + year = "95"; + } + else if (i == 2) + { + year = "96"; + } + else if (i == 3) + { + year = "97"; + } + else if (i == 4) + { + year = "98"; + } + else if (i == 5) + { + year = "99"; + } + else if (i == 6) + { + year = "00"; + } + else if (i == 7) + { + year = "01"; + } + else if (i == 8) + { + year = "02"; + } + else if (i == 9) + { + year = "03"; + } + //Static numbers divisible by 7 + string divisibleby7 = "00007"; + //Random numbers + rand = new Random(); + int randomnumbers = rand.Next(10000,99999); + //Make the windows 95 key output + return day.ToString() + year + "-OEM-" + "00" + divisibleby7 + "-" + randomnumbers.ToString(); + } + } +} diff --git a/Win95Keygen/Form1.resx b/Win95Keygen/Form1.resx new file mode 100644 index 0000000..702887b --- /dev/null +++ b/Win95Keygen/Form1.resx @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAIAICAQAAEABADoAgAAJgAAABAQEAABAAQAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAMDAwACAgIAAAAD/AAD/ + AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHd3cAAAAAAAAAAAAAAA + AAe3t7cAAAAAAAAAAAAAAAN7e3t7cAAHAHAHAAAAAAAD93AHt7d3e3e3e3AAAAAAA/s/8Ht7u7u7u7tw + AAAAAAP7MAC7v///////AAAAAAAD+wh3u/MzMzMzMwAAAAAAAD8Iu78wAAAAAAAAAAAAAAADCHvzAAAA + AAAAAAAAAAAAADCIgAd3cAAAAAAAAAAAAAAAAAeH9/cAAAAAAAAAAAAAAId8+HB/cAAAAAAAAAAAAACH + n8cMB/cAAAAAAAAAAAAAj/lwzAB/cAAAAAAAAAAAAI/3BQyDB/cAAAAAAAAAAACP8BkQu7B3AAAAAAAA + AAAAj/iRggsPcAAAAAAAAAAAAAj3AHpw9wAAAAAAAAAAAAAAj3AiD3AAAAAAAAAAAAAAAAj3gPcAAAAA + AAAAAAAAAAAAj/9wAAAAAAAAAAAAAAAAAAj3AAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////// + //////////////8H///+A////AHtv/gAAB/4AAAP+AAAD/gAAB/4AAA//AH///4AH///AA///4AH///A + A///wAH//8AA///AAH//wAB//8AA///gAf//8AP///gH///8D////h////8///////////////////// + //8oAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA + AACAAIAAgIAAAMDAwACAgIAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAHd3AAAA + AAA3u7twBwBwADszC7d7d7cAOzALu7u7sAA/A78zMzMwAAMH8wAAAAAAADAHd3AAAAAACHfP9wAAAAAI + +XAPcAAAAAj3DMD3AAAACPcZOwcAAAAAjwogcAAAAAAI+AcAAAAAAACPcAAAAAAAAAgAAAAAw/8AAIG3 + AAAAAwAAAAEAAAADAAAABwAAgH8AAMA/AADgHwAA4A8AAOAHAADgBwAA8A8AAPgfAAD8PwAA/n8AAA== + + + \ No newline at end of file diff --git a/Win95Keygen/Program.cs b/Win95Keygen/Program.cs new file mode 100644 index 0000000..69c28be --- /dev/null +++ b/Win95Keygen/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Win95Keygen +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Win95Keygen/Properties/AssemblyInfo.cs b/Win95Keygen/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c10eb0c --- /dev/null +++ b/Win95Keygen/Properties/AssemblyInfo.cs @@ -0,0 +1,38 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Resources; + +// 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("Windows 95 OEM Key Generator")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Vichingo455")] +[assembly: AssemblyProduct("Windows 95 KeyGen")] +[assembly: AssemblyCopyright("Copyright © 2023 Vichingo455. All rights reserved.")] +[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(true)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d410a9d8-e989-4b0a-a6e1-8abe12609131")] + +// 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")] +[assembly: NeutralResourcesLanguageAttribute("en")] diff --git a/Win95Keygen/Properties/Resources.Designer.cs b/Win95Keygen/Properties/Resources.Designer.cs new file mode 100644 index 0000000..a87ba99 --- /dev/null +++ b/Win95Keygen/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.8964 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Win95Keygen.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Win95Keygen.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + internal static System.Drawing.Bitmap win95 { + get { + object obj = ResourceManager.GetObject("win95", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/Win95Keygen/Properties/Resources.resx b/Win95Keygen/Properties/Resources.resx new file mode 100644 index 0000000..7352e87 --- /dev/null +++ b/Win95Keygen/Properties/Resources.resx @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\win95.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Win95Keygen/Properties/Settings.Designer.cs b/Win95Keygen/Properties/Settings.Designer.cs new file mode 100644 index 0000000..98b5f36 --- /dev/null +++ b/Win95Keygen/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.8964 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Win95Keygen.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Win95Keygen/Properties/Settings.settings b/Win95Keygen/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/Win95Keygen/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Win95Keygen/Resources/win95.png b/Win95Keygen/Resources/win95.png new file mode 100644 index 0000000..fcd11d4 Binary files /dev/null and b/Win95Keygen/Resources/win95.png differ diff --git a/Win95Keygen/Win95Keygen.csproj b/Win95Keygen/Win95Keygen.csproj new file mode 100644 index 0000000..0851dc4 --- /dev/null +++ b/Win95Keygen/Win95Keygen.csproj @@ -0,0 +1,98 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {72B2F994-2998-46FB-90C2-5AC845EBD186} + WinExe + Properties + Win95Keygen + Win95Keygen + v3.5 + 512 + win95key.ico + false + + + false + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 0 + + + none + true + bin\Release\ + TRACE + prompt + 0 + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + + + \ No newline at end of file diff --git a/Win95Keygen/Win95Keygen.csproj.user b/Win95Keygen/Win95Keygen.csproj.user new file mode 100644 index 0000000..7ff3943 --- /dev/null +++ b/Win95Keygen/Win95Keygen.csproj.user @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Win95Keygen/win95key.ico b/Win95Keygen/win95key.ico new file mode 100644 index 0000000..2f97abd Binary files /dev/null and b/Win95Keygen/win95key.ico differ