Skip to content

Instantly share code, notes, and snippets.

@SecuritySura
Forked from itsecurityco/steghidebf.sh
Last active March 7, 2019 05:51
Show Gist options
  • Save SecuritySura/b0ddfbce639c151dfda825fc8cc0480a to your computer and use it in GitHub Desktop.
Save SecuritySura/b0ddfbce639c151dfda825fc8cc0480a to your computer and use it in GitHub Desktop.
Script to brute force a file treated with Steghide software
#!/bin/bash
printf "usage steghidebruteforcescript.sh imagefile.jpg wordlist.txt \n";
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