Tip & How-To about Computers & Internet

All about Windows SAM file

Section 1 : General Information
As you may or may not know, all of the passwords on a Windows XP computer are stored in a SAM File. This file is located on your computer's hard drive in the directory "C:WINDOWSSystem32Config" The file's name is SAM, obviously. Now, you may be thinking, "Wow, this was incredibly easy, I just right click the file, and click send to a floppy or where ever. Well, unfortunately, it isn't that simple. I will detail the various methods of getting the SAM file in the next section.

Section 2 : Obtaining the SAM file
In the previous section, I discussed where the SAM file was found. As you may have found out, when you attempt to copy this file, you get a nasty error saying something along the lines of "Access is denied. File is in use." The SAM file is in use by the system, so you cannot just go to task manager, and end the process. You need to find alternate methods of starting up the computer without using the SAM file. As far as I know, this can be done several ways.

Booting the computer up into Linux using a boot CD or floppy is one method. To use this method, you will need a Linux Boot CD, and access to BIOS. If you don't have access to BIOS then consult one of the many tutorials on the web on how to crack the BIOS password.

To make a bootable Linux CD, you have to find a version of Linux, which can be burned and run off a CD (To find these, consult my links, or search google). This should be relatively easy to find. Next you need some kind of burning software, which allows you to burn an image onto a CD (Consult Links, or search google). This a bit harder to find for free, but a demo works just fine. After you have these, burn the image to the CD. You now have a Linux Boot CD.

Now to alter the BIOS settings, so that you can boot into Linux from the CD. Shut down your computer, and during the start up screen, you should see a notice to press F1 or F8 (Maybe a different key) to enter Boot setup. Press it. This will take you into the BIOS, however, if there is a password on the BIOS, then you have to consult an article about cracking BIOS passwords. Next go to Boot Order and change the CD drive to first. Save your changes, insert your Linux CD and exit. Let the system boot up. It should boot into Linux if you did everything correctly. Now all you have to do is insert a blank floppy, and copy the SAM file to it, since it is not in use anymore because Windows is not running. Congratulations, you now have the SAM file. Be sure to get the SYSTEM file in the same directory as well, as some passwords are encrypted with keys from within that file.

Another, somewhat easier way of obtaining the files is using a MSDOS boot disk. This method doesn't require you to go looking for some software, or using special burning software. Just insert a floppy, right click on it in My Computer, and click on format floppy. When the menu appears, mark the box for "Create a MS-DOS startup boot disk", and then click the start button. After you have made your disk, restart your computer with the disk still in the drive. Make sure you BIOS settings boot from the floppy drive before the hard-drive. When the computer boots, you should se a screen similar to that I command prompt. "A:>" is most likely the prompt you will see. First you need to change drives to the c drive. This is done various ways on different computers. "cd C:" or "C:" usually work. Next you will need to use the copy command to copy the SAM and SYSTEM files to other areas of the hard drive. The syntax for the copy command is as follows without the quotes : "C:Copy (file to be copied) (destination)" so the correct command which will get the file for you is "C:Copy C:WINDOWSSystem32ConfigSAM C:" This will copy the SAM file to the C drive. Replace "SAM" with "SYSTEM" to get the system file. Next you might want to rename these files. This is the syntax for the Rename command : "C:ren (file to be renamed) (new file name)". The command, which will rename your files for you, will be "C:ren C:SAM Whatever" if you saved it to the C drive. This will rename you SAM file to Whatever. Now restart your computer without the boot disk in and start up windows. Copy the files onto a floppy. Note : you may have to zip it as the SYSTEM file is pretty big. The reason these methods work, are because the SAM file is not in use when you aren't running Windows, and when u copied and renamed the file, it did not get used by windows when you logged on. Now on to the easy part, cracking the SAM file.

Section 3 : Cracking the SAM file
There is a wealth of programs available that will crack the SAM file for you. You can also attempt to crack it by hand. I having neither the time nor the skill required to do this, used a program. Some programs I recommend are SAMinside, which unfortunately costs money, Proactive Windows Security Explorer, which actually can import the SAM file from memory, so you will not need to obtain it by yourself if you are doing this on your home computer, and of course CAIN and ABEL will do the trick as well. Most of these programs test about 4 to 5 million passwords per second, at least on my machine, so if the password if below 7 characters, it should be able to crack it in one day. However, if the password is 7 or more characters in length, then it will take a substantial amount of time. When I did this, my password was 7 characters in length and it took my computer just over 3 days to crack it.

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

3 Answers

can remember log on password for windows xp


There are also two tips for you.
The first one is a bit complicated,if you are proficient in Computer,you can have a try.Windows XP' password stored in Windows \ System32 \ Config under the SAM file.Ok,the you may know how to do.
Step 1:Login to a Computer that has Windows XP system.
Step 2:Copy the SAM file to a floppy disk.
Step 3: Then turn to your locked pc and insert the floppy disk Reboot the PC and enter into MS-DOS.
Step 4:In dos,type : del c: windows\system32\config\sam ,then you will delete the SAM file.
Step 5: type : Copy a:\sam c:\ windows\system32\config,copy the other's SAM file to your PC.
The second one is very easy,everyone can understand how to use.What is more,this can 100% help you fully remove the unknown password
Simply go to Windows Password Key website http://www.lostwindowspassword.com to download this tool,it is a power windows password recovery software And most of all, it's the most popular and safe solution for resetting your Windows password until now.
Step 1.You need to login a pc which can link to internet and download the software
Step 2.Prepare a blank CD/DVD or USB flash drive,and intall the program to that pc
Step 3.Run the program and burn to CD/DVD OR USB flash drive
Step 4.Turn to your locked PC,insert the newly create CD or USB to your drive.Reboot the Computer and then follow the instructions,it is very easy to use.

Nov 14, 2010 | Compaq (BA30P-AA) Full Tower Case

4 Answers

forget windowxp password


you can search for a password boot disk which will disable the administrator password.

There are dozens of these types of programs but one program I recommend is windows password reset 6.0
http://www.resetwindowspassword.com

Download the iso file and burn it to a disk to create the boot disk, that simple.

Configure your pc or laptop to boot in the cd drive,

Insert the CD and it would boot then just disable the password and restart.

Took about 5 minutes for the whole process.

Jun 08, 2009 | Dell Dimension 2400 PC Desktop

2 Answers

Where we store the password in windows xp..?


The password is store in the SAM, which is encrypted. If you want to recover a password, you need a password cracker like this


Good luck

Dec 13, 2008 | Microsoft Windows XP Professional With...

3 Answers

Forgot password


hai

do you have win98 cd, if it so boot the machine from the 98 cd,

rename the sam file from the location c:\windows\system32\config

the you can find the SAM file, rename the file to sam.old

Oct 03, 2008 | Microsoft Windows XP Professional With...

Not finding what you are looking for?

297 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...