cowpatty is a wireless security auditing tool provided by Kali Linux, mainly used for weak passphrase detection on WPA-PSK or WPA2-PSK networks. Its core purpose is: after obtaining a libpcap capture file containing the WPA four-way handshake, combine it with a dictionary file and the target network SSID to attempt to recover the pre-shared key (PSK) through a brute-force dictionary attack or a precomputed PMK hash file.
The main capabilities include two parts: the cowpatty command performs dictionary attacks and requires a hash file (-d), a capture file (-r), and an ESSID (-s); the genpmk command is used for precomputation, converting a dictionary file (-f) into a hash file (-d) for a specific ESSID (-s), thereby speeding up the subsequent cracking process. The genpmk example given in the material is: genpmk -f /usr/share/wordlists/nmap.lst -d cowpatty_dict -s securenet, with the output showing that a hash file was created and 1641 passphrases were tested. The cowpatty example is: cracking using the hash file cowpatty_dict, the capture file Kismet-20181113-13-37-00-1.pcapdump, and the ESSID 6F36E6.
In terms of usage, the tool runs via the command line, the installation command is sudo apt install cowpatty, and the installation size is about 73 KB. The applicable scenarios are wireless network penetration testing and security auditing, helping to identify WPA-PSK/WPA2-PSK networks that use weak passphrases. In terms of limitations, a capture file containing the four-way handshake is required, and the cracking success rate depends on the coverage of the dictionary; the material does not provide a graphical interface, support for other platforms, or specific performance data.