From d1f202b78594706b9d7db5ee4dc97bb653aa380e Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Thu, 30 May 2024 17:20:45 +0800 Subject: [PATCH 01/46] Fix typo --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index ddb5a7f..255f4b7 100644 --- a/app.py +++ b/app.py @@ -82,7 +82,7 @@ def DecryptBytes(key : int, bs : bytes): class LicenseType: Professional = 1 Educational = 3 - Persional = 4 + Personal = 4 def GenerateLicense(Type : LicenseType, Count : int, UserName : str, MajorVersion : int, MinorVersion): assert(Count >= 0) From bcd98e81430fde8a5ae9bcad0c608e4619b9352d Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Thu, 30 May 2024 17:26:02 +0800 Subject: [PATCH 02/46] Update app.py 1. Format codes 2. GenerateLicense takes int rather than LicenseType type --- app.py | 55 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/app.py b/app.py index 255f4b7..82f2743 100644 --- a/app.py +++ b/app.py @@ -1,16 +1,19 @@ #/usr/bin/env python3 -import os, sys, zipfile -from flask import Flask, request, send_file +import os import os.path +import zipfile + +from flask import Flask, request, send_file app = Flask(__name__) VariantBase64Table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' -VariantBase64Dict = { i : VariantBase64Table[i] for i in range(len(VariantBase64Table)) } -VariantBase64ReverseDict = { VariantBase64Table[i] : i for i in range(len(VariantBase64Table)) } +VariantBase64Dict = {i: VariantBase64Table[i] for i in range(len(VariantBase64Table))} +VariantBase64ReverseDict = {VariantBase64Table[i]: i for i in range(len(VariantBase64Table))} -def VariantBase64Encode(bs : bytes): + +def VariantBase64Encode(bs: bytes): result = b'' blocks_count, left_bytes = divmod(len(bs), 3) @@ -38,7 +41,8 @@ def VariantBase64Encode(bs : bytes): result += block.encode() return result -def VariantBase64Decode(s : str): + +def VariantBase64Decode(s: str): result = b'' blocks_count, left_bytes = divmod(len(s), 4) @@ -65,38 +69,44 @@ def VariantBase64Decode(s : str): else: raise ValueError('Invalid encoding.') -def EncryptBytes(key : int, bs : bytes): + +def EncryptBytes(key: int, bs: bytes): result = bytearray() for i in range(len(bs)): result.append(bs[i] ^ ((key >> 8) & 0xff)) key = result[-1] & key | 0x482D return bytes(result) -def DecryptBytes(key : int, bs : bytes): + +def DecryptBytes(key: int, bs: bytes): result = bytearray() for i in range(len(bs)): result.append(bs[i] ^ ((key >> 8) & 0xff)) key = bs[i] & key | 0x482D return bytes(result) + class LicenseType: Professional = 1 Educational = 3 Personal = 4 -def GenerateLicense(Type : LicenseType, Count : int, UserName : str, MajorVersion : int, MinorVersion): - assert(Count >= 0) - LicenseString = '%d#%s|%d%d#%d#%d3%d6%d#%d#%d#%d#' % (Type, - UserName, MajorVersion, MinorVersion, - Count, - MajorVersion, MinorVersion, MinorVersion, - 0, # Unknown - 0, # No Games flag. 0 means "NoGames = false". But it does not work. - 0) # No Plugins flag. 0 means "NoPlugins = false". But it does not work. + +def GenerateLicense(Type: int, Count: int, UserName: str, MajorVersion: int, MinorVersion): + assert (Count >= 0) + LicenseString = '%d#%s|%d%d#%d#%d3%d6%d#%d#%d#%d#' % ( + Type, + UserName, MajorVersion, MinorVersion, + Count, + MajorVersion, MinorVersion, MinorVersion, + 0, # Unknown + 0, # No Games flag. 0 means "NoGames = false". But it does not work. + 0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work. + ) EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode() - FileName = EncodedLicenseString.replace('/','').replace('\\','') + FileName = EncodedLicenseString.replace('/', '').replace('\\', '') with zipfile.ZipFile(FileName, 'w') as f: - f.writestr('Pro.key', data = EncodedLicenseString) + f.writestr('Pro.key', data=EncodedLicenseString) return FileName @@ -119,8 +129,8 @@ def get_lc(): def download_lc(lc): if lc and len(lc) > 5 and os.path.exists('./' + lc): return send_file(lc, - as_attachment=True, - attachment_filename='Custom.mxtpro') + as_attachment=True, + attachment_filename='Custom.mxtpro') else: return "请检查用户名版本号是否正确!" @@ -136,8 +146,5 @@ def index(): return send_file('index.html') - - if __name__ == '__main__': app.run(host='0.0.0.0', port=5000, debug=False) - From 9aaa3bb16c38f3d17402f43c88988e73dfc3216f Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:28:13 +0800 Subject: [PATCH 03/46] Create docker-image.yml --- .github/workflows/docker-image.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..c20cad6 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,32 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + file: Dockerfile + tags: ${{ github.repository_owner }}/mobaxterm-genkey:latest From 1c2daf1a18f640432810b40445190568cabdbf94 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:32:34 +0800 Subject: [PATCH 04/46] Update docker-image.yml --- .github/workflows/docker-image.yml | 46 +++++++++++++++++------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c20cad6..5969f02 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,26 +7,32 @@ on: branches: [ "main" ] jobs: - docker: + build: runs-on: ubuntu-latest steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v2 - with: - push: true - file: Dockerfile - tags: ${{ github.repository_owner }}/mobaxterm-genkey:latest + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + platforms: | + linux/amd64 + linux/arm64 + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:latest From e4da6d80a4573a135315f037fac9aebd22d38715 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:35:50 +0800 Subject: [PATCH 05/46] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5969f02..46fe6f6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -19,10 +19,10 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - + - name: Set up QEMU uses: docker/setup-qemu-action@v2 - - + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - From bd2fad2e11da82ed5a6987487e9b3df0ee26a3d7 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:37:32 +0800 Subject: [PATCH 06/46] Update docker-image.yml --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 46fe6f6..f27997e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -35,4 +35,4 @@ jobs: linux/amd64 linux/arm64 push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:latest + tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest From e542cd987fe668b27d1b94e41a3bc008c8d6e3fe Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:39:38 +0800 Subject: [PATCH 07/46] Delete .github/workflows/docker-image.yml --- .github/workflows/docker-image.yml | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index f27997e..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Docker Image CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - file: ./Dockerfile - platforms: | - linux/amd64 - linux/arm64 - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest From a33798bfa209fd2579ff2fd6ae962311c5d35d5a Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:53:05 +0800 Subject: [PATCH 08/46] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1080305..dcc3ba0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: ci +name: Docker Image CI on: push: @@ -11,10 +11,10 @@ jobs: steps: - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub uses: docker/login-action@v1 @@ -24,7 +24,7 @@ jobs: - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: push: true file: Dockerfile From 6566c914f58bd577a89fc3ee3b3bdd2ee3ffcd63 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:55:53 +0800 Subject: [PATCH 09/46] Update requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 946ad91..95fef4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -Flask==2.1.0 +Flask==3.0.3 From 279bbe26c60a6ddae10fc6f947cdeff45029f55c Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:57:02 +0800 Subject: [PATCH 10/46] Update requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 95fef4e..f21b24b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -Flask==3.0.3 +Flask==2.0.3 From 72aeb5beb87bd5e1fc7a5cfff0b144092844e590 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 17:58:46 +0800 Subject: [PATCH 11/46] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dcc3ba0..b7429fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,4 +28,4 @@ jobs: with: push: true file: Dockerfile - tags: ${{ github.repository_owner }}/mobaxterm-genkey:latest + tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest From ae2925b3d1df2a33cc240e822a900a3a410af5c7 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 18:12:49 +0800 Subject: [PATCH 12/46] Update --- .gitignore | 1 + app.py | 18 ++--- index.html | 193 +++++++++++++++++++++++++++++++++++------------------ 3 files changed, 140 insertions(+), 72 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aed891a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/.idea/** diff --git a/app.py b/app.py index 82f2743..3df064d 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,4 @@ -#/usr/bin/env python3 +# /usr/bin/env python3 import os import os.path @@ -101,7 +101,7 @@ def GenerateLicense(Type: int, Count: int, UserName: str, MajorVersion: int, Min MajorVersion, MinorVersion, MinorVersion, 0, # Unknown 0, # No Games flag. 0 means "NoGames = false". But it does not work. - 0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work. + 0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work. ) EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode() FileName = EncodedLicenseString.replace('/', '').replace('\\', '') @@ -110,7 +110,7 @@ def GenerateLicense(Type: int, Count: int, UserName: str, MajorVersion: int, Min return FileName -#@app.route('/gen') +# @app.route('/gen') def get_lc(): name = request.args.get('name', '') version = request.args.get('ver', '') @@ -125,14 +125,16 @@ def get_lc(): return lc -#@app.route('/download/') +# @app.route('/download/') def download_lc(lc): if lc and len(lc) > 5 and os.path.exists('./' + lc): - return send_file(lc, - as_attachment=True, - attachment_filename='Custom.mxtpro') + return send_file( + lc, + as_attachment=True, + attachment_filename='Custom.mxtpro' + ) else: - return "请检查用户名版本号是否正确!" + return "请检查用户名、版本号是否正确!" @app.route('/gen') diff --git a/index.html b/index.html index 03a6066..7d5762d 100644 --- a/index.html +++ b/index.html @@ -1,73 +1,138 @@ - - + + MobaXterm Keygen - - -
-

