From 3ea563bde87fa4c67f7b0bc4de4f216614096ec6 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 19 Feb 2025 18:48:32 +0000 Subject: [PATCH] Windows: Use built-in libraries where possible (idea from #1627) --- volatility3/framework/plugins/windows/hashdump.py | 3 +-- volatility3/framework/plugins/windows/lsadump.py | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/volatility3/framework/plugins/windows/hashdump.py b/volatility3/framework/plugins/windows/hashdump.py index 621b0ae53..1fea3d49d 100644 --- a/volatility3/framework/plugins/windows/hashdump.py +++ b/volatility3/framework/plugins/windows/hashdump.py @@ -8,7 +8,6 @@ from struct import pack, unpack from typing import List, Optional, Tuple from Crypto.Cipher import AES, ARC4, DES -from Crypto.Hash import MD5 from volatility3.framework import interfaces, renderers from volatility3.framework.configuration import requirements @@ -529,7 +528,7 @@ class Hashdump(interfaces.plugins.PluginInterface): (des_k1, des_k2) = cls.sid_to_key(rid) des1 = DES.new(des_k1, DES.MODE_ECB) des2 = DES.new(des_k2, DES.MODE_ECB) - md5 = MD5.new() + md5 = hashlib.md5() md5.update(hbootkey[:0x10] + pack("