2021-10-29 17:30:21 -04: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.
|
2024-10-02 11:51:05 +02:00
|
|
|
> More information: <https://pogostick.net/~pnh/ntpasswd>.
|
2021-10-29 17:30:21 -04:00
|
|
|
|
|
|
|
- List all users in the SAM file:
|
|
|
|
|
|
|
|
`chntpw -l {{path/to/sam_file}}`
|
|
|
|
|
2024-10-02 11:51:05 +02:00
|
|
|
- Edit user interactively:
|
2021-10-29 17:30:21 -04:00
|
|
|
|
|
|
|
`chntpw -u {{username}} {{path/to/sam_file}}`
|
|
|
|
|
2024-10-02 11:51:05 +02:00
|
|
|
- Use chntpw interactively:
|
2021-10-29 17:30:21 -04:00
|
|
|
|
|
|
|
`chntpw -i {{path/to/sam_file}}`
|