在ubuntu下修改windows登入密碼

來源:互聯網
上載者:User

原文發表於網易部落格 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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.