Applications & CMS
How to identify and crack an Apache md5apr1 ($apr1$) hash
Identify an Apache md5apr1 ($apr1$) hash and crack it with ready-to-run hashcat and John the Ripper commands. Fast on a GPU.
Apache md5apr1 ($apr1$) is an application hash type. It is fast and typically unsalted, which makes weak passwords recoverable quickly on consumer GPU hardware. This page shows how to recognise it and the exact commands to attack it.
All identification runs locally in WebAssembly. The commands below write the hash to a local file on your machine — nothing is sent to this site.
Identifying the hash
The hash identifier on the home page detects Apache md5apr1 ($apr1$) entirely in your browser — your hash is never uploaded. A typical example looks like this:
$apr1$71850310$gh9m4xcAn3MGxogwX/ztb.
Cracking Apache md5apr1 ($apr1$) with hashcat
Save the hash to a file and run hashcat in mode -m 1600. Start with a wordlist such as rockyou.txt:
echo '$apr1$71850310$gh9m4xcAn3MGxogwX/ztb.' > hash.txt && hashcat -m 1600 hash.txt /usr/share/wordlists/rockyou.txt
Add a rule set to mutate dictionary words (capitalisation, leetspeak, appended digits) and dramatically widen coverage:
echo '$apr1$71850310$gh9m4xcAn3MGxogwX/ztb.' > hash.txt && hashcat -m 1600 hash.txt /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule
Cracking Apache md5apr1 ($apr1$) with John the Ripper
John the Ripper can attack the same hash with the md5crypt format:
echo '$apr1$71850310$gh9m4xcAn3MGxogwX/ztb.' > hash.txt && john --format=md5crypt --wordlist=/usr/share/wordlists/rockyou.txt hash.txt