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

Class WINNT_ACL

scapy/layers/smb2.py:1504–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1502
1503
1504class WINNT_ACL(Packet):
1505 fields_desc = [
1506 ByteField("AclRevision", 2),
1507 ByteField("Sbz1", 0x00),
1508 # Total size including header:
1509 # AclRevision(1) + Sbz1(1) + AclSize(2) + AceCount(2) + Sbz2(2)
1510 FieldLenField(
1511 "AclSize",
1512 None,
1513 length_of="Aces",
1514 adjust=lambda _, x: x + 8,
1515 fmt="<H",
1516 ),
1517 FieldLenField("AceCount", None, count_of="Aces", fmt="<H"),
1518 ShortField("Sbz2", 0),
1519 PacketListField(
1520 "Aces",
1521 [],
1522 WINNT_ACE_HEADER,
1523 count_from=lambda pkt: pkt.AceCount,
1524 ),
1525 ]
1526
1527 def toSDDL(self):
1528 return [x.toSDDL() for x in self.Aces]
1529
1530
1531# [MS-DTYP] 2.4.6 SECURITY_DESCRIPTOR

Callers 1

SECURITY_DESCRIPTORClass · 0.85

Calls 4

ByteFieldClass · 0.90
FieldLenFieldClass · 0.90
ShortFieldClass · 0.90
PacketListFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…