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

Method getsd_output

scapy/layers/smbclient.py:1863–1877  ·  view source on GitHub ↗

Print the output of 'getsd'

(self, results)

Source from the content-addressed store, hash-verified

1861
1862 @CLIUtil.addoutput(getsd)
1863 def getsd_output(self, results):
1864 """
1865 Print the output of 'getsd'
1866 """
1867 sd = SECURITY_DESCRIPTOR(results)
1868 print("Owner:", sd.OwnerSid.summary())
1869 print("Group:", sd.GroupSid.summary())
1870 if getattr(sd, "DACL", None):
1871 print("DACL:")
1872 for ace in sd.DACL.Aces:
1873 print(" - ", ace.toSDDL())
1874 if getattr(sd, "SACL", None):
1875 print("SACL:")
1876 for ace in sd.SACL.Aces:
1877 print(" - ", ace.toSDDL())
1878
1879
1880if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

SECURITY_DESCRIPTORClass · 0.90
summaryMethod · 0.45
toSDDLMethod · 0.45

Tested by

no test coverage detected