在ubuntu下修改windows登录密码

简介:

原文发表于网易博客 2011-02-27 23:16:29

sudo apt-get install chntpw

mount /dev/sda1 /mnt/c/

cd /mnt/c/WINNT/system32/config

chntpw SAM #查看sam文件

chntpw –u username SAM选中某个要修改密码的用户

chntpw的帮助手册--转自 http://www.allguru.net/security/reset-windows-password-chntpw/ 
Reset Windows Password Using Chntpw 
chntpw is a Windows NT 2K XP user password tool for delete passwords and restrictions from SAM database on installed system. 
This tools does not brute force password but only delete passwords and restrictions for Administrators and simple user in SAM database. 
To erase password use a script to search NTFS drives from your XP to mount your partition. 
Deleting the password will enable you to login to the system without a password, but it will not give you access to any encrypted data on the system.

NAME 
chntpw – utility to overwrite Windows NT/2000 SAM passwords 
SYNOPSIS 
chntpw [options] [systemfile] [securityfile] [otherreghive] [...] 
DESCRIPTION 
This manual page documents briefly the chntpw command. This manual page was written for the Debian distribution because the original program does not have a manual page. chntpw is a utility to view some information and change user passwords in a Windows NT/2000 SAM userdatabase file. It is not necessary to know the old passwords to reset them. In addition it contains a simple registry editor (same size data writes) and hex-editor with which the information contained in a registry file can be browsed and modified.

OPTIONS 
-h 
Show summary of options. 
-u username 
Username to change. Default is Administrator 
-l 
List all users in the SAM database. 
-i 
Interactive: list all users (as per -l) and then ask for the user to change. 
-e 
Registry editor with limited capabilities. 
-d 
Use buffer debugger. 
-t 
Show hexdumps of structs/segments (deprecated debug function).

EXAMPLES

chntpw sam system 
Opens registry hives sam and system and change administrator account. This will work even if the name has been changed or it has been localized (since different language versions of NT use different administrator names). 
chntpw -u jabbathehutt mysam 
Prompts for password for jabbathehutt and changes it in the mysam registry file, if found (otherwise do nothing)

SEE ALSO 
If you are looking for an automated procedure for password recovery, you might look at the bootdisks provided by the upstream author at http://home.eunet.no/~pnordahl/ntpasswd/ 
There is more information on how this program works available at /usr/share/doc/chntpw registry works, what are syskeys and some other issues.

AUTHOR 
This manual page was written by Javier Fernandez-Sanguino Pe?a , for the Debian GNU/Linux system (but may be used by others).

 

    2011-05-25 21:59 
    ubuntu 11.04已经出来了,可惜我还是没有用ubuntu.



本文转自leipei博客园博客,原文链接:http://www.cnblogs.com/leipei2352/archive/2011/05/25/2057410.html,如需转载请自行联系原作者

目录
相关文章
|
30天前
|
Ubuntu Linux 数据安全/隐私保护
Windows11 使用 WSL2部署Ubuntu
在管理员PowerShell中运行命令启用Windows子系统Linux和虚拟机平台,但安装Ubuntu时遇到错误。解决方法是下载NoLsp_fix_WSL2工具,以管理员权限进入其目录,使用工具指向WSL的路径(例如 `C:\windows\system32\wsl.exe`)进行修复,然后能成功打开Ubuntu。
37 4
|
1月前
|
安全 数据安全/隐私保护 Windows
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
|
1月前
|
Ubuntu 关系型数据库 MySQL
使用Ubuntu和Windows电脑实现Mysql主从同步(详细操作步骤)
使用Ubuntu和Windows电脑实现Mysql主从同步(详细操作步骤)
28 2
|
3月前
|
Ubuntu 关系型数据库 MySQL
百度搜索:蓝易云【ubuntu下Mysql安装与root密码重置教程】
请注意,以上步骤是针对Ubuntu系统的。如果你使用的是其他Linux发行版,请相应地调整命令。
110 1
|
3月前
|
Ubuntu 网络安全 数据安全/隐私保护
百度搜索:蓝易云【Ubuntu实现免密登录设置教程】
完成以上步骤后,你将可以在客户端无需输入密码即可登录到服务器。请确保公钥已经正确复制到服务器,并妥善保管私钥,以确保安全性。
24 0
|
3月前
|
Ubuntu 网络协议 Linux
如何在无公网IP环境使用Windows远程桌面Ubuntu
如何在无公网IP环境使用Windows远程桌面Ubuntu
61 0
|
3月前
|
Ubuntu Linux Windows
两种Ubuntu和Windows互相共享文件夹的方法
两种Ubuntu和Windows互相共享文件夹的方法
|
3月前
|
Ubuntu Shell 数据安全/隐私保护
百度搜索:蓝易云【Ubuntu密码忘记怎么办 Ubuntu重置root密码方法】
完成上述步骤后,Ubuntu系统的root密码应该已经被成功重置为你设置的新密码。请确保在重置密码后牢记新密码。
50 0
|
1月前
|
弹性计算 安全 数据安全/隐私保护
远程桌面连接Windows实例,提示“为安全考虑,已锁定该用户账户,原因是登录尝试或密码更改尝试过多”错误解决方案
远程桌面连接Windows实例,提示“为安全考虑,已锁定该用户账户,原因是登录尝试或密码更改尝试过多”错误解决方案
175 0
|
2月前
|
Ubuntu Linux Docker
体验ubuntu,windows双系统
体验ubuntu,windows双系统