Fix infinit loop for module hash_spider

main
mpgn 2022-07-19 06:45:38 -04:00
parent fad09bd6b0
commit 177dceded8
1 changed files with 3 additions and 2 deletions

View File

@ -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()