mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 04:52:24 +00:00
Update cheatsheets
This commit is contained in:
22
linux/chntpw
Normal file
22
linux/chntpw
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user