MobaXterm Keygen

-
-
-
+ + + +

MobaXterm Keygen

+
+
+
- + +
- -
- -
-
+ + - - + + + + malaohu/MobaXterm-GenKey + + +
+ + From be0a7f45953b4fa9597bd3a6dc4e02470f594e9d Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 18:17:22 +0800 Subject: [PATCH 13/46] Update index.html --- index.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 7d5762d..1bf6281 100644 --- a/index.html +++ b/index.html @@ -98,11 +98,16 @@ text-align: right; } - .github span a { + .github span { color: #242424; font-size: smaller; } + .github span a { + color: #242424; + font-weight: bold; + } + .github span a img { height: 18px; padding-bottom: 3px; @@ -127,9 +132,13 @@ - + - malaohu/MobaXterm-GenKey + MobaXterm-GenKey + + forked from + + malaohu From fceb8241f0702d3db51774e5e9717950d6c44a51 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 23:08:17 +0800 Subject: [PATCH 14/46] Update README.md --- README.md | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 2fd0896..c748435 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,28 @@ # MobaXterm-GenKey -你懂的!! - -## 演示地址 -http://192.99.11.204:5000/ +## Demo + +- [mobaxterm.seeleo.com](https://mobaxterm.seeleo.com/) + +## Local + +`Python 3` Required -## 本地启动 -需要安装Python3!!! ``` pip install --no-cache-dir -r requirements.txt python app.py ``` ## Docker + ``` -docker pull malaohu/mobaxterm-genkey -docker run -d -p 5000:5000 malaohu/mobaxterm-genkey +docker pull seeleo/mobaxterm-genkey:latest +docker run -d -p 5000:5000 seeleo/mobaxterm-genkey:latest ``` +## Credits -## 使用方法 -访问:IP:5000 -![image](https://user-images.githubusercontent.com/8140841/116803404-e94c8300-ab49-11eb-83db-ad0246ebedd3.png) - -### 激活方式 -直接放到软件目录即可! - - - -核心内容来自:https://github.com/flygon2018/MobaXterm-keygen -详细介绍文章:https://51.ruyo.net/17008.html +> 核心内容来自:https://github.com/flygon2018/MobaXterm-keygen +> +> 详细介绍文章:https://51.ruyo.net/17008.html From 2efb39a432c35aba11a54ba301e6d7c2c3faeac4 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 23:10:48 +0800 Subject: [PATCH 15/46] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b7429fe..5a3c38b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,4 +28,4 @@ jobs: with: push: true file: Dockerfile - tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest + tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:$(date +%s) From a29986662a8e120a901cb3b2785f4217a13986b7 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 14 Jun 2024 23:12:51 +0800 Subject: [PATCH 16/46] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5a3c38b..b7429fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,4 +28,4 @@ jobs: with: push: true file: Dockerfile - tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:$(date +%s) + tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest From 1843808d8eb067315a564dcabc4b7a74b209adcd Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Sat, 15 Jun 2024 12:24:22 +0800 Subject: [PATCH 17/46] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c748435..da9faf3 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,11 @@ docker pull seeleo/mobaxterm-genkey:latest docker run -d -p 5000:5000 seeleo/mobaxterm-genkey:latest ``` +## Screenshot + +![mobaxterm seeleo com](https://github.com/malaohu/MobaXterm-GenKey/assets/12462465/cc06a089-9a21-43af-a7f5-06d96c720a0b) + ## Credits -> 核心内容来自:https://github.com/flygon2018/MobaXterm-keygen -> -> 详细介绍文章:https://51.ruyo.net/17008.html +> - https://github.com/flygon2018/MobaXterm-keygen +> - https://51.ruyo.net/17008.html From 1f4062274ace7588aa1087e2be382a3b972b0867 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Sat, 15 Jun 2024 12:53:18 +0800 Subject: [PATCH 18/46] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index da9faf3..ab6a37c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # MobaXterm-GenKey +![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lzcapp/MobaXterm-GenKey/main.yml?style=for-the-badge)   ![Docker Image Version](https://img.shields.io/docker/v/seeleo/mobaxterm-genkey?style=for-the-badge) +   + ![Docker Image Size](https://img.shields.io/docker/image-size/seeleo/mobaxterm-genkey?style=for-the-badge) + ## Demo From aa6c3668bf691001e58eda04ceaf452280ab4bac Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Sun, 16 Jun 2024 23:35:18 +0800 Subject: [PATCH 19/46] Update index.html --- index.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 1bf6281..f14bf1c 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ } h1 { - color: #0056b3; + color: #6C809A; text-justify: newspaper; } @@ -33,7 +33,6 @@ display: block; width: 100%; padding: 13px; - background-color: #0056b3; color: white; border: none; border-radius: 5px; @@ -113,21 +112,34 @@ padding-bottom: 3px; vertical-align: middle; } + + #btn-reset { + background-color: #75BBA7; + } + + #btn-submit { + background-color: #6C809A; + }
-

MobaXterm Keygen

+

MobaXterm GenKey


- +
- +
- + +
From b3cfe2fff13495458e1367ff2422c510a43a3272 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 09:41:20 +0800 Subject: [PATCH 20/46] Update --- README.md | 11 +++++++---- index.html | 31 ++++++++++++++----------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index ab6a37c..308ee1a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # MobaXterm-GenKey -![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lzcapp/MobaXterm-GenKey/main.yml?style=for-the-badge)   ![Docker Image Version](https://img.shields.io/docker/v/seeleo/mobaxterm-genkey?style=for-the-badge) -   - ![Docker Image Size](https://img.shields.io/docker/image-size/seeleo/mobaxterm-genkey?style=for-the-badge) +![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lzcapp/MobaXterm-GenKey/main.yml?style=for-the-badge) +  ![Docker Image Version](https://img.shields.io/docker/v/seeleo/mobaxterm-genkey?style=for-the-badge) +  +![Docker Image Size](https://img.shields.io/docker/image-size/seeleo/mobaxterm-genkey?style=for-the-badge) +**FOR EDUCATIONAL AND TESTING PURPOSE ONLY** ## Demo @@ -27,9 +29,10 @@ docker run -d -p 5000:5000 seeleo/mobaxterm-genkey:latest ## Screenshot -![mobaxterm seeleo com](https://github.com/malaohu/MobaXterm-GenKey/assets/12462465/cc06a089-9a21-43af-a7f5-06d96c720a0b) +![mobaxterm seeleo com](https://github.com/malaohu/MobaXterm-GenKey/assets/12462465/64634131-798f-4070-a400-9b7a99dee557) ## Credits > - https://github.com/flygon2018/MobaXterm-keygen +> - https://github.com/malaohu/MobaXterm-GenKey > - https://51.ruyo.net/17008.html diff --git a/index.html b/index.html index f14bf1c..128b814 100644 --- a/index.html +++ b/index.html @@ -20,13 +20,16 @@ background: #f5f5f5; } - .container { - margin-bottom: 10px; + h1 { + color: #303F9F; + text-justify: newspaper; + text-align: justify; + margin-bottom: 20px; } - h1 { - color: #6C809A; - text-justify: newspaper; + .container { + margin-top: 10px; + margin-bottom: 10px; } button { @@ -55,6 +58,7 @@ font-family: Roboto, Arial, sans-serif; font-size: 15px; background-color: #242424; + color: #212121; } form { @@ -82,11 +86,6 @@ opacity: 0.8; } - .formcontainer { - text-align: left; - margin: 24px 50px 12px; - } - .container { padding: 16px 0; text-align: left; @@ -98,7 +97,7 @@ } .github span { - color: #242424; + color: #212121; font-size: smaller; } @@ -114,19 +113,17 @@ } #btn-reset { - background-color: #75BBA7; + background-color: #757575; } #btn-submit { - background-color: #6C809A; + background-color: #3F51B5; } -

MobaXterm GenKey

-
-
+

MobaXterm GenKey

From a22c9dea147bb7223aca57180b4d9e4984a794da Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:22:45 +0800 Subject: [PATCH 21/46] Update --- README.md | 5 +++-- index.html | 63 ++++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 55 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 308ee1a..491cadf 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ ## Local -`Python 3` Required +**Python 3** Required ``` pip install --no-cache-dir -r requirements.txt @@ -29,7 +29,8 @@ docker run -d -p 5000:5000 seeleo/mobaxterm-genkey:latest ## Screenshot -![mobaxterm seeleo com](https://github.com/malaohu/MobaXterm-GenKey/assets/12462465/64634131-798f-4070-a400-9b7a99dee557) +![1](https://github.com/malaohu/MobaXterm-GenKey/assets/12462465/fa319fe6-b75c-404f-b6fb-59290cda0d66) +![2](https://github.com/malaohu/MobaXterm-GenKey/assets/12462465/ea5387f5-144a-4b1c-a8a8-0847a0912223) ## Credits diff --git a/index.html b/index.html index 128b814..c4f739a 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,8 @@ + - MobaXterm Keygen + MobaXterm GenKey

MobaXterm GenKey

- +
- +
- - + +
- + GitHub MobaXterm-GenKey - forked from + forked from malaohu
+ From ad8a9c2b0061a4c31ab14176418f5887c73b3fae Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:30:56 +0800 Subject: [PATCH 22/46] Update main.yml --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b7429fe..b88f6ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,11 +21,18 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Log in to the Container registry + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push id: docker_build uses: docker/build-push-action@v5 with: + context: . push: true file: Dockerfile tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest From 947f1a355cb0fb7c1dcdb339e37cb9d644a74d60 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:32:27 +0800 Subject: [PATCH 23/46] Update main.yml --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b88f6ff..9758424 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,7 +32,6 @@ jobs: id: docker_build uses: docker/build-push-action@v5 with: - context: . push: true file: Dockerfile tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest From c834a3d74fc42b8db2ed4d9b02f00d4964a8be53 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:37:36 +0800 Subject: [PATCH 24/46] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9758424..007c158 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,12 +17,12 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} From 70eef37788899427436f8ddfb8b75e7839b1e8d4 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:41:25 +0800 Subject: [PATCH 25/46] Update main.yml --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 007c158..37548f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,12 +21,19 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Log in to the Container registry + - + name: Log in to the Container registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - + name: Extract metadata for Docker + id: meta + uses: docker/metadata-action@v3 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE }} - name: Build and push id: docker_build From 03e8955f88970c218bf6875841829ba786654eef Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:43:19 +0800 Subject: [PATCH 26/46] Update main.yml --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37548f7..13870d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,5 +40,6 @@ jobs: uses: docker/build-push-action@v5 with: push: true - file: Dockerfile + context: . + file: ./Dockerfile tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest From 6022690cb8aa11f853679bc1a2ffe596edea8659 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:45:23 +0800 Subject: [PATCH 27/46] Update main.yml --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13870d2..73225c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,8 @@ jobs: docker: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 From 885c5dd73751f59dfc00227c621eafe920a38b82 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:49:05 +0800 Subject: [PATCH 28/46] Update main.yml --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73225c9..0320d5d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,4 +44,7 @@ jobs: push: true context: . file: ./Dockerfile - tags: ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest + platforms: linux/amd64,linux/arm64 + tags: | + ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest + ghcr.io/${{ github.actor }}/mobaxterm-genkey:latest From bb74ce6ffe8857ea76c336b96dfe80fe4917d695 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:55:33 +0800 Subject: [PATCH 29/46] Update requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index f21b24b..965d13c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ Flask==2.0.3 +Werkzeug==2.2.2 From 3fb5b8710f0c01eb302b886bbf6b0d3afd4b41ee Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 10:57:04 +0800 Subject: [PATCH 30/46] Update requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 965d13c..08a66df 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ Flask==2.0.3 -Werkzeug==2.2.2 +Werkzeug==2.0.3 From 9fe6151fc46664ae1d65a5d8a46bac92e6e8c67d Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 11:11:15 +0800 Subject: [PATCH 31/46] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index df3159f..5cbed05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,5 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD [ "python", "./app.py" ] + +HEALTHCHECK CMD curl --fail http://localhost:5000/ || exit 1 From 339d4c48f6f07e98e2182446a334fe75a8b34781 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 11:15:41 +0800 Subject: [PATCH 32/46] Update dependencies --- Dockerfile | 2 +- requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5cbed05..3b24b40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.6-slim +FROM python:3.12-slim MAINTAINER malaohu diff --git a/requirements.txt b/requirements.txt index 08a66df..f306f93 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -Flask==2.0.3 -Werkzeug==2.0.3 +Flask==3.0.3 +Werkzeug==3.0.3 From 6be737183fbd59a0ac60c08d4e800c693e25cbf0 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 11:20:08 +0800 Subject: [PATCH 33/46] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3b24b40..7f1a1fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,4 @@ COPY . . CMD [ "python", "./app.py" ] -HEALTHCHECK CMD curl --fail http://localhost:5000/ || exit 1 +HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl --fail http://localhost:5000/ || exit 1 From 5aed148c149291f4b159a91f2c12e324e13e6085 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 11:26:27 +0800 Subject: [PATCH 34/46] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7f1a1fe..ff1f73c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,4 @@ COPY . . CMD [ "python", "./app.py" ] -HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl --fail http://localhost:5000/ || exit 1 +HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl -f -k http://localhost:5000/ || exit 1 From 2084f85a3957144a8a1dfce910a14c0b576d4135 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 11:35:07 +0800 Subject: [PATCH 35/46] Update Dockerfile --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff1f73c..a8f8577 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,3 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD [ "python", "./app.py" ] - -HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl -f -k http://localhost:5000/ || exit 1 From 8aae90e892722965ef4a3f7faa3e51504db32abc Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 11:48:31 +0800 Subject: [PATCH 36/46] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 491cadf..d8e5d5d 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,21 @@ python app.py ## Docker +### Docker Hub + ``` docker pull seeleo/mobaxterm-genkey:latest docker run -d -p 5000:5000 seeleo/mobaxterm-genkey:latest ``` + +### Container Registry (GitHub) + +``` +docker pull ghcr.io/lzcapp/mobaxterm-genkey:latest +docker run -d -p 5000:5000 ghcr.io/lzcapp/mobaxterm-genkey:latest +``` + ## Screenshot ![1](https://github.com/malaohu/MobaXterm-GenKey/assets/12462465/fa319fe6-b75c-404f-b6fb-59290cda0d66) From 8b1878c1a820aab16b71c1adf49f66d34d3a7769 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 14:12:20 +0800 Subject: [PATCH 37/46] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a8f8577..694cd2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12-slim +FROM python:3.12-alpine MAINTAINER malaohu From a247e262faeb883d43e0a551e27b12873848c200 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 14:28:02 +0800 Subject: [PATCH 38/46] Update main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0320d5d..213947e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,8 +9,27 @@ jobs: docker: runs-on: ubuntu-latest steps: - - name: Checkout + - + name: Checkout uses: actions/checkout@v4 + - + name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + # list of Docker images to use as base name for tags + images: | + seeleo/mobaxterm-genkey + ghcr.io/lzcapp/mobaxterm-genkey + # generate Docker tags based on the following events/attributes + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -30,12 +49,6 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata for Docker - id: meta - uses: docker/metadata-action@v3 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE }} - name: Build and push id: docker_build @@ -45,6 +58,4 @@ jobs: context: . file: ./Dockerfile platforms: linux/amd64,linux/arm64 - tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest - ghcr.io/${{ github.actor }}/mobaxterm-genkey:latest + tags: ${{ steps.meta.outputs.tags }} From dd0194d938ba53a598a5bef50faa9462c0380f4c Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 14:35:31 +0800 Subject: [PATCH 39/46] Update main.yml --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 213947e..89e9334 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,8 +19,8 @@ jobs: with: # list of Docker images to use as base name for tags images: | - seeleo/mobaxterm-genkey - ghcr.io/lzcapp/mobaxterm-genkey + ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey + ghcr.io/${{ github.actor }}/mobaxterm-genkey # generate Docker tags based on the following events/attributes tags: | type=schedule @@ -58,4 +58,7 @@ jobs: context: . file: ./Dockerfile platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta.outputs.tags }} + tags: | + ${{ secrets.DOCKERHUB_USERNAME }}/mobaxterm-genkey:latest + ghcr.io/${{ github.actor }}/mobaxterm-genkey:latest + ${{ steps.meta.outputs.tags }} From 85c6c1227559210a508804cca19e6ccf3bea3fcc Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 17 Jun 2024 15:26:43 +0800 Subject: [PATCH 40/46] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index d8e5d5d..a0fb1f2 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lzcapp/MobaXterm-GenKey/main.yml?style=for-the-badge)   ![Docker Image Version](https://img.shields.io/docker/v/seeleo/mobaxterm-genkey?style=for-the-badge) -  -![Docker Image Size](https://img.shields.io/docker/image-size/seeleo/mobaxterm-genkey?style=for-the-badge) +  ![Docker Image Size](https://img.shields.io/docker/image-size/seeleo/mobaxterm-genkey?style=for-the-badge)   ![Website](https://img.shields.io/website?url=https%3A%2F%2Fmobaxterm.seeleo.com%2F&style=for-the-badge&label=mobaxterm.seeleo.com) **FOR EDUCATIONAL AND TESTING PURPOSE ONLY** From 009cb113ddc504796ad76237414ae7447e2d2f90 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 5 Jul 2024 21:24:16 +0800 Subject: [PATCH 41/46] Update app.py --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 3df064d..5fe9137 100644 --- a/app.py +++ b/app.py @@ -130,8 +130,9 @@ def download_lc(lc): if lc and len(lc) > 5 and os.path.exists('./' + lc): return send_file( lc, - as_attachment=True, - attachment_filename='Custom.mxtpro' + None, + True, + 'Custom.mxtpro' ) else: return "请检查用户名、版本号是否正确!" From cb4192a9d6f488a95cd73141af3f4ad080cb60aa Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 5 Jul 2024 21:26:41 +0800 Subject: [PATCH 42/46] Update app.py --- app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 5fe9137..d15228a 100644 --- a/app.py +++ b/app.py @@ -101,7 +101,7 @@ def GenerateLicense(Type: int, Count: int, UserName: str, MajorVersion: int, Min MajorVersion, MinorVersion, MinorVersion, 0, # Unknown 0, # No Games flag. 0 means "NoGames = false". But it does not work. - 0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work. + 0 # No Plugins flag. 0 means "NoPlugins = false". But it does not work. ) EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode() FileName = EncodedLicenseString.replace('/', '').replace('\\', '') @@ -150,4 +150,8 @@ def index(): if __name__ == '__main__': - app.run(host='0.0.0.0', port=5000, debug=False) + app.run( + '0.0.0.0', + 5000, + False + ) From 8b46d41783e2cdec6b66214923adcbfda3f272b9 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Tue, 9 Jul 2024 15:23:35 +0800 Subject: [PATCH 43/46] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index c4f739a..0da1187 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@ justify-content: center; font-family: Roboto, Arial, sans-serif; font-size: 15px; - background-color: #242424; + background-color: #2b2b2b; color: #212121; } From 5544ce439cdb4728a30fc6a79823313388e057aa Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Tue, 9 Jul 2024 23:34:13 +0800 Subject: [PATCH 44/46] Update index.html --- index.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 0da1187..89ce683 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ } form { - width: 300px; /* Set the width of the form */ + width: 350px; /* Set the width of the form */ padding: 20px; border: 1px solid #ccc; border-radius: 5px; @@ -134,13 +134,12 @@ } #inputName { - width: 300px; height: 47px; color: #333; } #inputVersion { - width: 283px; + width: 334px; height: 35px; } @@ -150,20 +149,18 @@

