summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornlscc <66028747+nlscc@users.noreply.github.com>2020-10-10 01:20:16 +0200
committernlscc <66028747+nlscc@users.noreply.github.com>2020-10-10 01:20:16 +0200
commitf34e316ae04b80e62dee669ee50f5575d58af5c9 (patch)
treeedec881ca5b9de4720249a12b630948b6fd7c658
parentuse cryptodomex instead of cryptodome (diff)
downloadsamloader-f34e316ae04b80e62dee669ee50f5575d58af5c9.tar
samloader-f34e316ae04b80e62dee669ee50f5575d58af5c9.tar.gz
samloader-f34e316ae04b80e62dee669ee50f5575d58af5c9.tar.bz2
samloader-f34e316ae04b80e62dee669ee50f5575d58af5c9.tar.lz
samloader-f34e316ae04b80e62dee669ee50f5575d58af5c9.tar.xz
samloader-f34e316ae04b80e62dee669ee50f5575d58af5c9.tar.zst
samloader-f34e316ae04b80e62dee669ee50f5575d58af5c9.zip
-rw-r--r--samloader/crypt.py3
1 files changed, 2 insertions, 1 deletions
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):