MCPcopy Create free account
hub / github.com/secdev/scapy / post_build

Method post_build

scapy/layers/smb2.py:3211–3227  ·  view source on GitHub ↗
(self, pkt, pay)

Source from the content-addressed store, hash-verified

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
3230bind_top_down(SMB2_Header, SMB2_Create_Request, Command=0x0005)

Callers

nothing calls this directly

Calls 1

_SMB2_post_buildFunction · 0.85

Tested by

no test coverage detected