diff --git a/servers/SMB.py b/servers/SMB.py index 0f89553..23bcf2f 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('