Compare commits

..

No commits in common. "b1a264b02327899ace9727e3f78069c82f4799e7" and "85f05db0954ca20b5c3be6311c18cf1755c0277e" have entirely different histories.

4 changed files with 88 additions and 20 deletions

View File

@ -629,8 +629,8 @@ 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.
Windows 95 OEM Key Generator
Copyright (C) 2023 Vichingo455
<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 Affero General Public License as published

View File

@ -5,9 +5,6 @@ We implemented it in this little tool which is also easy to use.
## Usage
Using this tool is easy, just run it and press the "Generate" button to enjoy a Windows 95 key.
![image](https://user-images.githubusercontent.com/59311016/229126177-29e59d13-553c-41fc-96b6-0f1f806e4aee.png)
If you don't want to download the keygen, you can use the online version [here](https://replit.com/@Vichingo455/Windows-95-Keygen?v=1)
## Compiling
Compiling this tool is not so difficult. Here's how.

View File

@ -22,32 +22,103 @@ namespace Win95Keygen
}
private static string GenerateKey()
{
//Generate day from 100 to 366
//Generate day from 100 to 365
Random rand;
rand = new Random();
int day = rand.Next(100, 366);
int day = rand.Next(100,365);
//Generate year
string[] yeararray = { "95", "96", "97", "98", "99", "00", "01", "02", "03" };
int index = rand.Next(yeararray.Length);
string year = yeararray[index];
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 = RandomDivisibleBy7();
//Random numbers
rand = new Random();
int randomnumbers = rand.Next(10000,99999);
//Make the windows 95 key output
//TODO: Use "0XXXXXX" instead of "00XXXXX"
return day.ToString() + year + "-OEM-" + "00" + divisibleby7 + "-" + randomnumbers.ToString();
}
public static string RandomDivisibleBy7()
{
Random rand = new Random();
string[] yeararray = { "31584", "39207", "77777", "13811", "97408", "65908", "34421", "96526", "82121" };
int index = rand.Next(yeararray.Length);
string output = yeararray[index];
int i = rand.Next(1,10);
string output = "31584"; //By fallback or else VS 2008 errors out
if (i == 1)
{
output = "31584";
}
else if (i == 2)
{
output = "57778";
}
else if (i == 3)
{
output = "67676";
}
else if (i == 4)
{
output = "73787";
}
else if (i == 5)
{
output = "88529";
}
else if (i == 6)
{
output = "31724";
}
else if (i == 7)
{
output = "39578";
}
else if (i == 8)
{
output = "39207";
}
else if (i == 9)
{
output = "93443";
}
else if (i == 10)
{
output = "69167";
}
return output;
}
}

View File

@ -33,6 +33,6 @@ using System.Resources;
// 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.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguageAttribute("en")]