![Kali Linux:An Ethical Hacker's Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/618/36700618/b_36700618.jpg)
上QQ阅读APP看书,第一时间看更新
Cracking the PSK
To learn how to crack the PSK follow the given steps:
- Adding a -P flag in the ike-scan command it will show a response with the captured hash.
- To save the hash we provide a filename along with the -P flag.
- Next we can use the psk-crack with the following command:
psk-crack -b 5 /path/to/pskkey
- Where -b is brute force mode and length is 5.
- To use a dictionary based attack we use the following command:
psk-crack -d /path/to/dictionary /path/to/pskkey
The following screenshot shows the output for the preceding command:
![](https://epubservercos.yuewen.com/364BC0/19470402501612306/epubprivate/OEBPS/Images/7677b531-0a79-44e3-bfe9-4b95f628fef4.png?sign=1739185540-DaSw0LahlB5foL6iY1jC3tktWbuWQknM-0-9c9b6b65a0970ca736cfb5c02c07888a)