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
| 1217 | |
| 1218 | |
| 1219 | class 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 | |
| 1241 | class ComDeleteDirectoryRequest(Payload): |