Jump to content
  • Entries

    16114
  • Comments

    7952
  • Views

    863101600

Contributors to this blog

  • HireHackking 16114

About this blog

Hacking techniques include penetration testing, network security, reverse cracking, malware analysis, vulnerability exploitation, encryption cracking, social engineering, etc., used to identify and fix security flaws in systems.

chntpw is a Kali Linux tool that can be used to edit the Windows registry, reset the user's password, promote the user to an administrator, and several other useful options. Make it possible to modify it using chntpw when you don't know what the Windows password is. Certain information and changes to user passwords are usually located in \WINDOWS\system32\config\SAM on the Windows file system.password

Now playing: Sorry Louis C.K. Sorry (2021)

List of episodes

Sorry Louis C.K. Sorry (2021)

A string

User Command

chntpw -h

chntpw: change password of a user in a Windows SAM file,

or invoke registry editor. Should handle both 32 and 64 bit windows and

all version from NT3.x to Win8.1

chntpw [OPTIONS] samfile [systemfile] [securityfile] [otherreghive] [.]

-h This message

-u user Username or RID (0x3e9 for example) to interactively edit

-l list all users in SAM file and exit

-i Interactive Menu system

-e Registry editor. Now with full write support!

-d Enter buffer debugger instead (hex editor),

-v Be a little more verbose (for debugging)

-L For scripts, write names of changed files to /tmp/changed

-N No allocation mode. Only same length overwrites possible (very safe mode)

-E No expand mode, do not expand hive file (safe mode)

Practical combat

Install kali with a USB flash drive and start. Copy the Sam file to the kali desktop, or use the USB drive boot tool to copy the Sam file to the USB drive, and then copy it to kali.

List all users

chntpw –l sam file qjwuryci4ni4210.png

Modify username and password

chntpw –u user sam file teduwz0unup4215.png

Just type the number corresponding to the task we need. Here we are changing the password. So, type '2'.srp3sg0pc5q4218.png

The tool will then ask for a new password. Just type it and press Enter. It then asks if we want to save the password. Press y to save the new password. Now, we have changed the password in the SAM file.