From c9b5dd040e27de95638b33da7a35e5187efb4aac Mon Sep 17 00:00:00 2001 From: lgandx Date: Wed, 19 Oct 2022 08:44:05 -0300 Subject: [PATCH] Removed machine accounts dump, since they are not crackable --- DumpHash.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/DumpHash.py b/DumpHash.py index 0e383d7..6ce39db 100755 --- a/DumpHash.py +++ b/DumpHash.py @@ -28,14 +28,20 @@ def GetResponderCompleteNTLMv2Hash(cursor): res = cursor.execute("SELECT fullhash FROM Responder WHERE type LIKE '%v2%' AND UPPER(user) in (SELECT DISTINCT UPPER(user) FROM Responder)") Output = "" for row in res.fetchall(): - Output += '{0}'.format(row[0])+'\n' + if "$" in row[0]: + pass + else: + Output += '{0}'.format(row[0])+'\n' return Output def GetResponderCompleteNTLMv1Hash(cursor): res = cursor.execute("SELECT fullhash FROM Responder WHERE type LIKE '%v1%' AND UPPER(user) in (SELECT DISTINCT UPPER(user) FROM Responder)") Output = "" for row in res.fetchall(): - Output += '{0}'.format(row[0])+'\n' + if "$" in row[0]: + pass + else: + Output += '{0}'.format(row[0])+'\n' return Output cursor = DbConnect()