Fixed lm/nt hash not being uppercase

master
parent 7661f49823
commit ca1b3bde6d

@ -114,9 +114,9 @@ class encrypt(color_print):
hash_pwd = "{SSHA}" + b64encode(h.digest() + salt).decode("UTF-8")
elif SecHashAlg == "lm":
hash_pwd = lmhash.hash(password)
hash_pwd = lmhash.hash(password).upper()
elif SecHashAlg == "nt":
hash_pwd = nthash.hash(password)
hash_pwd = nthash.hash(password).upper()
else:
if SecHashAlg in ("lm", "nt"):
self.printERROR(

@ -628,7 +628,7 @@ class plasma(samba):
# не равно BR или комментарий то добавляем BR
if xmlArea.getprevious() is not None:
prPrSibling = xmlArea.getprevious().getprevious()
if (prPrSibling and
if (prPrSibling is not None and
not (self.docObj.getTypeField(
prPrSibling) == "br" or
self.docObj.getTypeField(

Loading…
Cancel
Save