From 177dceded818846ab7af401425bf6e4f5b134b99 Mon Sep 17 00:00:00 2001 From: mpgn Date: Tue, 19 Jul 2022 06:45:38 -0400 Subject: [PATCH] Fix infinit loop for module hash_spider --- cme/modules/hash_spider.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cme/modules/hash_spider.py b/cme/modules/hash_spider.py index c1a49a4a..6d2ae1b5 100644 --- a/cme/modules/hash_spider.py +++ b/cme/modules/hash_spider.py @@ -193,10 +193,11 @@ class CMEModule: try: self.run_lsassy(context, connection) cursor.execute("UPDATE pc_and_admins SET dumped = 'TRUE' WHERE pc_name LIKE '" + pc[0] + "%'") + + process_creds(context, connection, credentials_data, dbconnection, cursor, driver) + self.spider_pcs(context, connection, cursor, dbconnection, driver) except Exception: context.log.error(f"Failed to dump lsassy on {pc[0]}") - process_creds(context, connection, credentials_data, dbconnection, cursor, driver) - self.spider_pcs(context, connection, cursor, dbconnection, driver) if len(admin_access) > 0: context.log.error("No more local admin access known. Please try re-running Bloodhound with newly found accounts.") exit()