mirror of
https://github.com/Mas0nShi/typoraCracker.git
synced 2023-07-10 13:41:20 +08:00
dev commits.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from utils import get_version, download_file, extract_file
|
||||
from utils import get_version, download_file, extract_file, log
|
||||
import os
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -9,4 +9,5 @@ if __name__ == '__main__':
|
||||
download_file(DOWNLOAD_URL, download_path)
|
||||
extract_file(download_path, BASE_DIR)
|
||||
version = get_version(BASE_DIR)
|
||||
os.system(f"export TYPORA_VERSION={version}")
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ def download_file(from_link, to_path):
|
||||
|
||||
def extract_file(from_path, to_path):
|
||||
subprocess.check_call(["innoextract", from_path, "-d", to_path])
|
||||
log.info("preparation stage completed")
|
||||
|
||||
|
||||
def patch_file(_key, _iv):
|
||||
patch_file_path = os.path.join(BASE_DIR, "../typora.py")
|
||||
@@ -62,7 +62,7 @@ def win_x64_run():
|
||||
download_file(link, download_path)
|
||||
|
||||
extract_file(download_path, basedir)
|
||||
|
||||
log.info("preparation stage completed")
|
||||
main_node_path = os.path.join(basedir, "app/resources/app.asar.unpacked/main.node")
|
||||
log.info("auto analysis start")
|
||||
key, iv = analysis.get_aes_key_and_iv(main_node_path)
|
||||
|
||||
Reference in New Issue
Block a user