From 644d7be16ca995de5cdc28cf1998bae0c146f772 Mon Sep 17 00:00:00 2001 From: simonmicro Date: Tue, 28 May 2024 20:19:17 +0200 Subject: [PATCH 01/20] Revert "Removed all references to Docker Hub after their removal of "Free Team Organizations" -> https://web.docker.com/rs/790-SSB-375/images/privatereposfaq.pdf" This reverts commit 81e9973a40461113887c484173dab5ef6266047b, because they changed their minds. For now... --- .github/workflows/bake_to_latest.yml | 9 +++++++-- .github/workflows/bake_to_next.yml | 9 +++++++-- README.md | 1 + docs/Getting Started.md | 3 +++ 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bake_to_latest.yml b/.github/workflows/bake_to_latest.yml index 0d5c8c6..c5c0cba 100644 --- a/.github/workflows/bake_to_latest.yml +++ b/.github/workflows/bake_to_latest.yml @@ -21,6 +21,11 @@ jobs: platforms: all - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1.6.0 + - name: Login to DockerHub + uses: docker/login-action@v1.10.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GitHub Container Registry uses: docker/login-action@v1.10.0 with: @@ -34,7 +39,7 @@ jobs: file: ./docker/docker-py3-kms/Dockerfile platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6 push: true - tags: ghcr.io/py-kms-organization/py-kms:python3 + tags: pykmsorg/py-kms:python3,ghcr.io/py-kms-organization/py-kms:python3 build-args: | BUILD_COMMIT=${{ github.sha }} BUILD_BRANCH=${{ github.ref_name }} @@ -45,7 +50,7 @@ jobs: file: ./docker/docker-py3-kms-minimal/Dockerfile platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6 push: true - tags: ghcr.io/py-kms-organization/py-kms:latest,ghcr.io/py-kms-organization/py-kms:minimal + tags: pykmsorg/py-kms:latest,ghcr.io/py-kms-organization/py-kms:latest,pykmsorg/py-kms:minimal,ghcr.io/py-kms-organization/py-kms:minimal build-args: | BUILD_COMMIT=${{ github.sha }} BUILD_BRANCH=${{ github.ref_name }} diff --git a/.github/workflows/bake_to_next.yml b/.github/workflows/bake_to_next.yml index 5fc1b6c..f605731 100644 --- a/.github/workflows/bake_to_next.yml +++ b/.github/workflows/bake_to_next.yml @@ -21,6 +21,11 @@ jobs: platforms: all - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1.6.0 + - name: Login to DockerHub + uses: docker/login-action@v1.10.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GitHub Container Registry uses: docker/login-action@v1.10.0 with: @@ -34,7 +39,7 @@ jobs: file: ./docker/docker-py3-kms/Dockerfile platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6 push: true - tags: ghcr.io/py-kms-organization/py-kms:python3-next + tags: pykmsorg/py-kms:python3-next,ghcr.io/py-kms-organization/py-kms:python3-next build-args: | BUILD_COMMIT=${{ github.sha }} BUILD_BRANCH=${{ github.ref_name }} @@ -45,7 +50,7 @@ jobs: file: ./docker/docker-py3-kms-minimal/Dockerfile platforms: linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6 push: true - tags: ghcr.io/py-kms-organization/py-kms:latest-next,ghcr.io/py-kms-organization/py-kms:minimal-next + tags: pykmsorg/py-kms:latest-next,ghcr.io/py-kms-organization/py-kms:latest-next,pykmsorg/py-kms:minimal-next,ghcr.io/py-kms-organization/py-kms:minimal-next build-args: | BUILD_COMMIT=${{ github.sha }} BUILD_BRANCH=${{ github.ref_name }} diff --git a/README.md b/README.md index 0ba649e..8eb8138 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ![repo-size](https://img.shields.io/github/repo-size/Py-KMS-Organization/py-kms) ![open-issues](https://img.shields.io/github/issues/Py-KMS-Organization/py-kms) ![last-commit](https://img.shields.io/github/last-commit/Py-KMS-Organization/py-kms/master) +![docker-pulls](https://img.shields.io/docker/pulls/pykmsorg/py-kms) ![read-the-docs](https://img.shields.io/readthedocs/py-kms) *** diff --git a/docs/Getting Started.md b/docs/Getting Started.md index cb1e43e..54d2b08 100644 --- a/docs/Getting Started.md +++ b/docs/Getting Started.md @@ -5,6 +5,9 @@ What follows are some guides how to start the `pykms_Server.py` script, which pr You can simply manage a daemon that runs as a background process. This can be achieved by using any of the notes below or by writing your own solution. ### Docker +![docker-pulls](https://img.shields.io/docker/pulls/pykmsorg/py-kms) +![docker-size](https://img.shields.io/docker/image-size/pykmsorg/py-kms) + If you wish to get _py-kms_ just up and running without installing any dependencies or writing own scripts: Just use Docker ! Docker also solves problems regarding the explicit IPv4 and IPv6 usage (it just supports both). The following command will download, "install" and start _py-kms_ and also keep it alive after any service disruption. From 4f0b10c704152864cded77fb23f4e2b9bf60ce68 Mon Sep 17 00:00:00 2001 From: simonmicro Date: Tue, 28 May 2024 20:41:04 +0200 Subject: [PATCH 02/20] Formatting Signed-off-by: simonmicro --- py-kms/KmsDataBase.xml | 80 +++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index 511afba..c03cd76 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -73,30 +73,30 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -454,7 +454,7 @@ - + @@ -591,7 +591,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -871,7 +871,7 @@ - + @@ -997,21 +997,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + From 0f58e9bb6fa5bed221dc3224ceba1e7832d02a90 Mon Sep 17 00:00:00 2001 From: simonmicro Date: Tue, 28 May 2024 22:00:11 +0200 Subject: [PATCH 03/20] Added KmsDataBase.xml from @nliaudat He mentioned the new version being available at https://raw.githubusercontent.com/TheFlightSims/windowsserver-mgmttools/2dde6021fb3d0c0d5c76ef2b17315535c67dc62d/vlmcsd-beta/license-manager/KmsDataBase.xml Signed-off-by: simonmicro --- py-kms/KmsDataBase.xml | 545 ++++++++++++++++++++++++++++------------- 1 file changed, 378 insertions(+), 167 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index c03cd76..ccedad7 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -1,10 +1,15 @@ - - + + - - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + - + @@ -121,14 +223,14 @@ - + - + @@ -150,9 +252,10 @@ + - + @@ -171,7 +274,7 @@ - + @@ -193,7 +296,7 @@ - + @@ -204,7 +307,7 @@ - + @@ -213,7 +316,7 @@ - + @@ -223,7 +326,7 @@ - + @@ -233,9 +336,10 @@ + - + @@ -247,9 +351,10 @@ + - + @@ -260,9 +365,10 @@ + - + @@ -272,7 +378,7 @@ - + @@ -293,21 +399,24 @@ + + + - + @@ -324,7 +433,7 @@ - + @@ -344,14 +453,14 @@ - + - + @@ -360,7 +469,7 @@ - + @@ -375,7 +484,7 @@ - + @@ -392,20 +501,20 @@ - + - + - + @@ -418,7 +527,7 @@ - + @@ -432,15 +541,17 @@ - + + + @@ -448,18 +559,20 @@ + + - + @@ -470,7 +583,7 @@ - + @@ -479,43 +592,45 @@ - + - + - + + - + - + - + + @@ -523,41 +638,45 @@ + + - + - + - + - + + - + + @@ -566,82 +685,99 @@ - + - + + - + + + + - + + + + + - + + - + + - + + - + - + - + + - - - + + + + + - + + - - - - - - - - - - - + + + + + + + + + + + + + @@ -654,7 +790,7 @@ - + @@ -666,34 +802,39 @@ - + + - - - - + + + + + + - + - - + + + + - + - + @@ -702,7 +843,7 @@ - + @@ -716,12 +857,14 @@ - - - - - - + + + + + + + + @@ -741,79 +884,85 @@ - + - + - + - + - + - + - + - + - + - + - + - + + + - + + + + - + - + + @@ -823,21 +972,25 @@ + + + + @@ -845,10 +998,12 @@ + + @@ -856,17 +1011,20 @@ + + + @@ -874,6 +1032,7 @@ + @@ -883,12 +1042,13 @@ - + + - + - + @@ -896,103 +1056,112 @@ - + - + + + - + + - + - - + - + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + - + - - + + - + - - + + - + - - - + + + - + - + - + @@ -1014,6 +1183,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From a639486121c07cab78c8d2d8f4224074ab8eecf5 Mon Sep 17 00:00:00 2001 From: simonmicro Date: Tue, 28 May 2024 22:51:12 +0200 Subject: [PATCH 04/20] Added groups to product page Signed-off-by: simonmicro --- py-kms/pykms_WebUI.py | 63 +++++++++++++++++----------------- py-kms/templates/products.html | 36 +++++++++++++------ 2 files changed, 57 insertions(+), 42 deletions(-) diff --git a/py-kms/pykms_WebUI.py b/py-kms/pykms_WebUI.py index 43285a5..06b7d7e 100644 --- a/py-kms/pykms_WebUI.py +++ b/py-kms/pykms_WebUI.py @@ -15,33 +15,34 @@ def _get_serve_count(): return _serve_count _kms_items = None -_kms_items_ignored = None +_kms_items_noglvk = None def _get_kms_items_cache(): - global _kms_items, _kms_items_ignored + global _kms_items, _kms_items_noglvk if _kms_items is None: - _kms_items = {} - _kms_items_ignored = 0 - queue = [kmsDB2Dict()] - while len(queue): - item = queue.pop(0) - if isinstance(item, list): - for i in item: - queue.append(i) - elif isinstance(item, dict): - if 'KmsItems' in item: - queue.append(item['KmsItems']) - elif 'SkuItems' in item: - queue.append(item['SkuItems']) - elif 'Gvlk' in item: - if len(item['Gvlk']): - _kms_items[item['DisplayName']] = item['Gvlk'] - else: - _kms_items_ignored += 1 - #else: - # print(item) - else: - raise NotImplementedError(f'Unknown type: {type(item)}') - return _kms_items, _kms_items_ignored + _kms_items = {} # {group: str -> {product: str -> gvlk: str}} + _kms_items_noglvk = 0 + for section in kmsDB2Dict(): + for element in section: + if "KmsItems" in element: + for product in element["KmsItems"]: + group_name = product["DisplayName"] + items = {} + for item in product["SkuItems"]: + items[item["DisplayName"]] = item["Gvlk"] + if not item["Gvlk"]: + _kms_items_noglvk += 1 + if len(items) == 0: + continue + if group_name not in _kms_items: + _kms_items[group_name] = {} + _kms_items[group_name].update(items) + elif "DisplayName" in element and "BuildNumber" in element and "PlatformId" in element: + pass # these are WinBuilds + elif "DisplayName" in element and "Activate" in element: + pass # these are CsvlkItems + else: + raise NotImplementedError(f'Unknown element: {element}') + return _kms_items, _kms_items_noglvk app = Flask('pykms_webui') app.jinja_env.globals['start_time'] = datetime.datetime.now() @@ -90,7 +91,7 @@ def root(): count_clients=countClients, count_clients_windows=countClientsWindows, count_clients_office=countClientsOffice, - count_projects=len(_get_kms_items_cache()[0]) + count_projects=sum([len(entries) for entries in _get_kms_items_cache()[0].values()]) ), 200 if error is None else 500 @app.route('/readyz') @@ -125,15 +126,15 @@ def license(): @app.route('/products') def products(): _increase_serve_count() - items, ignored = _get_kms_items_cache() - countProducts = len(items) - countProductsWindows = len([i for i in items if 'windows' in i.lower()]) - countProductsOffice = len([i for i in items if 'office' in i.lower()]) + items, noglvk = _get_kms_items_cache() + countProducts = sum([len(entries) for entries in items.values()]) + countProductsWindows = sum([len(entries) for (name, entries) in items.items() if 'windows' in name.lower()]) + countProductsOffice = sum([len(entries) for (name, entries) in items.items() if 'office' in name.lower()]) return render_template( 'products.html', path='/products/', products=items, - filtered=ignored, + filtered=noglvk, count_products=countProducts, count_products_windows=countProductsWindows, count_products_office=countProductsOffice diff --git a/py-kms/templates/products.html b/py-kms/templates/products.html index 9665304..d106ed1 100644 --- a/py-kms/templates/products.html +++ b/py-kms/templates/products.html @@ -32,22 +32,36 @@
+ + +{% for group_name, group_products in products | dictsort %} +

{{ group_name }}

- - + + - {% for name, gvlk in products | dictsort %} - {% if gvlk %} - - - - - {% endif %} - {% endfor %} + {% for name, gvlk in group_products | dictsort %} + + + + + {% endfor %}
NameGVLKNameGVLK
{{ name }}
{{ gvlk }}
{{ name }} + {% if gvlk %} +
{{ gvlk }}
{% endif %} +
-{% endblock %} \ No newline at end of file +{% endfor %} +{% endblock %} From 2ef58649f05ccb56d3ddff66523ec1bd865bcb9f Mon Sep 17 00:00:00 2001 From: simonmicro Date: Tue, 28 May 2024 23:28:55 +0200 Subject: [PATCH 05/20] Use ReleaseDate instead of MinDate Made InvalidWinBuild/NCountPolicy optional Signed-off-by: simonmicro --- py-kms/pykms_Client.py | 2 +- py-kms/pykms_PidGenerator.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/py-kms/pykms_Client.py b/py-kms/pykms_Client.py index d2fe1b5..142b316 100644 --- a/py-kms/pykms_Client.py +++ b/py-kms/pykms_Client.py @@ -184,7 +184,7 @@ def client_update(): if sName == name + 'Enterprise' or \ sName == name[:6] + 'ProfessionalPlus' + name[6:]: clt_config['KMSClientSkuID'] = skuitem['Id'] - clt_config['RequiredClientCount'] = int(kmsitem['NCountPolicy']) + clt_config['RequiredClientCount'] = int(kmsitem.get('NCountPolicy', 25)) # if not given default to 25 clt_config['KMSProtocolMajorVersion'] = int(float(kmsitem['DefaultKmsProtocol'])) clt_config['KMSProtocolMinorVersion'] = 0 clt_config['KMSClientLicenseStatus'] = 2 diff --git a/py-kms/pykms_PidGenerator.py b/py-kms/pykms_PidGenerator.py index bf84187..134bfb4 100644 --- a/py-kms/pykms_PidGenerator.py +++ b/py-kms/pykms_PidGenerator.py @@ -20,7 +20,7 @@ def epidGenerator(kmsId, version, lcid): for csvlkitem in csvlkitems: try: if kmsId in [ uuid.UUID(kmsitem) for kmsitem in csvlkitem['Activate'] ]: - pkeys.append( (csvlkitem['GroupId'], csvlkitem['MinKeyId'], csvlkitem['MaxKeyId'], csvlkitem['InvalidWinBuild']) ) + pkeys.append( (csvlkitem['GroupId'], csvlkitem['MinKeyId'], csvlkitem['MaxKeyId'], csvlkitem.get('InvalidWinBuild', '[]')) ) else: # fallback to Windows Server 2019 parameters. pkeys.append( ('206', '551000000', '570999999', '[0,1,2]') ) @@ -40,10 +40,11 @@ def epidGenerator(kmsId, version, lcid): hosts.append(winbuild) except KeyError: # fallback to Windows Server 2019 parameters. - hosts.append( {'BuildNumber':'17763', 'PlatformId':'3612', 'MinDate':'02/10/2018'} ) + hosts.append( {'BuildNumber':'17763', 'PlatformId':'3612', 'ReleaseDate':'2018-10-02T00:00:00Z'} ) host = random.choice(hosts) - BuildNumber, PlatformId, MinDate = host['BuildNumber'], host['PlatformId'], host['MinDate'] + + BuildNumber, PlatformId, ReleaseDate = host['BuildNumber'], host['PlatformId'], host['ReleaseDate'].rstrip("Z") # Generate Part 3 and Part 4: Product Key ID productKeyID = random.randint(MinKeyId, MaxKeyId) @@ -55,7 +56,7 @@ def epidGenerator(kmsId, version, lcid): languageCode = lcid # (C# CultureInfo.InstalledUICulture.LCID) # Generate Part 8: KMS Host Activation Date - d = datetime.datetime.strptime(MinDate, "%d/%m/%Y") + d = datetime.datetime.fromisoformat(ReleaseDate) minTime = datetime.date(d.year, d.month, d.day) # Generate Year and Day Number From 71f31d4fd0ed3495ea165197286643b7cd238032 Mon Sep 17 00:00:00 2001 From: zeroNounours Date: Thu, 27 Jun 2024 09:47:14 +0200 Subject: [PATCH 06/20] Fix Epid generation on linux Maybe related to #3 --- py-kms/pykms_PidGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-kms/pykms_PidGenerator.py b/py-kms/pykms_PidGenerator.py index bf84187..1669341 100644 --- a/py-kms/pykms_PidGenerator.py +++ b/py-kms/pykms_PidGenerator.py @@ -59,7 +59,7 @@ def epidGenerator(kmsId, version, lcid): minTime = datetime.date(d.year, d.month, d.day) # Generate Year and Day Number - randomDate = datetime.date.fromtimestamp(random.randint(time.mktime(minTime.timetuple()), time.mktime(datetime.datetime.now().timetuple()))) + randomDate = datetime.date.fromtimestamp(random.randint(int(time.mktime(minTime.timetuple())), int(time.mktime(datetime.datetime.now().timetuple())))) firstOfYear = datetime.date(randomDate.year, 1, 1) randomDayNumber = int((time.mktime(randomDate.timetuple()) - time.mktime(firstOfYear.timetuple())) / 86400 + 0.5) From 9c1a61df19f7932f9728ad25be5f556093e6106b Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Wed, 12 Feb 2025 16:27:03 +0100 Subject: [PATCH 07/20] Update KmsDataBase.xml --- py-kms/KmsDataBase.xml | 1605 ++++++++++++++++++---------------------- 1 file changed, 707 insertions(+), 898 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index 511afba..a88b936 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -1,1001 +1,795 @@ - + - - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + - - - + + + + - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - + + + - - - - - - - - + + + - - - - - - - - - + + + - - - - - - - - - - - + + + - - - - - - - - - - - - - + + + - - - - - - - - - - - - + + + - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - + + + - - - - - + + + - - - + + + - - - + + + - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - + + + - - - - - - + + + - - - - - - - - + + + - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - + + + + + + - - - - - + + + + + + + - - - - - - + + + + + + + - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - + + + + + - - - - + + + + + + - - - + + + + - - - - - - + + + + - - - - - + + + + - - - - + + + + - - - - - - - - - - + + + + - - - - - - - - + + + - - - - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - + + + - - - - - + + + - - - - + + + - - - - - - + + + - - - - - + + + - - - - + + + - - - + - - - + - + + - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - + + + + - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - + + + + + - - - - - - - - - - + + + + - - - - - - - - - - + + + + - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - + + + + + - - - - - - + + + + - - - - - + + + + + + + + + + + - - - - - + + + + - - - - + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + - - - + + + + + + + + + + - - - - - - + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + - - - - + + + + + + - - - - + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -1012,8 +806,23 @@ - - + + + + + + + + + + + + + + + + + From e1f2409e8826a52288e77c2a65392bbebe3236df Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Wed, 12 Feb 2025 16:27:52 +0100 Subject: [PATCH 08/20] Update KmsDataBase.xml --- py-kms/KmsDataBase.xml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index a88b936..496a8f0 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -3,12 +3,7 @@ + + - - + + + + From 525f8e98f899e1efe185489be0eb7aca4b590290 Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Wed, 12 Feb 2025 17:55:15 +0100 Subject: [PATCH 10/20] Update based on 2024 Hotbird64 KmsDataBase.xml --- py-kms/KmsDataBase.xml | 964 ++++++++++++++++++++++++----------------- 1 file changed, 577 insertions(+), 387 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index 5ea991b..3a751b3 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -1,16 +1,17 @@ - + + - + + @@ -82,44 +125,267 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 --> - - + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -175,77 +441,117 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - + + + + + + + - - - + + + + + + + + + + + - - - - + + + + + + - - - - + + + + + + + + + - - + + + + + - - - + + + + + + + + + - + + + + + - + - + + + - + + + + + + + - + @@ -261,7 +567,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + @@ -294,132 +600,115 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - - - - + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + - - + - - - - + + + - - + - - - - + + + - - - + + + + - @@ -433,14 +722,14 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - + - + @@ -450,144 +739,128 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - + + + + + + - - - + - - - - - - - - - - + - - - + + + - + + + + + + - - - - - - - - + - - + + + - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - + - + + + + + - - - - - + + - + + + + + - + - - + + + - - - - - - + + + + + - - - - - - - - - + + + + + + - - - + + - - + + - + + @@ -595,206 +868,119 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + - + + + + + - - + - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + - + - - + + - + - - + + - + - - - + + + - - + + - + - + + + + - + @@ -808,20 +994,24 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 + + + - - - + - - + + + - - + + + + From 628fbc448bd2ee9a965fd2bf923e4d098dc549fe Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Wed, 12 Feb 2025 18:28:27 +0100 Subject: [PATCH 11/20] Fix small screw ups --- py-kms/KmsDataBase.xml | 183 ++++++++++++++++++++++++++++------------- 1 file changed, 126 insertions(+), 57 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index 3a751b3..d0c9d8a 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -6,7 +6,7 @@ https://forums.mydigitallife.net/threads/miscellaneous-kms-related-developments. https://github.com/Py-KMS-Organization/py-kms/pulls?q=is%3Apr+is%3Aclosed https://github.com/Py-KMS-Organization/py-kms/issues -Slightly modified for py-kms +Rewrite for later use, needs to be done fully. Documentation about options: - @@ -151,7 +148,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + @@ -177,7 +174,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + @@ -206,7 +203,6 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - @@ -253,7 +249,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + @@ -389,50 +385,143 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + @@ -518,6 +607,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 + @@ -582,15 +672,11 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - - - + @@ -603,11 +689,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - + @@ -627,7 +709,6 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - @@ -642,9 +723,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + @@ -656,9 +735,6 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - @@ -744,11 +820,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - + @@ -826,7 +898,6 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595
- @@ -846,7 +917,6 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - @@ -859,7 +929,6 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - @@ -869,31 +938,31 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + From 2a3e3fa1fd24756e272ba6c56ab1f316b25f1b58 Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Wed, 12 Feb 2025 18:33:28 +0100 Subject: [PATCH 12/20] Correct PkeyConfig for Server 2022 and 2025 --- py-kms/KmsDataBase.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index d0c9d8a..c6a1443 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -204,7 +204,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595
- + From 6119d545df151b7329c8a16612d0f8be3e64d1eb Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Wed, 12 Feb 2025 18:35:28 +0100 Subject: [PATCH 13/20] Remove one part that I mistakenly re-added again --- py-kms/KmsDataBase.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index c6a1443..fd53095 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -2,11 +2,12 @@ - + - - - + + - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - @@ -553,118 +155,77 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - - - - - + + + - - - - - - - - - + - + - - - - - - + + + + - - - - - - - - + + + - - - - - - - - - - - - - - - - + - - - - - + - + + + + + + + - + - - - + - - - - - - - - + @@ -680,7 +241,7 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + @@ -695,11 +256,15 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 + + + + - + @@ -709,90 +274,70 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - + - + - - - - - - + + + + + + - + + - - - + + + + @@ -821,14 +366,14 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - + - + @@ -838,37 +383,40 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - + - + + + - + + + + + + + + + + - + + + - - - - - - - - - - - + - + @@ -888,15 +436,10 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - - - + - - + @@ -910,28 +453,29 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - + + - - + - + + + + + - - - - + @@ -940,19 +484,19 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - - + + - + @@ -961,12 +505,12 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - - - + + + - + @@ -974,105 +518,107 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + - + + + - - + - + + - + - + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + - + - - + + - + - - + + - + - - - + + + - - + + - + - + - - - - + @@ -1091,17 +637,17 @@ https://forums.mydigitallife.net/threads/pkeyconfig-info-reader-gui-v8-0-0.88595 - + + + - - - + + - - - + + From dfbf68d221ee36a75580a2c0c116b24c58af4c08 Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Wed, 12 Feb 2025 20:10:40 +0100 Subject: [PATCH 16/20] Move Office LTSC 2024 Preview to correct KmsItem --- py-kms/KmsDataBase.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index 01aefab..e166648 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -632,9 +632,6 @@ Ported to py-kms - - - @@ -650,6 +647,9 @@ Ported to py-kms + + + From ef73542ffa49a674ff5af509d360c0bd8a13a7ea Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Sat, 15 Feb 2025 00:25:05 +0100 Subject: [PATCH 17/20] Add Office 2021+2024 preview, re-add Windows Server Next etc. --- py-kms/KmsDataBase.xml | 293 ++++++++++++++++++++++++++++------------- 1 file changed, 199 insertions(+), 94 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index e166648..292587f 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -1,10 +1,83 @@ + + + @@ -46,7 +119,8 @@ Ported to py-kms - + + @@ -57,6 +131,7 @@ Ported to py-kms + @@ -69,6 +144,7 @@ Ported to py-kms + @@ -81,19 +157,21 @@ Ported to py-kms + - - - - + + + + + @@ -102,6 +180,7 @@ Ported to py-kms + @@ -110,6 +189,7 @@ Ported to py-kms + @@ -118,6 +198,7 @@ Ported to py-kms + @@ -126,30 +207,38 @@ Ported to py-kms - + + - + - + - + + - + - + + + + + + + @@ -203,6 +292,7 @@ Ported to py-kms + @@ -223,11 +313,13 @@ Ported to py-kms + + @@ -240,6 +332,7 @@ Ported to py-kms + @@ -300,7 +393,7 @@ Ported to py-kms - + @@ -308,36 +401,34 @@ Ported to py-kms - + - + - - + - - + + + - - + - - - - + + + @@ -368,12 +459,12 @@ Ported to py-kms - + - + @@ -386,7 +477,18 @@ Ported to py-kms - + + + + + + + + + + + + @@ -395,15 +497,14 @@ Ported to py-kms - - - - - - - - - + + + + + + + + @@ -434,6 +535,14 @@ Ported to py-kms + + + + + + + + @@ -455,24 +564,23 @@ Ported to py-kms - - + + + - - - - - + + + @@ -491,9 +599,9 @@ Ported to py-kms - - + + @@ -510,7 +618,7 @@ Ported to py-kms - + @@ -518,17 +626,15 @@ Ported to py-kms - + - + - - @@ -540,82 +646,78 @@ Ported to py-kms - - + - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - - - - + - + - + + + + @@ -632,19 +734,22 @@ Ported to py-kms + + + - - - - + + + - - + + + From 86634eee250d63af4741cbdc3750543723555d22 Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Sat, 15 Feb 2025 00:26:00 +0100 Subject: [PATCH 18/20] Remove missing entry for Office 2016 Pre-Release VL --- py-kms/KmsDataBase.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index 292587f..ec54de9 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -349,10 +349,6 @@ You can read them using pkeyconfig-gui off MDL forums or Product Key Config. Rea - - - - From b6a99091a8197844bf8469a7b24e15ae825b8264 Mon Sep 17 00:00:00 2001 From: "Mr. Rubber Ducky" <79613254+MrRubberDucky@users.noreply.github.com> Date: Sat, 15 Feb 2025 00:26:57 +0100 Subject: [PATCH 19/20] Remove one leftover comment --- py-kms/KmsDataBase.xml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index ec54de9..0bc62c6 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -363,29 +363,6 @@ You can read them using pkeyconfig-gui off MDL forums or Product Key Config. Rea
- - From a7db498206b61a451ae028c7362bf919f8dfb8b5 Mon Sep 17 00:00:00 2001 From: simonmicro Date: Wed, 29 Oct 2025 18:25:33 +0100 Subject: [PATCH 20/20] Corrected ISO timestamp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- py-kms/KmsDataBase.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-kms/KmsDataBase.xml b/py-kms/KmsDataBase.xml index dbeb7f7..fea1eee 100644 --- a/py-kms/KmsDataBase.xml +++ b/py-kms/KmsDataBase.xml @@ -124,7 +124,7 @@ You can read them using pkeyconfig-gui off MDL forums or Product Key Config. Rea - +