From b9f0b259380aa9eb4c01b28f25f04763f4cca8fc Mon Sep 17 00:00:00 2001 From: famos0 Date: Thu, 23 Mar 2023 10:24:57 +0100 Subject: [PATCH] update ntdsutil db interactions --- cme/modules/ntdsutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cme/modules/ntdsutil.py b/cme/modules/ntdsutil.py index 5537a608..0d0e4323 100644 --- a/cme/modules/ntdsutil.py +++ b/cme/modules/ntdsutil.py @@ -90,7 +90,7 @@ class CMEModule: bootKey = localOperations.getBootKey() noLMHash = localOperations.checkNoLMHashPolicy() - host_id = context.db.get_computers(filterTerm=connection.host)[0][0] + host_id = context.db.get_hosts(filter_term=connection.host)[0][0] def add_ntds_hash(ntds_hash, host_id): add_ntds_hash.ntds_hashes += 1