John the ripper is a software to check for weak passwords in your system. The package is called john.
Example:
john /etc/shadow