Example protocol for the MS-NRPC (Netlogon) protocol implemented in python:
pipx install git+https://github.com/NeffIsBack/Netlogon
Authenticating with a Domain Controller:
netlogon --dc-ip 192.168.56.11 --dc-name WINTERFELL -u WINTERFELL$ -H 64d0555fb7dc6fa2c74d650788e051d1 --domain north.sevenkingdoms.local --is-dc
Authenticating with a normal computer account:
netlogon --dc-ip 192.168.56.11 --dc-name WINTERFELL -u WINTERFELL$ -H 64d0555fb7dc6fa2c74d650788e051d1 --domain north.sevenkingdoms.local
Get the "password" (NT-hash) of the computer account:
netlogon --dc-ip 192.168.56.11 --dc-name WINTERFELL -u WINTERFELL$ -H 64d0555fb7dc6fa2c74d650788e051d1 --domain north.sevenkingdoms.local --is-dc --get-password
Set a new "password" (NT-hash) for the computer account:
netlogon --dc-ip 192.168.56.11 --dc-name WINTERFELL -u WINTERFELL$ -H 64d0555fb7dc6fa2c74d650788e051d1 --domain north.sevenkingdoms.local --is-dc --set-password 64d0555fb7dc6fa2c74d650788e051d1
