If you were provided a computer running Windows 2000 or newer and you have no passwords, what method do you use to gain access with administrator privileges so you can use the system?
10 Answers
ophcrack is a live cd that boots and brute-forces passwords on a windows machine. http://ophcrack.sourceforge.net/
-
1The cool thing about ophcrack is that it's based on Rainbow Tables (en.wikipedia.org/wiki/Rainbow_table), which are terrific ! Here's a good article by Jeff Attwood : codinghorror.com/blog/archives/000949.html– paulgregApr 30, 2009 at 12:09
-
+1 for ophcrack, usually takes ~ 5min (most of which is spent booting and loading the rainbow tables into memory) I've not had it fail to provide me with the Administrator password yet– NathanMay 20, 2009 at 16:34
ntpasswd will give you off-line access to the registry and allow you to reset or blank passwords, including the Administrator.
-
3this tool should be recommended for another bonus: it cannot reset the original password, so it cannot be used for illegal activities which include covering the tracks.– lImbusMay 20, 2009 at 14:36
-
@lImbus - Couldn't you just revert the registry keys to the previous values? You'll still never know what the original password was, but you'll still get in and most people will never figure out what happened. Jul 27, 2010 at 16:02
-
Needed to access the local forgotton password on a Windows Server 2008 machine with 4 disk RAID and this worked first time to reset the local admin password. Ophcrack booted but couldn't access the RAID HD. Sep 23, 2011 at 0:24
Boot a linux live cd and use chntpw. I tend to use Fedora for the live cd.
Then:
yum install chntpw
Mount the windows partition:
mkdir /mnt/windows && mount /dev/<windows partition> /mnt/windows
Browse to the SAM database:
cd /mnt/windows/<Windows directory/system32/config
To get a list of local users on the windows machine type:
chntpw -l SAM
Change a particular users password:
chntpw -u <username> SAM
I haven't personally tried Kon-Boot disk yet but it was recommended to me by someone who has. Here's the description off of their site. I'd provide you with a link but apparently Noobs can't do that here. If you just google Kon-Boot you'll find it.
Kon-Boot for Windows enables logging in to any password protected machine profile without without any knowledge of the password. This tool changes the contents of Windows kernel while booting, everything is done virtually - without any interferences with physical system changes. So far following systems were tested to work correctly with Kon-Boot (however its quite possible other versions of listed Windows systems may be suitable as well): Tested Windows versions
Windows Server 2008 Standard SP2 (v.275) Windows Vista Business SP0 Windows Vista Ultimate SP1 Windows Vista Ultimate SP0 Windows Server 2003 Enterprise Windows XP Windows XP SP1 Windows XP SP2 Windows XP SP3 Windows 7
I'd use a boot CD that would let me clear the administrator password. Had to do that with a workstation at church. There are quite a few Live CDs out there for just that if you do a quick GIS.
Do you really need the password?
A possible alternative would be: Add a new disk. Reinstall the OS. Access data from the old disk.
(If you do need the password, I recommend ntpasswd)
If you don't want to change the password:
1 > Get a program called Ophcrack(very large. 496Mb)
2 >> Download the liveCD (ISO)
3 >> Burn the ISO to a CD using an ISO burner
4 >> The Live CD's come with the free rainbow tables, so you might need to download other tables (cost money)
4 >> Bootup from the CD
5 >> Crack the SAM and System file
I used an EBCD boot CD a number of times with success on W2000 machines - you use it to overwrite the SAM entries for the administrator account rather than the usual brute force/dictionary approaches.
I've no the need to try it on newer versions of Windows but I think I read somewhere that security had been tightened up to stop this approach from working.