HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

chntpw — A utility that can edit windows registry, reset user password, promote users to administrator by mod

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcanwindowsclieditthatchntpwutility
linux

Problem

How to use the chntpw command: 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: <https://pogostick.net/~pnh/ntpasswd/MANUAL.txt>.

Solution

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: <https://pogostick.net/~pnh/ntpasswd/MANUAL.txt>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/chntpw

Revisions (0)

No revisions yet.