Compare commits
10 Commits
85f05db095
...
b1a264b023
Author | SHA1 | Date |
---|---|---|
|
b1a264b023 | |
|
0634dfa030 | |
|
d74388a7fe | |
|
b0644a50bd | |
|
b1cba60440 | |
|
b5f2d8ba9b | |
|
62a058535c | |
|
c557aca9b4 | |
|
7285885a3b | |
|
a195213fe2 |
4
LICENSE
4
LICENSE
|
@ -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
|
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.
|
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.>
|
Windows 95 OEM Key Generator
|
||||||
Copyright (C) <year> <name of author>
|
Copyright (C) 2023 Vichingo455
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
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
|
it under the terms of the GNU Affero General Public License as published
|
||||||
|
|
|
@ -5,6 +5,9 @@ We implemented it in this little tool which is also easy to use.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
Using this tool is easy, just run it and press the "Generate" button to enjoy a Windows 95 key.
|
Using this tool is easy, just run it and press the "Generate" button to enjoy a Windows 95 key.
|
||||||
|

|
||||||
|
|
||||||
|
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
|
||||||
Compiling this tool is not so difficult. Here's how.
|
Compiling this tool is not so difficult. Here's how.
|
||||||
|
|
|
@ -22,103 +22,32 @@ namespace Win95Keygen
|
||||||
}
|
}
|
||||||
private static string GenerateKey()
|
private static string GenerateKey()
|
||||||
{
|
{
|
||||||
//Generate day from 100 to 365
|
//Generate day from 100 to 366
|
||||||
Random rand;
|
Random rand;
|
||||||
rand = new Random();
|
rand = new Random();
|
||||||
int day = rand.Next(100,365);
|
int day = rand.Next(100, 366);
|
||||||
|
|
||||||
//Generate year
|
//Generate year
|
||||||
rand = new Random();
|
string[] yeararray = { "95", "96", "97", "98", "99", "00", "01", "02", "03" };
|
||||||
int i = rand.Next(1,9);
|
int index = rand.Next(yeararray.Length);
|
||||||
string year = "95";
|
string year = yeararray[index];
|
||||||
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
|
//Static numbers divisible by 7
|
||||||
string divisibleby7 = RandomDivisibleBy7();
|
string divisibleby7 = RandomDivisibleBy7();
|
||||||
//Random numbers
|
//Random numbers
|
||||||
rand = new Random();
|
rand = new Random();
|
||||||
int randomnumbers = rand.Next(10000, 99999);
|
int randomnumbers = rand.Next(10000, 99999);
|
||||||
//Make the windows 95 key output
|
//Make the windows 95 key output
|
||||||
|
|
||||||
|
//TODO: Use "0XXXXXX" instead of "00XXXXX"
|
||||||
return day.ToString() + year + "-OEM-" + "00" + divisibleby7 + "-" + randomnumbers.ToString();
|
return day.ToString() + year + "-OEM-" + "00" + divisibleby7 + "-" + randomnumbers.ToString();
|
||||||
}
|
}
|
||||||
public static string RandomDivisibleBy7()
|
public static string RandomDivisibleBy7()
|
||||||
{
|
{
|
||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
int i = rand.Next(1,10);
|
string[] yeararray = { "31584", "39207", "77777", "13811", "97408", "65908", "34421", "96526", "82121" };
|
||||||
string output = "31584"; //By fallback or else VS 2008 errors out
|
int index = rand.Next(yeararray.Length);
|
||||||
if (i == 1)
|
string output = yeararray[index];
|
||||||
{
|
|
||||||
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;
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,6 @@ using System.Resources;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.3.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.3.0.0")]
|
||||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||||
|
|
Loading…
Reference in New Issue