Created
January 16, 2017 02:54
-
-
Save itsecurityco/503970852ac47cd6a3b356590d824a2c to your computer and use it in GitHub Desktop.
Script to brute force a file treated with Steghide software
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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