首页 > 数据库 > 数据库开发技术 > Kali 更改 Windows 密码
chntpw是一个Kali Linux工具,可用于编辑Windows注册表,重置用户密码,将用户提升为管理员,以及其他几个有用的选项。使当您不知道Windows密码是什么时,可以利用chntpw对其修改。用户数据库文件中的某些信息和更改用户密码,通常位于 Windows 文件系统上的\WINDOWS\system32\config\SAM。
chntpw -hchntpw: change password of a user in a Windows SAM file,or invoke registry editor. Should handle both 32 and 64 bit windows andall version from NT3.x to Win8.1chntpw [OPTIONS] <samfile> [systemfile] [securityfile] [otherreghive] [...]-h This message-u <user> Username or RID (0x3e9 for example) to interactively edit-l list all users in SAM file and exit-i Interactive Menu system-e Registry editor. Now with full write support!-d Enter buffer debugger instead (hex editor),-v Be a little more verbose (for debuging)-L For scripts, write names of changed files to /tmp/changed-N No allocation mode. Only same length overwrites possible (very safe mode)-E No expand mode, do not expand hive file (safe mode)
用U盘安装kali,并启动启动。将 Sam 文件复制到kali 桌面,或者用U盘启动工具复制Sam文件到U盘,然后在复制到kali中。
chntpw –l <sam file>chntpw –u <user> <sam file>键入与我们所需任务相对应的数字即可。在这里,我们正在更改密码。因此,键入"2"。
然后,该工具将要求键入新密码。只需键入它,然后按回车键。然后它会询问我们是否要保存密码。按 y保存新密码。现在,我们便更改了 SAM 文件中的密码。
转载是一种动力 分享是一种美德

动动小手 点个【在看】再走

原文作者:Kali笔记;如有侵权,请联系管理员删除。