fixed exchange recon.

This commit is contained in:
Mariusz B. / mgeeky 2022-03-01 12:28:50 +01:00
parent d98cdf9523
commit 45ec066343
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ class NtlmParser:
if len(self.raw) >= 2 and self.raw[1] == 0: if len(self.raw) >= 2 and self.raw[1] == 0:
try: try:
self.string = self.raw.decode('utf-16') self.string = self.raw.decode('utf-16', 'ignore')
except: except:
self.string = ''.join(filter(lambda x: str(x) != str('\0'), self.raw)) self.string = ''.join(filter(lambda x: str(x) != str('\0'), self.raw))
self.utf16 = True self.utf16 = True