Skip to content

Applications & CMS

How to identify and crack a Drupal 7 ($S$) hash

Identify a Drupal 7 ($S$) hash and crack it with ready-to-run hashcat and John the Ripper commands. Fast on a GPU.

hashcat mode -m 7900John format drupal7

Drupal 7 ($S$) is a 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 Drupal 7 ($S$) entirely in your browser — your hash is never uploaded. A typical example looks like this:

$S$D4IQ.Vf4vK1B2bH6wCD0Fc7Vk.NzQ0XnQ3rEND2RvU.l1dlE6yJk

Cracking Drupal 7 ($S$) with hashcat

Save the hash to a file and run hashcat in mode -m 7900. Start with a wordlist such as rockyou.txt:

echo '$S$D4IQ.Vf4vK1B2bH6wCD0Fc7Vk.NzQ0XnQ3rEND2RvU.l1dlE6yJk' > hash.txt && hashcat -m 7900 hash.txt /usr/share/wordlists/rockyou.txt

Add a rule set to mutate dictionary words (capitalisation, leetspeak, appended digits) and dramatically widen coverage:

echo '$S$D4IQ.Vf4vK1B2bH6wCD0Fc7Vk.NzQ0XnQ3rEND2RvU.l1dlE6yJk' > hash.txt && hashcat -m 7900 hash.txt /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best64.rule

Cracking Drupal 7 ($S$) with John the Ripper

John the Ripper can attack the same hash with the drupal7 format:

echo '$S$D4IQ.Vf4vK1B2bH6wCD0Fc7Vk.NzQ0XnQ3rEND2RvU.l1dlE6yJk' > hash.txt && john --format=drupal7 --wordlist=/usr/share/wordlists/rockyou.txt hash.txt