> For the complete documentation index, see [llms.txt](https://sarpers-organization.gitbook.io/ctftricks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sarpers-organization.gitbook.io/ctftricks/_chapter-intro-11/offline-cracking/archive/trick-0301.md).

# Crack Zip Password Offline

***

Extended Content:\
To crack a password-protected zip file offline, first convert the password verification data from the zip file's header into a crackable hash format using `zip2john`. zip2john is a tool to convert password protected ZIP archives to a format suitable for use with John the Ripper.

```bash
zip2john wordpress.old.zip > wordpress_hash
```

Then, use a tool like `john` (John the Ripper) with a suitable wordlist to perform a dictionary attack on the extracted hash.

```bash
john wordpress_hash --wordlist=/usr/share/wordlists/rockyou.txt
```
