From b9c32697c77f74693fbbf9d3cb366f9f2847c7d0 Mon Sep 17 00:00:00 2001 From: Li Hua Date: Fri, 1 Nov 2024 01:48:24 +0800 Subject: [PATCH] feat(keyboxchecker/__init__.py): searchParams --- keyboxchecker/__init__.py | 5 ++++- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/keyboxchecker/__init__.py b/keyboxchecker/__init__.py index b9d0e57..15da40d 100644 --- a/keyboxchecker/__init__.py +++ b/keyboxchecker/__init__.py @@ -6,6 +6,7 @@ from json import load from os import getenv from pathlib import Path +from secrets import token_urlsafe from cryptography import x509 from cryptography.hazmat.primitives import hashes @@ -34,7 +35,9 @@ def get_revoked_keybox_list(): return load(open(Path(".github") / "status"))["entries"] else: return get( # pylint: disable=W3101 - "https://android.googleapis.com/attestation/status", + "https://android.googleapis.com/attestation/status?{}".format( + token_urlsafe() + ), headers={ "Cache-Control": "max-age=0, no-cache, no-store, must-revalidate", "Pragma": "no-cache", diff --git a/pyproject.toml b/pyproject.toml index 135a05c..bc636d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "keyboxchecker" -version = "1.1.3" +version = "1.2.3" description = "" authors = ["Li Hua "] readme = "README.md"