Reset Password Windows
#1
Disini saya menggunakan backtrack 5. Buka chntpw dan masukan perintah berikut

Code:
chntpw -i /drive/C/Windows/System32/config/SAM

oh iya, harus ditambahkan "./" tanpa tanda " " jangan lupa di enter ya

dan untuk alamat drive tergantung dari di mana kita me-mount-nya.

Kemudian akan muncul pertanyaan:
Quote:"What to do? ->" isikian 1 dan enter

Select: ! - quit, . - list users, 0x<RID> - User with RID (hex)

or simply enter the username to change: [Administrator] n3f21t (nama user account yang akan diedit)

Lalu pada User Edit Menu: (nah disini kita akan mengedit user yang kita pilih tadi)

Select: > 2

New Password:___ (di-coloum ini kita diminta mengisikan password)

Jika sudah tinggal quit and save

Reboot dan boot di drive windows-nya dan login dengan password yang baru kita edit tadi.



Contohnya ini yang saya copy and paste dari terminal

Code:
root@bt:/pentest/passwords/chntpw# ./chntpw -i /media/C_sys/Windows/System32/config/SAM

Quote:chntpw version 0.99.6 100627 (vacation), © Petter N Hagen

Hive </media/C_sys/Windows/System32/config/SAM> name (from header):

<\SystemRoot\System32\Config\SAM>

ROOT KEY at offset: 0x001020 * Subkey indexing type is: 666c <lf>

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/52224 blocks/bytes, unused: 8/4928 blocks/bytes.

* SAM policy limits:
Failed logins before lockout is: 0
Minimum password length : 0
Password history count : 0


<>========<> chntpw Main Interactive Menu <>========<>

Loaded hives: </media/C_sys/Windows/System32/config/SAM>


1 - Edit user data and passwords

- - -

9 - Registry editor, now with full write support!

q - Quit (you will be asked if there is something to save)

What to do? [1] -> 1

Quote:===== chntpw Edit User Info & Passwords ====

| RID -|---------- Username ------------| Admin? |- Lock? --|

| 01f4 | Administrator | ADMIN | dis/lock |

| 01f5 | Guest | | dis/lock |

| 03e8 | n3f21t | ADMIN | |

Select: ! - quit, . - list users, 0x<RID> - User with RID (hex)

or simply enter the username to change: [Administrator] nf21t

Cannot find value <\SAM\Domains\Account\Users\Names\nf21t\@>

Select: ! - quit, . - list users, 0x<RID> - User with RID (hex)

or simply enter the username to change: [Administrator] n3f21t

RID : 1000 [03e8]

Username: n3f21t

fullname:

comment :

homedir :

User is member of 1 groups:

00000220 = Administrators (which has 2 members)

Account bits: 0x0214 =

[ ] Disabled | [ ] Homedir req. | [X] 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 0x08) |

[ ] (unknown 0x10) | [ ] (unknown 0x20) | [ ] (unknown 0x40) |

Failed login count: 0, while max tries is: 0

Total login count: 65

Quote:- - - - 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

Select: [q] > 2

New Password: ,.,

Password changed!

Select: ! - quit, . - list users, 0x<RID> - User with RID (hex)

or simply enter the username to change: [Administrator] n3f21t

RID : 1000 [03e8]

Username: n3f21t

fullname:

comment :

homedir :

User is member of 1 groups:

00000220 = Administrators (which has 2 members)

Account bits: 0x0214 =

[ ] Disabled | [ ] Homedir req. | [X] 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 0x08) |

[ ] (unknown 0x10) | [ ] (unknown 0x20) | [ ] (unknown 0x40) |


Failed login count: 0, while max tries is: 0

Total login count: 65

Quote:- - - - 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

Select: [q] > q


Select: ! - quit, . - list users, 0x<RID> - User with RID (hex)
or simply enter the username to change: [Administrator] q
Cannot find value <\SAM\Domains\Account\Users\Names\q\@>
Select: ! - quit, . - list users, 0x<RID> - User with RID (hex)
or simply enter the username to change: [Administrator] !


<>========<> chntpw Main Interactive Menu <>========<>


Loaded hives: </media/C_sys/Windows/System32/config/SAM>


1 - Edit user data and passwords

- - -

9 - Registry editor, now with full write support!

q - Quit (you will be asked if there is something to save)

What to do? [1] -> q

Hives that have changed:
# Name

0 </media/C_sys/Windows/System32/config/SAM>

Write hive files? (y/n) [n] : y

0 </media/C_sys/Windows/System32/config/SAM> - OK

Note:
Ane rapihin ya bro
Konspirasi

#2
Mantab!
heking wedus Tongue
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#3
bisa digunakan dalam jaringan?

#4
(10-07-2011, 08:00 PM)junior.riau18 Wrote: bisa digunakan dalam jaringan?

hmm logikanya sih bisa...
dengan masuk ke direktori jaringan tsb.
Namun yang masih blm saya ketahui adalah, apakah network / LAN bisa terdeteksi di backtrack? soalnya saya belum pernah mencobanya.

Jadi kita masuk ke dir. lalu ganti perintah perintah diatas deh
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#5
Nice Share!
Aku Pelajari Dulu Ya Om...
root@nosetrave:~# ./plagiat.sh
English motherfucker, do you speak it ?
root@nosetrave:~#


#6
(10-07-2011, 08:00 PM)junior.riau18 Wrote: bisa digunakan dalam jaringan?

asal bisa terkoneksi dan bisa membaca file di dalam folder windows/system32/config/ sih seharusnya bisa bro

tapi cara ini ane pake dengan live usb atau live dvd BT buat reset password windows yg kena virus atau usernya lupa, jadi harus di pc/laptopnya langsung

#7
Hmmm di ane apa yang salah ya...

Spoiler! :
Code:
deprito@WindwetaAyu:~$ sudo chntpw
[sudo] password for deprito:
sudo: chntpw: command not found
deprito@WindwetaAyu:~$ chntpw
The program 'chntpw' is currently not installed.  You can install it by typing:
sudo apt-get install chntpw
deprito@WindwetaAyu:~$ sudo apt-get install chntpw
Reading package lists... Done
Building dependency tree      
Reading state information... Done
chntpw is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
deprito@WindwetaAyu:~$

Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#8
lokasi filenya di /pentest/passwords/chntpw bro ntar jalankan aja ./chntpw

#9
(10-07-2011, 09:43 PM)konspirasi Wrote: lokasi filenya di /pentest/passwords/chntpw bro ntar jalankan aja ./chntpw


siap! Berhasil om!
Yang putih, yang seharusnya ber-aksi dan berbakat!
Linuxtivist blog

#10
om antonio and om konspirasi kompak Big Grin






Users browsing this thread: 1 Guest(s)