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

Install

All systems
curl cmd.cat/chntpw.sh
Debian Debian
apt-get install chntpw
Ubuntu
apt-get install chntpw
Alpine
apk add chntpw
Arch Arch Linux
pacman -S chntpw
image/svg+xml Kali Linux
apt-get install chntpw
Fedora
dnf install chntpw
Windows (WSL2)
sudo apt-get update sudo apt-get install chntpw
Raspbian
apt-get install chntpw
Docker
docker run cmd.cat/chntpw chntpw powered by Commando

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

© tl;dr; authors and contributors