Contains information about the SMB2_WRITE response from the server. If the message has no errors, each instance contains the following attributes: - count (integer) References: =========== - [MS-SMB2]: 2.2.22
| 476 | |
| 477 | |
| 478 | class SMB2WriteResponse(Structure): |
| 479 | """ |
| 480 | Contains information about the SMB2_WRITE response from the server. |
| 481 | |
| 482 | If the message has no errors, each instance contains the following attributes: |
| 483 | - count (integer) |
| 484 | |
| 485 | References: |
| 486 | =========== |
| 487 | - [MS-SMB2]: 2.2.22 |
| 488 | """ |
| 489 | |
| 490 | STRUCTURE_FORMAT = "<HHIIHH" |
| 491 | STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT) |
| 492 | |
| 493 | def decode(self, message): |
| 494 | assert message.command == SMB2_COM_WRITE |
| 495 | if message.status == 0: |
| 496 | struct_size, _, self.count, _, _, _ = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE]) |
| 497 | |
| 498 | |
| 499 |