This project has two files, cracker.py, which cracks passwords, and passwords.txt, which contains passwords. Ask the person who's password you are trying to crack to enter a bunch of passwords to passwords.txt. Run the cracker.py script and do what it asks and the password should be cracked.
Python
smtplib:
$ pip install smtplib
termcolor:
$ pip install termcolor
Run the following commands: On Mac:
python3 /path/to/file
On Windows:
py C:\path\to\file
Gmail has a security block that prevents scripts and code to login in emails or try to get passwords. In order to fix this, navigate to "https://myaccount.google.com/u/0/?hl=en", and go to Security. Scroll towards the bottom and at Less secure app access, enable the feature. Google does not recommend this but this is perfectly safe as long as the passwords.txt file and your friends email do not get passed around everywhere.