Files
tldr/pages.zh/linux/chntpw.md

17 lines
492 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# chntpw
> 一个可以编辑Windows注册表、重置用户密码、通过修改Windows SAM来提升用户为管理员的工具。
> 使用类似Kali Linux的启动光盘启动目标机器并以提升的权限运行。
> 更多信息:<https://pogostick.net/~pnh/ntpasswd>。
- 列出SAM文件中的所有用户
`chntpw -l {{path/to/sam_file}}`
- 交互式编辑用户:
`chntpw -u {{username}} {{path/to/sam_file}}`
- 交互式使用chntpw
`chntpw -i {{path/to/sam_file}}`