Chapter 9. Password Cracking

Perl isn't the normal go-to language for password cracking since it is slower than C or other lower-level compiled languages when using complex password hashing algorithms. However, password cracking can be done and we will explore methods of how to do so, and even a few methods of optimization. In this chapter, we will look at ways in which we can use Perl to crack password hashes obtained from penetration testing, including SHA1, salted SHA1, MD5, salted MD5, and a few others. After this, we will analyze how we can crack our WPA2 CCMP handshake that we obtained in Chapter 5, IEEE 802.11 Wireless Protocol and Perl. Both types of password cracking will use a simple brute force offline dictionary attack method, so we ...

Get Penetration Testing with Perl now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.