Crack WEP and WPA/WPA2 keys from handshake in captured packets. Part of Aircrack-ng network software suite. More information: https://www.aircrack-ng.org/doku.php?id=aircrack-ng.
aircrack-ng -w path/to/wordlist.txt path/to/capture.cap
aircrack-ng -w path/to/wordlist.txt -e essid path/to/capture.cap
aircrack-ng -w path/to/wordlist.txt --bssid mac path/to/capture.cap