diff options
-rw-r--r-- | samloader/request.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/samloader/request.py b/samloader/request.py index e19d072..47619d8 100644 --- a/samloader/request.py +++ b/samloader/request.py @@ -6,6 +6,8 @@ import xml.etree.ElementTree as ET def getlogiccheck(inp, nonce): + if len(inp) < 16: + raise Exception("getlogiccheck() input too short") out = "" for c in nonce: out += inp[ord(c) & 0xf] |