Results 1 to 4 of 4

Thread: Windows Password Recovery

  1. #1
    Join Date
    Sep 2003
    Posts
    3,040

    Default Windows Password Recovery

    Here is a way to get your windows XP password back. Be warned, it involves a lot of time and patience. I would only recommend doing this if absolutely no other options appear to be forthcoming. You will need to have admin access to a machine other than the one you are recovering the passwords from.

    First of all, you need to create a windows 98 boot disk (make sure it has the OEM ram drive configuration), there are websites out there (I recommend http://www.bootdisk.com/bootdisk.htm) where you can download the correct files. A normal windows XP startup disc won't do, as it doesn’t contain autoexec.bat or system.ini or all those goodies. A side note about this boot disk configuration: If you want to increase the size of your ram disk, you can edit the config.sys file (sometimes it will be hidden, you may have to change your folder view properties to show hidden files). Start -> Run -> type “cmd” and hit enter -> change to your floppy drive -> type “edit config.sys” -> go to line 31 and change the “2048” to whatever you want (should be at least double – 4096) -> file -> save -> exit.

    You'll also need a copy of command-line PKZIP on a floppy (download from http://www.pcworld.com/downloads/fi...fid,1233,00.asp)

    Besides having PKZIP on a floppy, you’ll also need a utility that allows you to read NTFS formatted files from FAT16 or FAT32 file systems. A good utility for this is NTFSDOS (Info about NTFSDOS can be found at http://www.sysinternals.com/ntw2k/f.../ntfsdos.shtml, this page also contains a download link at the bottom)

    Boot into DOS, it may ask you if you want to boot with CD-ROM support or not, it doesn’t really matter what you pick. Once you get to a command prompt, you’ll want to run NTFSDOS. You can now browse your NTFS formatted partition. Go to the partition with windows installed on it, and browse to c:\windows\system32\config. In this folder, there will be some files; however, only two files are of concern to us: SAM and SYSTEM (the two without any file extensions, such as .log or .sav).

    The reason why we had to boot into DOS and do all this NTFSDOS stuff is because Windows keeps these two files locked once you start it up. If you’re in windows and try to copy, open, or do anything to these files, you will notice that you’re not allowed. The SAM file (Security Accounts Manager) is an encrypted file that stores password hashes for all local computer accounts. It would be easier if all we needed was this file, as it will easily fit onto one floppy disk, but we need the SYSTEM file in order to correctly extract the password hashes from the SAM file later on.

    What I usually do now is copy these two files to my ram drive. Then I run PKZIP on the SYSTEM file so that it will fit on a floppy disk. If you need help zipping the file, PKZIP should have a help section that shows you the proper syntax. I believe the syntax is: pkzip targetfilepath sourcefilepath
    You should now be able to fit the SAM file and the zipped SYSTEM file onto a floppy disk. Do so, and then reboot your computer.

    Assuming that most of you will be doing this to recover your own passwords, this is the part where you will need for find yourself a good friend who will let you use his computer for a couple days, or you will need to use another computer that you may have at home (one that you can log in to). You will need to have admin privileges on this computer.

    First, install SAMInside (The demo is available at http://www.sharewareorder.com/SAMIns...load-19325.htm)

    Then install a version of lophtcrack or LC3 (essentially the same programs), available at http://www.atstake.com. I’m not too sure whether you need to buy the full version or whether you can do this with the demo, as I have the full version and have never used the demo.

    Remember to extract the SYSTEM file out of your zipped file from the floppy before you run SAMInside, because you’ll need the unzipped version.

    Run SAMInside -> file -> import SAM file -> locate and select the one you have on your floppy disk -> it will prompt you for your SYSTEM file, locate and select the SYSTEM that you extracted from your PKZIP version. It will do some processing, shouldn’t take too long though. After this has finished, you’ll need to export the data as a PWDUMP file.

    Open up LC3 or lophtcrack and import/open the PWDUMP file you created using SAMInside. Depending on how hard you made the password to crack (using &, @, other symbols) you’ll have to adjust the brute force settings to allow for extra characters/symbols. You then start the cracking!

    If you use LC3 I know you can pause the session and save it, which is useful if you have other things to do besides let your computer run brute force for a couple days. I know one system I used this method on took 2 days, 17 hours to crack the admin password! One character at a time, LC3 should decipher the password(s). I usually only worry about the admin password or actual user passwords, some of the others accounts don’t really matter.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  2. #2
    Join Date
    Oct 2004
    Posts
    1

    Default thanks

    too good admin. you really have very good knowledge about the IT software.. thanks a lot for the information provided.

    cheers

  3. #3
    Join Date
    Oct 2004
    Posts
    33

    Default

    rather than actually recovering your pasword it is possible just to delete the sam file and reset the password, though this can't be done while you are using windows.. if your drives are fat32 you can use a dos boot disk to delete the sam file, if they're ntfs you'll need a copy of ntfsdos pro, it's basically dos except that it can read ntfs... alternatively you could use a linux live cd. Chntpw is a bootable linux floppy which is used specifically for reseting windows passwords, very useful if you forget your password

  4. #4
    Join Date
    Nov 2004
    Location
    fremont, CA, USA
    Posts
    20

    Default NTFS TOO

    I've had this happen to a friend who received a PC from someone, and didn't have the password to login. He had NTFS, and it was a pain. But thanks to piece of software called NTFSPRO, we can modify files in windows through a simple bootdisk, and the password was reset using the method mentioned above.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •