中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-25 19:43
47,812 topics / 349,910 posts / today 0 new / 48,263 members
其它操作系统综合讨论区 » Forgot the password to get into 2000? [Help]
Printable Version  1,109 / 3
Floor1 悠闲道士 Posted 2003-06-08 00:00
初级用户 Posts 8 Credits 139
I forgot my password. I heard that if you boot with the WINDOWS2000 CD, then call up the console, you can use the NET USER command to add a user and password and then get in. How do I do that?
How do I call up the console?
Floor2 ko20010214 Posted 2003-06-08 00:00
版主 Posts 1,628 Credits 7,296
If the system partition is FAT, just delete the C:\winnt\system32\config\sam*.* file under DOS to obtain
administrator privileges. To log in, just enter administrator and leave the password blank. Then create a new one.
If it is an NTFS partition, go download NTFSDOS, then you can use DOS to access ntfs.
Floor3 ko20010214 Posted 2003-06-08 00:00
版主 Posts 1,628 Credits 7,296
If a user accidentally forgets the password and is unable to log into Windows2000, just boot the computer with a boot disk or boot into another operating system (for example, if the computer has a dual-boot setup with Win98 and Win2000 installed), find the folder “X:\Documents and Settings\Administrator” (X is the drive letter of the disk where Windows2000 is located), delete the “Cookies” folder under this folder, then restart the computer, and you can quickly log into Windows2000 with a blank password. For safety, the user can reset each user's password afterward.
If it is an NTFS partition, go download NTFSDOS, then you can use DOS to access ntfs
Floor4 ko20010214 Posted 2003-06-08 00:00
版主 Posts 1,628 Credits 7,296
I don't know what format your win2000 is using. If, like mine, it uses FAT32, then it's easy: boot with a win98 startup disk, copy out winnt\system32\config\SAM., and use the l0phtcrack tool on it. If the admin password was set simply,
it will be recovered very quickly.

If your win2000 uses ntfs format, you can copy the ntfsdos tool onto a dos boot disk. After booting, you can also grab winnt\system32\config\SAM. and use l0phtcrack on it.

I heard you still have a guest account you can use. If this machine is connected to a network, you can try a program aimed at the Win2000 NetDDE message privilege escalation vulnerability. Since my win2000 has always been used as a standalone machine, I never had a chance to try it. See here.
http://security.nsfocus.com/showQuery.asp?bugID=1240

Some time ago I saw a technician at a security company in Beijing write a program targeting a name pipe vulnerability in winnt. The program can masquerade as a system service program and read and write the parts of the registry that only system has permission to read and write. First go to my homepage and download a program
http://www.tengzhen.com/freesky/tools/service.zip extract it as service.exe. After you log in with guest, run service.exe /install, and the program will register itself as a win2000 service program. The service name is testserver, and you can see this service in the service manager. After the next reboot, this service will copy the system administrator's attributes to guest, so guest becomes a member of administrators and has administrator privileges.

If your guest account is also disabled, then here's the most ruthless move, a method I discovered a long time ago. Install another win2000. I succeeded with this, it can work! Note that you must first back up the boot sector mbr information. There are many ways, for example KV300. If you understand assembly, you can read an article of mine, "How to Low-Level Format a Hard Disk and Back Up mbr with debug". This new win2000 must not be installed on the same drive as the original one. If your original win2000 is on C:, then install the new one on D:, and the hard disk format must be the same as the original. After installation, log in with admin. Now you have absolute write permission to the original win2000. You can grab the original SAM and run it, and even more, you can take all the files in the new
d:\winnt\system32\config\ and overwrite them into the
c:\winnt\system32\config\ directory, then use kv300 to restore the previous mbr. Now you can log into the old win2000 as admin.
(If reposting this method, please indicate the source as: http://ttfreesky.126.com)
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023