mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:53:50 +02:00
chntpw: add page (#7248)
This commit is contained in:
parent
4f922202b0
commit
cb559cbad8
1 changed files with 17 additions and 0 deletions
17
pages/linux/chntpw.md
Normal file
17
pages/linux/chntpw.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue