Currently, the user has to specify the site code to activate editions that are not Professional VLK, but it's difficult to get a site code normally without external activation, which kind of defeats the purpose of this tool.
However, we can extract valid PID ranges from dpcdll.dll, which can be found in most ISOs or extracted from system32.
DPCDLL references a lot of BINKs that are not included in pidgen.dll or anywhere else, but these can be filtered out. Then, the PID ranges could be stored either in keys.json or a separate file.
A similar script could probably be made for Server 2003, but its DPCDLL has a different format that needs to be investigated.
[
{
"index": 0,
"bink": "0000002B",
"pid_range": [
119,
119
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 1,
"bink": "0000002B",
"pid_range": [
120,
169
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 2,
"bink": "0000002B",
"pid_range": [
400,
665
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 3,
"bink": "0000002B",
"pid_range": [
667,
699
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 4,
"bink": "0000002B",
"pid_range": [
700,
754
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 5,
"bink": "0000002D",
"pid_range": [
119,
119
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 6,
"bink": "0000002D",
"pid_range": [
120,
169
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 7,
"bink": "0000002D",
"pid_range": [
400,
665
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 8,
"bink": "0000002D",
"pid_range": [
667,
699
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 9,
"bink": "0000002D",
"pid_range": [
170,
269
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 10,
"bink": "0000002D",
"pid_range": [
700,
754
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 11,
"bink": "0000002D",
"pid_range": [
803,
899
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 12,
"bink": "0000000D",
"pid_range": [
100,
199
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 125
},
{
"index": 13,
"bink": "0000000D",
"pid_range": [
200,
619
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 14,
"bink": "00000028",
"pid_range": [
5,
110
],
"type": "Evaluation",
"days_to_activate": 14,
"days_evaluation": 125
},
{
"index": 15,
"bink": "00000028",
"pid_range": [
112,
119
],
"type": "Evaluation",
"days_to_activate": 120,
"days_evaluation": 60
},
{
"index": 16,
"bink": "0000002A",
"pid_range": [
5,
85
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 17,
"bink": "0000002A",
"pid_range": [
337,
359
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 18,
"bink": "0000002C",
"pid_range": [
5,
85
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 19,
"bink": "0000002C",
"pid_range": [
337,
359
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 20,
"bink": "0000002C",
"pid_range": [
755,
779
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 21,
"bink": "0000002C",
"pid_range": [
785,
789
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 22,
"bink": "0000002E",
"pid_range": [
640,
699
],
"type": "Volume",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 23,
"bink": "0000002C",
"pid_range": [
360,
369
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 24,
"bink": "0000002A",
"pid_range": [
755,
779
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 25,
"bink": "0000002C",
"pid_range": [
85,
89
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 26,
"bink": "0000002C",
"pid_range": [
95,
99
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 27,
"bink": "00000030",
"pid_range": [
900,
904
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 28,
"bink": "00000031",
"pid_range": [
119,
119
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 29,
"bink": "00000031",
"pid_range": [
120,
169
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 30,
"bink": "00000031",
"pid_range": [
400,
665
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 31,
"bink": "00000031",
"pid_range": [
667,
699
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 32,
"bink": "00000031",
"pid_range": [
700,
754
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 33,
"bink": "00000031",
"pid_range": [
905,
999
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 34,
"bink": "00000033",
"pid_range": [
119,
119
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 35,
"bink": "00000033",
"pid_range": [
120,
169
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 36,
"bink": "00000033",
"pid_range": [
400,
665
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 37,
"bink": "00000033",
"pid_range": [
667,
699
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 38,
"bink": "00000033",
"pid_range": [
170,
269
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 39,
"bink": "00000033",
"pid_range": [
700,
754
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 40,
"bink": "00000033",
"pid_range": [
803,
899
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 41,
"bink": "00000032",
"pid_range": [
291,
300
],
"type": "Tablet",
"days_to_activate": 2147483647,
"days_evaluation": 185
},
{
"index": 42,
"bink": "00000033",
"pid_range": [
301,
320
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 43,
"bink": "0000002B",
"pid_range": [
85,
85
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 44,
"bink": "0000002B",
"pid_range": [
86,
95
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 45,
"bink": "0000002B",
"pid_range": [
96,
105
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 46,
"bink": "0000002A",
"pid_range": [
106,
106
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 47,
"bink": "0000002A",
"pid_range": [
187,
187
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 48,
"bink": "0000002A",
"pid_range": [
188,
188
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 49,
"bink": "0000002B",
"pid_range": [
170,
186
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 50,
"bink": "0000002B",
"pid_range": [
189,
189
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 51,
"bink": "0000002B",
"pid_range": [
190,
190
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 52,
"bink": "0000002B",
"pid_range": [
191,
191
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 53,
"bink": "0000002C",
"pid_range": [
90,
90
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 54,
"bink": "0000002C",
"pid_range": [
111,
111
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 55,
"bink": "0000002C",
"pid_range": [
112,
112
],
"type": "Tablet",
"days_to_activate": 60,
"days_evaluation": 2147483647
},
{
"index": 56,
"bink": "0000002D",
"pid_range": [
90,
90
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 57,
"bink": "0000002D",
"pid_range": [
100,
110
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 58,
"bink": "0000002D",
"pid_range": [
113,
113
],
"type": "OEM",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 59,
"bink": "0000002D",
"pid_range": [
114,
114
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 60,
"bink": "0000002E",
"pid_range": [
700,
701
],
"type": "Volume",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 61,
"bink": "0000002E",
"pid_range": [
704,
705
],
"type": "Volume",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 62,
"bink": "0000002B",
"pid_range": [
107,
118
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 63,
"bink": "0000002B",
"pid_range": [
192,
336
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 64,
"bink": "0000002B",
"pid_range": [
755,
899
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 65,
"bink": "0000002B",
"pid_range": [
921,
979
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 66,
"bink": "0000002D",
"pid_range": [
271,
336
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 67,
"bink": "0000002D",
"pid_range": [
370,
399
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 68,
"bink": "0000002D",
"pid_range": [
780,
784
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 69,
"bink": "0000002D",
"pid_range": [
790,
799
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 70,
"bink": "0000002D",
"pid_range": [
900,
979
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 71,
"bink": "0000002C",
"pid_range": [
114,
116
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 72,
"bink": "0000002A",
"pid_range": [
362,
376
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 73,
"bink": "0000002A",
"pid_range": [
377,
377
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 74,
"bink": "0000002A",
"pid_range": [
984,
984
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 75,
"bink": "0000002C",
"pid_range": [
311,
334
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 76,
"bink": "0000002C",
"pid_range": [
336,
336
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 77,
"bink": "0000002C",
"pid_range": [
370,
384
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 78,
"bink": "0000002C",
"pid_range": [
385,
385
],
"type": "Retail",
"days_to_activate": 30,
"days_evaluation": 2147483647
},
{
"index": 79,
"bink": "0000000D",
"pid_range": [
940,
960
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 80,
"bink": "0000000D",
"pid_range": [
963,
979
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 81,
"bink": "0000000D",
"pid_range": [
985,
986
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 82,
"bink": "0000000D",
"pid_range": [
996,
996
],
"type": "Evaluation",
"days_to_activate": 2147483647,
"days_evaluation": 125
},
{
"index": 83,
"bink": "0000000D",
"pid_range": [
997,
997
],
"type": "Evaluation",
"days_to_activate": 2147483647,
"days_evaluation": 370
},
{
"index": 84,
"bink": "0000000D",
"pid_range": [
998,
998
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 85,
"bink": "0000000D",
"pid_range": [
620,
620
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 86,
"bink": "0000000D",
"pid_range": [
621,
621
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 2147483647
},
{
"index": 87,
"bink": "0000000D",
"pid_range": [
622,
622
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 125
},
{
"index": 88,
"bink": "0000000D",
"pid_range": [
623,
623
],
"type": "Embedded",
"days_to_activate": 2147483647,
"days_evaluation": 370
}
]