Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.22 KB

File metadata and controls

37 lines (24 loc) · 1.22 KB

Netlogon

Example protocol for the MS-NRPC (Netlogon) protocol implemented in python:

Netlogon example protocol

Installation

pipx install git+https://github.com/NeffIsBack/Netlogon

Usage

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