Skip to content

Instantly share code, notes, and snippets.

@itsecurityco
Created January 16, 2017 02:54
Show Gist options
  • Save itsecurityco/503970852ac47cd6a3b356590d824a2c to your computer and use it in GitHub Desktop.
Save itsecurityco/503970852ac47cd6a3b356590d824a2c to your computer and use it in GitHub Desktop.
Script to brute force a file treated with Steghide software
#!/bin/bash
# Usage: steghidebf.sh stegofile wordlist
stegofile=$1;
dict=$2;
printf "Steghide Bruteforce (c) 2017 by Juan Escobar\n";
printf "stegofile: %s\n" "$stegofile";
printf "wordlist: %s\n\n" "$dict";
for passphrase in $(cat $dict); do
response=$(steghide extract -sf $stegofile -p "$passphrase" 2>&1);
if [[ ! $response == *"could not extract"* ]]; then
printf "[+] Information obtained with passphrase: '%s'\n" "$passphrase";
printf "%s\n\n" "$response";
exit
fi
done
printf "Game over :(\n\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment