-
-
Save SecuritySura/b0ddfbce639c151dfda825fc8cc0480a 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 | |
| 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