MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / ComCreateDirectoryRequest

Class ComCreateDirectoryRequest

pager_lib/smb/smb_structs.py:1219–1238  ·  view source on GitHub ↗

Although this command has been marked deprecated in [MS-CIFS], we continue to use it for its simplicity as compared to its replacement TRANS2_CREATE_DIRECTORY sub-command [MS-CIFS]: 2.2.6.14 References: =========== - [MS-CIFS]: 2.2.4.1.1

Source from the content-addressed store, hash-verified

1217
1218
1219class ComCreateDirectoryRequest(Payload):
1220 """
1221 Although this command has been marked deprecated in [MS-CIFS], we continue to use it for its simplicity
1222 as compared to its replacement TRANS2_CREATE_DIRECTORY sub-command [MS-CIFS]: 2.2.6.14
1223
1224 References:
1225 ===========
1226 - [MS-CIFS]: 2.2.4.1.1
1227 """
1228
1229 def __init__(self, path):
1230 self.path = path
1231
1232 def initMessage(self, message):
1233 Payload.initMessage(self, message)
1234 message.command = SMB_COM_CREATE_DIRECTORY
1235
1236 def prepare(self, message):
1237 message.parameters_data = b''
1238 message.data = b'\x04' + self.path.encode('UTF-16LE') + b'\0\0'
1239
1240
1241class ComDeleteDirectoryRequest(Payload):

Callers 1

sendCreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected