(self, pkt, pay)
| 3209 | ] |
| 3210 | |
| 3211 | def post_build(self, pkt, pay): |
| 3212 | # type: (bytes, bytes) -> bytes |
| 3213 | if len(pkt) == 0x38: |
| 3214 | # 'In the request, the Buffer field MUST be at least one byte in length.' |
| 3215 | pkt += b"\x00" |
| 3216 | return ( |
| 3217 | _SMB2_post_build( |
| 3218 | self, |
| 3219 | pkt, |
| 3220 | self.OFFSET, |
| 3221 | { |
| 3222 | "Name": 44, |
| 3223 | "CreateContexts": 48, |
| 3224 | }, |
| 3225 | ) |
| 3226 | + pay |
| 3227 | ) |
| 3228 | |
| 3229 | |
| 3230 | bind_top_down(SMB2_Header, SMB2_Create_Request, Command=0x0005) |
nothing calls this directly
no test coverage detected