This site is some kind of personal database gathering notes about my day-to-day discoveries in the IT world basically about security.
While some are howtos and tips (we learn a new thing every day eh), hopefully you'll find some of them informative !

January 24, 2007

Hacking root password

This is the easiest way to hack root password. This works on most Linux distro.
Boot from a linux 'live cd', I prefer Knoppix STD and edit '/etc/passwd' directly.

boot from a knoppix cdrom:

log into prompt


mkdir /tmp
mount /dev/md2 /tmp => (or appropriate root partition)
vi /tmp/etc/shadow

remove all encrypted md5 text (everything between the first and second colons)
use + x to delete text)

reboot the system

log in as root with no passwd

change the root passwd with 'passwd

No comments: