fix old android process enumeration

This commit is contained in:
hyugogirubato 2024-07-23 22:16:35 +02:00
parent 1817e0af4c
commit 4fdcdc1674
1 changed files with 5 additions and 3 deletions

View File

@ -6,8 +6,8 @@ import re
from pathlib import Path from pathlib import Path
from typing import Union from typing import Union
from zlib import crc32 from zlib import crc32
from unidecode import unidecode from unidecode import unidecode
from Cryptodome.PublicKey import RSA from Cryptodome.PublicKey import RSA
from Cryptodome.PublicKey.RSA import RsaKey from Cryptodome.PublicKey.RSA import RsaKey
from pywidevine.device import Device, DeviceTypes from pywidevine.device import Device, DeviceTypes
@ -46,7 +46,8 @@ class Cdm:
self.client_id: dict[int, ClientIdentification] = {} self.client_id: dict[int, ClientIdentification] = {}
self.private_key: dict[int, RsaKey] = {} self.private_key: dict[int, RsaKey] = {}
def __client_info(self, client_id: ClientIdentification) -> dict: @staticmethod
def __client_info(client_id: ClientIdentification) -> dict:
""" """
Converts client identification information to a dictionary. Converts client identification information to a dictionary.
@ -58,7 +59,8 @@ class Cdm:
""" """
return {e.name: e.value for e in client_id.client_info} return {e.name: e.value for e in client_id.client_info}
def __encrypted_client_info(self, encrypted_client_id: EncryptedClientIdentification) -> dict: @staticmethod
def __encrypted_client_info(encrypted_client_id: EncryptedClientIdentification) -> dict:
""" """
Converts encrypted client identification information to a dictionary. Converts encrypted client identification information to a dictionary.