From 9a72afc6b5e0398feac2e1973c54708bb3835317 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 28 Jul 2016 14:55:22 +0300 Subject: [PATCH] Proper non-Latin names support for SMB --- servers/SMB.py | 10 +++++----- utils.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/servers/SMB.py b/servers/SMB.py index 6127eca..3ab5d09 100644 --- a/servers/SMB.py +++ b/servers/SMB.py @@ -65,7 +65,7 @@ def ParseShare(data): packet = data[:] a = re.search('(\\x5c\\x00\\x5c.*.\\x00\\x00\\x00)', packet) if a: - print text("[SMB] Requested Share : %s" % a.group(0).replace('\x00', '')) + print text("[SMB] Requested Share : %s" % a.group(0).decode('UTF-16LE')) def ParseSMBHash(data,client): #Parse SMB NTLMSSP v1/v2 @@ -91,10 +91,10 @@ def ParseSMBHash(data,client): #Parse SMB NTLMSSP v1/v2 SMBHash = SSPIStart[NthashOffset:NthashOffset+NthashLen].encode("hex").upper() DomainLen = struct.unpack('