From c9d3e13cd544664eb84377a44fdc0a8032e54aa3 Mon Sep 17 00:00:00 2001 From: nlscc <66028747+nlscc@users.noreply.github.com> Date: Tue, 9 Feb 2021 18:44:21 +0000 Subject: fix #41 --- samloader/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samloader/main.py b/samloader/main.py index 63dd82e..57210dc 100644 --- a/samloader/main.py +++ b/samloader/main.py @@ -59,7 +59,7 @@ def main(): return print("decyrpting", out) # TODO: remove code duplication with decrypt command - getkey = crypt.getv2key if filename.endswith(".enc2") else crypt.getenc4key + getkey = crypt.getv2key if filename.endswith(".enc2") else crypt.getv4key key = getkey(args.fw_ver, args.dev_model, args.dev_region) length = os.stat(out).st_size with open(out, "rb") as inf: -- cgit v1.2.3