2006年12月12日 15:19
Forgot your NT admin password?
Reinstall? Oh no... But not any more...
--------------------------------------------------------------------------------
This is a utility to (re)set the password of any user that has a valid (local) account on your NT system.
You do not need to know the old password to set a new one.
It works offline, that is, you have to shutdown your computer and boot off a floppydisk or CD. The bootdisk includes stuff to access NTFS and FAT/FAT32 partitions and scripts to glue the whole thing together.
Will detect and offer to unlock locked or disabled out user accounts!
It is also an almost fully functional registry editor!
NT stores its user information, including crypted versions of the passwords, in a file called 'sam', usually found in \winnt\system32\config. This file is a part of the registry, in a binary format previously undocumented, and not easily accessible. But thanks to a German(?) named B.D, I've now made a program that understands the registry. As far as I know, Microsoft provides no way of changing the password if you cannot log in as someone with appropriate privileges, except restoring the registry files from the rescuefloppy.
You don't forget passwords?
You never get boxes to admin when someone quits suddenly?
Your vendor delivers a preconfigured system to you, but never have "freak" accidents and lose the password they've set on it?
If so, what are you doing reading this?? Go read propaganda from your favourite software vendor instead.
--------------------------------------------------------------------------------
Offline NT Password & Registry Editor, Bootdisk / CD
--------------------------------------------------------------------------------
Note july 2005: I have problems catching up with my mail for the last 2-3 months, and will probably have more problems for a few months more. You may get late response, or no response at all if you mail me. Sorry!
I've put together a single floppy or CD which contains things needed to edit the passwords on most systems.
The bootdisk supports standard (dual)IDE controllers (built in), a lot of SATA-controllers, and most SCSI-controllers with the drivers supplied in a seperate archive below. PS/2 keyboard or USB-keyboard supported (mouse not required) It does not need any other special hardware, it will run on 486 or higher, with at least 32MB (I think) ram or more. Unsupported hardware: MCA, EISA, i2o may not work.
Tested on: NT 3.51, NT 4 (all versions and SP), Windows 2000 (all versions), Windows XP (all versions, also SP2), Windows Server 2003 (at least Enterprise).
DANGER WILL ROBINSON!
If used on users that have EFS encrypted files, and the system is XP, all encrypted files for that user will be UNREADABLE! and cannot be recovered unless you remember the old password again If you don't know if you have encrypted files or not, you most likely don't have them. (except maybe on corporate systems)
Please see the Frequently Asked Questions and the version history below before emailing questions to me. Thanks!
Also take a look at Grenier's DOS port
How to fix it if you lost your admin password for your ActiveDirectory. Thanks to John Simpson.
Other ways to recover lost password etc at MCSE World
--------------------------------------------------------------------------------
How to use?
Yes, long text. Please read it all and the FAQ before mailing me questions
If you have the CD, all drivers are included. If you use the floppy, and you need the SCSI-drivers set, either prepare a floppy with the scsi-drivers .zip file unzipped (in \scsi), or put a selection of the drivers you need in the \scsi folder on the main floppy, there should be enough space for maybe a couple of drivers. In the latter case you don't need to carry around and swap floppies.
Overview
Disk select, tell which disk contains the Windows system. Optionally you will have to load drivers.
PATH select, where on the disk is the system?
File select, which parts of registry to load, based on what you want to do.
Password reset or other registry edit.
Write back to disk (you will be asked)
DON'T PANIC!! - Most questions can usually be answered with the default answer which is given in [brackets]. Just press enter/return to accept the default answer.
1. DISK SELECT
Which disk contains your Windows system?
=========================================================
. Step ONE: Select disk where the Windows installation is
=========================================================
Disks:
Disk /dev/ide/host0/bus0/target0/lun0/disc: 2147 MB, 2147483648 bytes
NT partitions found:
1 : /dev/ide/host0/bus0/target0/lun0/part1 2043MB Boot
Please select partition by number or
a = show all partitions, d = automatically load new disk drivers
m = manually load new disk drivers
l = relist NTFS/FAT partitions, q = quit
Select: [1]
For most machines only one disk and parition is listed, if so, just go with selection 1 (default)
Otherwise select partition
If no disks or not all disks are shown, you may need to load disk drivers, for SCSI-controllers (or some IDE-raid controllers). Select d to go to the driver select menu for auto-probe (based what's found on the PCI bus)
If auto-probe won't work, you may have to load something manually, select m to do that (like the old system)
2. HOW TO MANUALLY LOAD DRIVERS
Try auto-probe (d) first, only do this if you have to manually try to load some or all drivers.
Select: [1] m
==== DISK DRIVER / SCSI DRIVER select ====
You may now insert or swap to the SCSI-drivers floppy
Press enter when done:
Found 1 floppy drives
Found only one floppy, using it..
Selected floppy #0
Mounting it..
Floppy selection done..
SCSI-drivers found on floppy:
1 BusLogic.o.gz
2 aic7xxx.o.gz
3 sym53c8xx.o.gz
[ ... ]
SCSI driver selection:
a - autoprobe for the driver (try all)
s - swap driver floppy
q - do not load more drivers
or enter the number of the desired driver
SCSI driver select: [q]
Select a for auto-probe, it will try to load all drivers, and stop when one loads properly. Some drivers may need more driver modules, so you may have to redo the auto-probe several times.
Or if you know what you want, just enter it's number or name.
SCSI driver select: [q] a
[ BusLogic.o.gz ]
Using /tmp/scsi/BusLogic.o
PCI: Found IRQ 11 for device 00:10.0
[.... lots of driver / card info ...]
scsi0: *** BusLogic BT-958 Initialized Successfully ***
scsi0 : BusLogic BT-958
Vendor: FooInc Model: MegaDiskFoo Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
[ ... ]
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 8388608 512-byte hdwr sectors (4295 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
Driver BusLogic.o.gz loaded and initialized.
You may then quit the selection with q or try for more drivers.
When you quit, you will get back to the disk select (see above) and hopefully see more disks.
3. PATH AND FILE SELECT
Where's the Windows system located?
On the selected partition/disk, the main files for windows can theoretically be anywhere. And we must find the registry files to be able to edit them. There are however some usual places:
winnt35/system32/config - Windows NT 3.51
winnt/system32/config - Windows NT 4 and Windows 2000
windows/system32/config - Windows XP/2003 and often Windows 2000 upgraded from Windows 98 or earlier.
These usual paths will be checked, and if found, they will be suggested as the default.
Selected 1
Mounting on /dev/ide/host0/bus0/target0/lun0/part1
NTFS volume version 3.1.
Filesystem is: NTFS
=========================================================
. Step TWO: Select PATH and registry files
=========================================================
What is the path to the registry directory? (relative to windows disk)
[windows/system32/config] :
-r-------- 1 0 0 262144 Jan 12 18:01 SAM
-r-------- 1 0 0 262144 Jan 12 18:01 SECURITY
-r-------- 1 0 0 262144 Jan 12 18:01 default
-r-------- 1 0 0 8912896 Jan 12 18:01 software
-r-------- 1 0 0 2359296 Jan 12 18:01 system
dr-x------ 1 0 0 4096 Sep 8 11:37 systemprofile
-r-------- 1 0 0 262144 Sep 8 11:53 userdiff
Select which part of registry to load, use predefined choices
or list the files with space as delimiter
1 - Password reset [sam system security]
2 - RecoveryConsole parameters [software]
q - quit - return to previous
[1] :
If the directory is correct, something like the above will be listed (it may vary a bit..)
You may then choose some canned answers based on what you want to do.
Password reset is the default, and most used.
Option 2, RecoveryConsole is for setting 2 parameters that the Windows 2000 and newer RecoveryConsole (boot from CD, select Recovery and console mode) uses. One of the parameters allows RecoveryConsole to be run without it prompting for the admin password. If you do not know what RecoveryConsole is, don't bother. Or go search the net..
Or if you want to do manual edit of registry, select your hives to load. Enter all names on one line with space between.
We select 1 to edit passwords..
4. PASSWORD RESET
Everything is set and ready, let's roll!
=========================================================
. Step THREE: Password or registry edit
=========================================================
chntpw version 0.99.2 040105, (c) Petter N Hagen
[.. some file info here ..]
* SAM policy limits:
Failed logins before lockout is: 0
Minimum password length : 0
Password history count : 0
<>========<> chntpw Main Interactive Menu <>========<>
Loaded hives: <sam> <system> <security>
1 - Edit user data and passwords
2 - Syskey status & change
3 - RecoveryConsole settings
- - -
9 - Registry editor, now with full write support!
q - Quit (you will be asked if there is something to save)
我们推荐您
快去试试吧!
教你设置一个隐形密码
liunx,unix,bsd压缩解压


内文分页: [1] 




