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
  • Select an option

  • Save SecuritySura/b0ddfbce639c151dfda825fc8cc0480a to your computer and use it in GitHub Desktop.

Select an option

Save SecuritySura/b0ddfbce639c151dfda825fc8cc0480a to your computer and use it in GitHub Desktop.

Revisions

  1. SecuritySura renamed this gist Mar 7, 2019. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions steghidebf.sh → steghidebruteforcescript.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    #!/bin/bash
    # Usage: steghidebf.sh stegofile wordlist
    printf "usage bruteforcescript.sh imagefile.jpg wordlist.txt \n";
    printf "usage steghidebruteforcescript.sh imagefile.jpg wordlist.txt \n";
    stegofile=$1;
    dict=$2;

  2. SecuritySura revised this gist Mar 7, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion steghidebf.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    # Usage: steghidebf.sh stegofile wordlist

    printf "usage bruteforcescript.sh imagefile.jpg wordlist.txt \n";
    stegofile=$1;
    dict=$2;

  3. @itsecurityco itsecurityco created this gist Jan 16, 2017.
    20 changes: 20 additions & 0 deletions steghidebf.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/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";