diff --git a/requirements.txt b/requirements.txt index fa17f33..5888493 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ pyshark==0.4.3 cryptography==3.3.2 +pycrytodome diff --git a/winrm_decrypt.py b/winrm_decrypt.py index e6c3aeb..a04e521 100755 --- a/winrm_decrypt.py +++ b/winrm_decrypt.py @@ -27,6 +27,7 @@ import sys import struct import xml.dom.minidom +from Crypto.Hash import MD4 from cryptography.hazmat.primitives.ciphers import ( algorithms, @@ -146,7 +147,9 @@ def hmac_md5(key, data): def md4(m): - return hashlib.new('md4', m).digest() + h = MD4.new() + h.update(m) + return h.digest() def md5(m):