MobaXterm GenKey

-
- GitHub From 01445ae8ab7048e72b0c2c2bedefc37fbbc4a09f Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 12 Jul 2024 23:18:45 +0800 Subject: [PATCH 45/46] Update index.html --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 89ce683..ac8198d 100644 --- a/index.html +++ b/index.html @@ -150,12 +150,12 @@
@@ -184,7 +184,7 @@ document.getElementById("lblName").innerHTML = "用户名" document.getElementById("inputName").placeholder = "请输入用户名" document.getElementById("lblVersion").innerHTML = "版本" - document.getElementById("inputVersion").placeholder = "请输入版本(24.1)" + document.getElementById("inputVersion").placeholder = "请输入版本" document.getElementById("btnReset").innerHTML = "清空" document.getElementById("btnSubmit").innerHTML = "生成" document.getElementById("forked").innerHTML = "分叉自" From eed12402d7d2751ce95068e6d45808b77fe074d5 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Mon, 23 Sep 2024 14:53:30 +0800 Subject: [PATCH 46/46] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a0fb1f2..29f046e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# MobaXterm-GenKey +# MobaXterm-GenKey (Docker) + +🔗 For the static web app version, see [MobaXterm-GenKey-Web](https://github.com/lzcapp/MobaXterm-GenKey-Web). ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lzcapp/MobaXterm-GenKey/main.yml?style=for-the-badge)   ![Docker Image Version](https://img.shields.io/docker/v/seeleo/mobaxterm-genkey?style=for-the-badge)