stegcracker
Casseur de mots de passe par force brute pour la stéganographie. Effectue des attaques par dictionnaire contre des fichiers protégés par steghide pour récupérer des données cachées dans des images et fichiers audio. Steganography password brute-forcer. Performs dictionary attacks against steghide-protected files to recover hidden data from images and audio files.
↗ https://github.com/Paradoxis/StegCrackerOverview
StegCracker is a brute-force tool for steganography challenges. It automates dictionary attacks against steghide-protected image and audio files, systematically trying passwords to extract hidden data — commonly used in CTF challenges and forensic investigations.
Installation
pip3 install stegcracker
# or
sudo apt install stegcracker
Basic Usage
Brute-force with default wordlist
stegcracker image.jpg
Specify wordlist
stegcracker image.jpg /usr/share/wordlists/rockyou.txt
PNG file
stegcracker image.png wordlist.txt
Audio file
stegcracker audio.wav wordlist.txt
MP3 file
stegcracker audio.mp3 wordlist.txt
Options
Output file for extracted data
stegcracker image.jpg wordlist.txt -o hidden_data.txt
Threads for faster cracking
stegcracker image.jpg wordlist.txt -t 4
Quiet mode (less output)
stegcracker image.jpg wordlist.txt -q
Verbose mode
stegcracker image.jpg wordlist.txt -v
Supported File Types
# Images: JPEG, BMP, WAV, AU, PNG (via steghide)
# Audio: WAV, AU
# For other formats, use different tools:
# PNG (more hidden data): zsteg
# General: binwalk, strings
Manual steghide
If password found, extract manually
steghide extract -sf image.jpg -p "foundpassword" -xf output.txt
Without password prompt (if no password)
steghide extract -sf image.jpg -p "" -xf output.txt
Check what’s embedded
steghide info image.jpg
CTF Workflow
Step 1: Check if there’s hidden data
steghide info suspicious.jpg
Step 2: Try empty password
steghide extract -sf suspicious.jpg -p ""
Step 3: If password protected, crack it
stegcracker suspicious.jpg /usr/share/wordlists/rockyou.txt
Step 4: Extract with found password
steghide extract -sf suspicious.jpg -p "FOUND_PASS" -xf output
# Also check:
strings suspicious.jpg | grep -i "flag\|password\|hidden"
binwalk suspicious.jpg
exiftool suspicious.jpg
Tips
- Always try empty password first (
steghide extract -p "") before brute-forcing - rockyou.txt covers most CTF challenges — start with that
- stegcracker calls steghide internally — ensure steghide is installed
- For large wordlists, use more threads (
-t 8) to speed up - If stegcracker fails, try other tools: outguess, stegosuite, zsteg (for PNG), or OpenStego
Help / Man page
stegcracker [options] file [wordlist]
file Image/audio file to crack
wordlist Password wordlist (default: rockyou.txt)
-o FILE Output file for extracted data
-t N Threads (default: 4)
-q Quiet mode
-v Verbose
--version Show version
Vue d’ensemble
StegCracker est un outil de force brute pour les challenges de stéganographie. Il automatise les attaques par dictionnaire contre des fichiers image et audio protégés par steghide, en essayant systématiquement des mots de passe pour extraire des données cachées : couramment utilisé dans les challenges CTF et les investigations forensiques.
Installation
pip3 install stegcracker
# ou
sudo apt install stegcracker
Utilisation de base
# Force brute avec le dictionnaire par défaut
stegcracker image.jpg
# Spécifier un dictionnaire
stegcracker image.jpg /usr/share/wordlists/rockyou.txt
# Fichier PNG
stegcracker image.png wordlist.txt
# Fichier audio
stegcracker audio.wav wordlist.txt
# Fichier MP3
stegcracker audio.mp3 wordlist.txt
Options
# Fichier de sortie pour les données extraites
stegcracker image.jpg wordlist.txt -o hidden_data.txt
# Threads pour un cracking plus rapide
stegcracker image.jpg wordlist.txt -t 4
# Mode silencieux (moins de sortie)
stegcracker image.jpg wordlist.txt -q
# Mode verbeux
stegcracker image.jpg wordlist.txt -v
Types de fichiers supportés
# Images : JPEG, BMP, WAV, AU, PNG (via steghide)
# Audio : WAV, AU
# Pour d'autres formats, utiliser d'autres outils :
# PNG (plus de données cachées) : zsteg
# Général : binwalk, strings
steghide manuel
# Si le mot de passe est trouvé, extraire manuellement
steghide extract -sf image.jpg -p "foundpassword" -xf output.txt
# Sans invite de mot de passe (si pas de mot de passe)
steghide extract -sf image.jpg -p "" -xf output.txt
# Vérifier ce qui est intégré
steghide info image.jpg
Workflow CTF
Étape 1 : vérifier s’il y a des données cachées
steghide info suspicious.jpg
Étape 2 : essayer un mot de passe vide
steghide extract -sf suspicious.jpg -p ""
Étape 3 : si protégé par mot de passe, le cracker
stegcracker suspicious.jpg /usr/share/wordlists/rockyou.txt
Étape 4 : extraire avec le mot de passe trouvé
steghide extract -sf suspicious.jpg -p "FOUND_PASS" -xf output
# Vérifier aussi :
strings suspicious.jpg | grep -i "flag\|password\|hidden"
binwalk suspicious.jpg
exiftool suspicious.jpg
Conseils
- Toujours essayer un mot de passe vide (
steghide extract -p "") avant de bruteforcer - rockyou.txt couvre la plupart des challenges CTF : commencer par là
- stegcracker appelle steghide en interne : s’assurer que steghide est installé
- Pour de gros dictionnaires, utiliser plus de threads (
-t 8) pour accélérer - Si stegcracker échoue, essayer d’autres outils : outguess, stegosuite, zsteg (pour PNG), ou OpenStego
Aide / Page de manuel
stegcracker [options] file [wordlist]
file Image/audio file to crack
wordlist Password wordlist (default: rockyou.txt)
-o FILE Output file for extracted data
-t N Threads (default: 4)
-q Quiet mode
-v Verbose
--version Show version