Add Polsat

This commit is contained in:
FoxRefire
2024-05-02 02:27:32 +09:00
parent 7449ea8096
commit 658636c1fb
3 changed files with 12 additions and 0 deletions

10
python/schemes/Polsat.py Normal file
View File

@@ -0,0 +1,10 @@
import base64
payload = json.loads(base64.b64decode(licBody.encode()).decode())
challengeB64 = base64.b64encode(challenge).decode()
payload['params']['object'] = challengeB64
licence = await (await pyfetch(licUrl,
method="POST",
headers=licHeaders,
body=json.dumps(payload)
)).json()
base64.b64decode(licence['result']['object']['license'].encode())