mirror of
https://github.com/Mas0nShi/typoraCracker.git
synced 2023-07-10 13:41:20 +08:00
dev commits.
This commit is contained in:
@@ -46,7 +46,7 @@ def extract_file(from_path, to_path):
|
||||
|
||||
def patch_file(_key, _iv):
|
||||
patch_file_path = os.path.join(BASE_DIR, "../typora.py")
|
||||
fd = open(patch_file_path, "a")
|
||||
fd = open(patch_file_path, "a+")
|
||||
content = fd.read()
|
||||
content = content.replace("{AES_KEY}", f"b''.fromhex('{_key}')")
|
||||
content = content.replace("{AES_IV}", f"b''.fromhex('{_iv}')")
|
||||
|
||||
Reference in New Issue
Block a user