LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

chntpw

offline Windows password and registry editor

TLDR

Open the SAM database in interactive mode
$ chntpw -i [path/to/sam_file]
copy
List usernames stored in a Windows SAM file
$ chntpw -l [path/to/sam_file]
copy
Edit a named user (password/unlock) offline
$ chntpw -u [username] [path/to/sam_file]
copy

SYNOPSIS

chntpw [options] samfile [systemfile] [securityfile_]

DESCRIPTION

chntpw is an offline Windows password and registry editor. It can reset local user passwords, promote users to administrator, unlock accounts, and edit the Windows registry directly.The tool works by modifying the Windows SAM (Security Account Manager) database file while Windows is not running. This is typically done by booting from a Linux live CD.

PARAMETERS

-l

List users in the SAM file
-u username
Select user to edit
-i
Interactive mode with menu
-e
Registry editor mode
-L
Write names of changed files to /tmp/changed

INSTALL

sudo apt install chntpw
copy
sudo dnf install chntpw
copy
sudo pacman -S chntpw
copy
sudo apk add chntpw
copy
sudo zypper install chntpw
copy
nix profile install nixpkgs#chntpw
copy

CAVEATS

Requires offline access to the Windows partition. Cannot reset Microsoft account passwords (cloud accounts). BitLocker-encrypted drives must be decrypted first. Always backup the SAM file before modifications.

HISTORY

chntpw was created by Petter Nordahl-Hagen for recovering access to Windows systems. It has become a standard tool included in security-focused Linux distributions like Kali Linux.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid