(self, message)
| 263 | DEFAULT_ANDX_PARAM_SIZE = 4 |
| 264 | |
| 265 | def initMessage(self, message): |
| 266 | # SMB_FLAGS2_UNICODE must always be enabled. Without this, almost all the Payload subclasses will need to be |
| 267 | # rewritten to check for OEM/Unicode strings which will be tedious. Fortunately, almost all tested CIFS services |
| 268 | # support SMB_FLAGS2_UNICODE by default. |
| 269 | assert message.payload == self |
| 270 | message.flags = SMB_FLAGS_CASE_INSENSITIVE | SMB_FLAGS_CANONICALIZED_PATHS |
| 271 | message.flags2 = SMB_FLAGS2_UNICODE | SMB_FLAGS2_NT_STATUS | SMB_FLAGS2_IS_LONG_NAME | SMB_FLAGS2_LONG_NAMES |
| 272 | |
| 273 | if SUPPORT_EXTENDED_SECURITY: |
| 274 | message.flags2 |= SMB_FLAGS2_EXTENDED_SECURITY |
| 275 | |
| 276 | def prepare(self, message): |
| 277 | raise NotImplementedError |
no outgoing calls
no test coverage detected