ပထမဆံုး Linux Live CD တစ္ခုခုကေန boot လုပ္လုိက္ပါ။
ျပီးသြားရင္ chntpw ဆုိတဲ႔ package ကို သြင္းလုိက္ပါ …
sudo apt-get install chntpw ( For Ubuntu/Debian Users )
အင္တာနက္ access မရိွတဲ႔ ကြန္ျပဴတာ ဆုိရင္ေတာ႔ chntpw packge ကို ၾကိဳတင္ ေဒါင္းလုပ္လုပ္ထားဖုိ႔ လုိပါလိမ္႔မယ္ …
(RPM)
(DEB)
ျပီးရင္ windows installed လုပ္ထားတဲ႔ partition ကို mount လုိက္ပါ …
thura media : sudo mount /dev/sda3/ /media/disk/
ျပီးသြားရင္ windows user accounts settings ေတြ သိမ္းထားတဲ႔ ေနရာကို သြားရပါမယ္။
%systemroot%/system32/config ေအာက္မွာပါ။
cd /media/disk/Windows/System32/config/
Windows က case-sensitive မျဖစ္ေတာ႔ path ေတြက အေျပာင္းအလဲရိွႏူိင္ပါတယ္။
System32/config/ ေအာက္ေရာက္သြားရင္ sam ဆုိတဲ႔ ဖုိင္ကုိရွာ …
thura config : ls -al | grep -i SAM
-rwxrwxrwx 1 root root 262144 2008-12-01 17:05 sam
-rwxrwxrwx 1 root root 1024 2006-11-02 05:35 SAM.LOG
-rwxrwxrwx 2 root root 262144 2008-12-01 17:02 SAM.LOG1
-rwxrwxrwx 2 root root 0 2006-11-02 07:31 SAM.LOG2
-rwxrwxrwx 2 root root 262144 2008-10-18 19:57 sam_previous m
တစ္ခ်ိဳ႔ကြန္ျပဴတာေတြမွာ SAM တစ္ခ်ိဳ႕မွာ sam ျဖစ္ေနတတ္ပါတယ္ …
SAM ဆုိေအာက္ကဟာေတြမွာ SAM ကိုသုံး … sam ဆုိ sam ကိုသံုး …
ပထမဦးဆံုး user စာရင္းကို ၾကည္႔ရေအာင္ ….
thura 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 0×10000 is not ‘hbin’, assuming file contains garbage at end
File size 262144 [40000] bytes, containing 7 pages (+ 1 headerpage)
Used for data: 244/52120 blocks/bytes, unused: 17/9096 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 | Thura | ADMIN | |
Vista မွာ admin account က Default Disabled လုပ္ထားပါတယ္ … ပထမဆံုး unlocked လုပ္ဖုိ႔လုိပါတယ္။
thura 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 0×10000 is not ‘hbin’, assuming file contains garbage at end
File size 262144 [40000] bytes, containing 7 pages (+ 1 headerpage)
Used for data: 244/52120 blocks/bytes, unused: 17/9096 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 | Thura | 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×0211 =
[X] 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: 1
- – - – 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 [probably locked now]
q – Quit editing user, back to user select
Select: [q] > 4
Unlocked!
Hives that have changed:
# Name
0
Write hive files? (y/n) [n] : y
0 – OK
thura 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 0×10000 is not ‘hbin’, assuming file contains garbage at end
File size 262144 [40000] bytes, containing 7 pages (+ 1 headerpage)
Used for data: 244/52120 blocks/bytes, unused: 17/9096 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 | Thura | 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: 1
- – - – 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
Password ကို ျပင္လုိ႔ ရေပမဲ႔ recommmend မလုပ္ပါဘူး … တစ္ခါတစ္ေလ Vista နဲ႔ ျပႆနာရိွတတ္လုိ႔ပါ။
Select: [q] > 1
Password cleared!
Hives that have changed:
# Name
0
Write hive files? (y/n) [n] : y
0 – OK
တစ္ျခားအေကာင္႔ passwords ေတြကိုလည္း ထုိနည္းအတုိင္း လြယ္လင္႔တကူ ျပင္ႏူိင္ပါတယ္။
ဥပမာ
chntpw -u Thura sam
0 comments:
Post a Comment