# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1666132938 14400 # Node ID 66dc98750bc4074b88ab1ca3cbfa5a550647c64d # Parent bf6d6304f6f792921c9f92230c0346ed4008ebc9 Update mod7.nsb committer: GitHub diff -r bf6d6304f6f7 -r 66dc98750bc4 mod7.nsb --- a/mod7.nsb Tue Oct 18 17:32:24 2022 -0400 +++ b/mod7.nsb Tue Oct 18 18:42:18 2022 -0400 @@ -1,5 +1,5 @@ {if:{argslen}|=|1|then:{ -if:{arg:0}|=|--oem|then:{choose:95|96|97|98|99|00|01|02|03}{range:100|365}-OEM-{lua: +if:{arg:0}|=|--oem|then:{choose:95|96|97|98|99|00|01|02|03}{set:day|{range:1|365}}{repeat:{len:{substring:{repeat:3|a}|{len:{get:day}}}}|0}{get:day}-OEM-{lua: function sumdigits(n) local sum = 0 while n > 0 do @@ -14,7 +14,7 @@ the = (math.random(1, 99999)*10)+math.random(1,7) end print(string.format("%07d", the)) -}-{range:10000|99999}|else: +}-{set:day|{range:1|99999}}{repeat:{len:{substring:{repeat:5|a}|{len:{get:day}}}}|0}{get:day}|else: {set:first|{range:111|999}}{ if:{get:first}|=|333|then:{set:first|332}}{ if:{get:first}|=|444|then:{set:first|443}}{ @@ -31,4 +31,24 @@ end print(string.format("%07d", the)) }} -|else:`.t mod7 <--normal> OR <--office> OR <--oem>`} \ No newline at end of file +|else:{code: +MOD7(1) + +NAME + mod7 + +SYNOPSIS + .t mod7 [ option ] + +DESCRIPTION + A generator for old Microsoft products using the + mod7 key algorithm. + +OPTIONS + --normal + Generate a normal Windows 95/NT 4 key. + --office + Generate a normal Office 97 key. + --oem + Generate an OEM Windows 95/NT 4 key. +}}