1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:22:08 +02:00
tldr/pages/linux/chntpw.md
2021-10-29 22:30:21 +01:00

17 lines
490 B
Markdown

# 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.
> More information: <http://pogostick.net/~pnh/ntpasswd>.
- List all users in the SAM file:
`chntpw -l {{path/to/sam_file}}`
- Edit [u]ser interactively:
`chntpw -u {{username}} {{path/to/sam_file}}`
- Use chntpw [i]nteractively:
`chntpw -i {{path/to/sam_file}}`