From d27d05127ab9cc61439d27d6cf6ca453210cc562 Mon Sep 17 00:00:00 2001 From: blitztide Date: Thu, 7 Jan 2021 13:44:17 +0000 Subject: [PATCH] Fix crashing with invalid UTF8 characters Issue where invalid UTF8 characters in dictionary causes cracking to stop. --- tgsrepcrack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgsrepcrack.py b/tgsrepcrack.py index b2a4eb2..09bc801 100755 --- a/tgsrepcrack.py +++ b/tgsrepcrack.py @@ -57,7 +57,7 @@ def crack(wordlist, enctickets): # load wordlist for w in args.wordlistfile: - word = w.decode('utf-8').strip() + word = w.decode('utf-8','ignore').strip() hash = kerberos.ntlmhash(word) for et in enctickets: kdata, nonce = kerberos.decrypt(hash, 2, et[0])