2025-03-14 21:59:59 -06:00
|
|
|
# chntpw
|
|
|
|
|
|
|
|
|
|
> A utility that can edit windows registry, reset user password, promote users to administrator by modifying the Windows SAM.
|
|
|
|
|
> Boot target machine with live cd like Kali Linux and run with elevated privileges.
|
2025-07-24 22:27:13 -06:00
|
|
|
> More information: <https://pogostick.net/~pnh/ntpasswd/MANUAL.txt>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List all users in the SAM file:
|
|
|
|
|
|
|
|
|
|
`chntpw -l {{path/to/sam_file}}`
|
|
|
|
|
|
|
|
|
|
- Edit user interactively:
|
|
|
|
|
|
|
|
|
|
`chntpw -u {{username}} {{path/to/sam_file}}`
|
|
|
|
|
|
|
|
|
|
- Use chntpw interactively:
|
|
|
|
|
|
|
|
|
|
`chntpw -i {{path/to/sam_file}}`
|