This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" from C code at https://github.com/stonesword0/win95-key-generator """ | |
usage() = println("\nUsage:\n\n-h, --help, -help - Displays the help\n-o, -oem - Generates a Windows 95 OEM Key\n-cd, -cdkey - Generates a Windows 95 CD Key") | |
function win95cdkey() | |
chunk1 = rand(100:998) | |
if chunk1 in [333, 444, 555, 666, 777, 888] | |
chunk1 = 635 | |
end | |
chunk2 = [0, 0, 0, 0, 0, 0, 1] |