Skip to content

Instantly share code, notes, and snippets.

@wherrera10
wherrera10 / win95key.jl
Created April 1, 2023 21:33
Julia code to make a Windows 95 key, created for an installation running in VirtualBox under a registered copy of Windows 10.
""" 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]