From f34e316ae04b80e62dee669ee50f5575d58af5c9 Mon Sep 17 00:00:00 2001 From: nlscc <66028747+nlscc@users.noreply.github.com> Date: Sat, 10 Oct 2020 00:20:16 +0100 Subject: fix #19 --- samloader/crypt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samloader/crypt.py b/samloader/crypt.py index 5b96ad1..ba7f91c 100644 --- a/samloader/crypt.py +++ b/samloader/crypt.py @@ -19,8 +19,9 @@ def getv4key(version, model, region): req = request.binaryinform(version, model, region, client.nonce) resp = client.makereq("NF_DownloadBinaryInform.do", req) root = ET.fromstring(resp) + fwver = root.find("./FUSBody/Results/LATEST_FW_VERSION/Data").text logicval = root.find("./FUSBody/Put/LOGIC_VALUE_FACTORY/Data").text - deckey = request.getlogiccheck(version, logicval) + deckey = request.getlogiccheck(fwver, logicval) return hashlib.md5(deckey.encode()).digest() def getv2key(version, model, region): -- cgit v1.2.3