MCPcopy
hub / github.com/fortra/impacket / encodeSMBString

Function encodeSMBString

impacket/smbserver.py:206–210  ·  view source on GitHub ↗
(flags, text)

Source from the content-addressed store, hash-verified

204
205
206def encodeSMBString(flags, text):
207 if flags & smb.SMB.FLAGS2_UNICODE:
208 return (text).encode('utf-16le')
209 else:
210 return text.encode('ascii')
211
212
213def getSMBDate(t):

Callers 6

smbComTreeConnectAndXMethod · 0.90
findFirst2Method · 0.90
smbComNtCreateAndXMethod · 0.90
smbComTreeConnectAndXMethod · 0.90
smbComTreeConnectAndXMethod · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…