Initial commit
This commit is contained in:
commit
57fc3525eb
7311 files changed
+1291398
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import pywintypes
|
||||
import win32security
|
||||
|
||||
sa = pywintypes.SECURITY_ATTRIBUTES()
|
||||
tmp_sid = win32security.LookupAccountName("", "tmp")[0]
|
||||
sa.SetSecurityDescriptorOwner(tmp_sid, 0)
|
||||
sid = sa.SECURITY_DESCRIPTOR.GetSecurityDescriptorOwner()
|
||||
print(win32security.LookupAccountSid("", sid))
|
||||
Reference in new issue
Block a user