Reset Windows 7 passwords with Linux Ubuntu
(Applicable to older windows ver. too )
Have you experienced the tragedy of forgotten passwords to log into your windows 7? prior to re-install can be tried by using the tools on ubuntu linux system whose name chntpw, the main requirement is that you understand a little about Linux and the CLI have a LiveCD Linux Ubuntu (any version).
Steps you can do is:
- Booting the PC / laptop using the Ubuntu Linux LiveCD
- Select Menu Run Ubuntu Linux without installation.
- On the Desktop in the Places menu Select Windows to the System Drive can be mounted so.
- Update the repository with: root@ubuntu: apt-get update
- Install the package chntpw way: root@ubuntu: apt-get install chntpw and let the installation process to complete.
- Log into the CLI in Application – Accessories – Terminal and select: / Windows/System32/config following manner:
root@ubuntu: cd/media/[name of the windows partition/Drive C:]/Windows/System32/config
7. View user who is in her windows by running:
root@ubuntu:/media/187823A87823839A/Windows/System32/config# chntpw -l SAM
chntpw version 0.99.5 070923 (decade), (c) Petter N Hagen
Hive name (from header): <SystemRootSystem32ConfigSAM>
ROOT KEY at offset: 0×001020 * Subkey indexing type is: 666c
Page at 0xf000 is not 'hbin', assuming file contains garbage at end
File size 262144 [40000] bytes, containing 6 pages (+ 1 headerpage)
Used for data: 247/52256 blocks/bytes, unused: 9/4896 blocks/bytes.* SAM policy limits:
Failed logins before lockout is: 0
Minimum password length : 0
Password history count : 0
| RID -|———- Username ————| Admin? |- Lock? –|
| 01f4 | Administrator | ADMIN | *dis/lock* |
| 01f5 | Guest | | dis/lock |
| 03e8 | totti | ADMIN | *dis/lock* |
In the top menu for the user Administrator and Totti in the status dis / lock -disable/lock, never to be edited please is enabled by selecting the first number four on the menu:
- – – – User Edit Menu:
1 – Clear (blank) user password
2 – Edit (set new) user password (careful with this on XP or Vista)
3 – Promote user (make user an administrator)
4 – Unlock and enable user account [seems locked ]
q – Quit editing user, back to user select
after that it commands the road: chntpw SAM-u Administrator to change the administrator password.
root@ubuntu:/media/187823A87823839A/Windows/System32/config# chntpw -u Administrator SAM
chntpw version 0.99.5 070923 (decade), (c) Petter N Hagen
Hive name (from header): <SystemRootSystem32ConfigSAM>
ROOT KEY at offset: 0×001020 * Subkey indexing type is: 666c
Page at 0xf000 is not 'hbin', assuming file contains garbage at end
File size 262144 [40000] bytes, containing 6 pages (+ 1 headerpage)
Used for data: 247/52256 blocks/bytes, unused: 9/4896 blocks/bytes.* SAM policy limits:
Failed logins before lockout is: 0
Minimum password length : 0
Password history count : 0
| RID -|———- Username ————| Admin? |- Lock? –|
| 01f4 | Administrator | ADMIN | *BLANK* |
| 01f5 | Guest | | dis/lock |
| 03e8 | totti | ADMIN | |———————> SYSKEY CHECK <———————– SYSTEM SecureBoot : -1 -> Not Set (not installed, good!)
SAM AccountF : 0 -> off
SECURITY PolSecretEncryptionKey: -1 -> Not Set (OK if this is NT4)
Syskey not installed!RID : 0500 [01f4]
Username: Administrator
fullname:
comment : Built-in account for administering the computer/domain
homedir :User is member of 1 groups:
00000220 = Administrators (which has 2 members)Account bits: 0×0210 =
[ ] Disabled | [ ] Homedir req. | [ ] Passwd not req. |
[ ] Temp. duplicate | [X] Normal account | [ ] NMS account |
[ ] Domain trust ac | [ ] Wks trust act. | [ ] Srv trust act |
[X] Pwd don't expir | [ ] Auto lockout | [ ] (unknown 0×08) |
[ ] (unknown 0×10) | [ ] (unknown 0×20) | [ ] (unknown 0×40) |Failed login count: 0, while max tries is: 0
Total login count: 4
** No NT MD4 hash found. This user probably has a BLANK password!
** No LANMAN hash found either. Sorry, cannot change. Try login with no password!- – – – User Edit Menu:
1 – Clear (blank) user password
2 – Edit (set new) user password (careful with this on XP or Vista)
3 – Promote user (make user an administrator)
(4 – Unlock and enable user account) [seems unlocked already]
q – Quit editing user, back to user select
Please select whether to clear the password or create a new passwd.
Please select whether to clear the password or create a new passwd.
Once completed please exit and unmount the windows partition had been hand-picked by Places and restart the PC and go into Windows it, please go to the windows with a new password or no password, here I select blankpassword.

0 comments:
Post a Comment