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

Class SMBNegotiate_Response_Security

scapy/layers/smb.py:460–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458
459
460class SMBNegotiate_Response_Security(_SMBNegotiate_Response):
461 name = "SMB Negotiate Non-Extended Security Response (SMB)"
462 WordCount = 0x11
463 fields_desc = SMBNegotiate_Response_NoSecurity.fields_desc[:12] + [
464 LEFieldLenField(
465 "ByteCount",
466 None,
467 length_of="DomainName",
468 adjust=lambda pkt, x: x
469 + 2
470 + _len(pkt, "Challenge")
471 + _len(pkt, "ServerName"),
472 ),
473 XStrLenField(
474 "Challenge",
475 b"", # aka EncryptionKey
476 length_from=lambda pkt: pkt.ChallengeLength,
477 ),
478 _SMBStrNullField("DomainName", "WORKGROUP"),
479 _SMBStrNullField("ServerName", "RMFF1"),
480 ]
481
482
483bind_top_down(SMB_Header, SMBNegotiate_Response_Security, Command=0x72, Flags=0x80)

Callers

nothing calls this directly

Calls 4

LEFieldLenFieldClass · 0.90
XStrLenFieldClass · 0.90
_SMBStrNullFieldFunction · 0.85
_lenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…