Skip to main content

Steganography brute-force utility to uncover hidden data inside files.

Project description

StegCracker

Build Status PyPI version codecov pulls

Steganography brute-force utility to uncover hidden data inside files.
Looking for the Docker repository? You can find it here

Deprecation

Stop wasting time and CPU, use stegseek instead! Not convinced? Look at these benchmarks (stolen with love):

password Line Stegseek v0.4 Stegcracker 2.0.9 Stegbrute v0.1.1 (-t 8)
"cassandra" 1 000 0.9s 3.1s 0.7s
"kupal" 10 000 0.9s 14.4s 7.1s
"sagar" 100 000 0.9s 2m23.0s 1m21.9s
"budakid1" 1 000 000 0.9s [p] 23m50.0s 13m45.7s
"␣␣␣␣␣␣␣1" 14 344 383 1.9s [p] 5h41m52.5s [p] 3h17m38.0s

While I've enjoyed building this tool it is and always will built on bad foundations. StegCracker started out as a dirty hack for a problem which didn't have any good or easy to use solutions, it's biggest limiting factor however is that it relies on just spamming thousand of subprocess calls a second which (despite being optimized slightly with multiple threads) is just horrible for performance.

So, as a result, after three years of managing the project I've decided to pass on the torch and officially retire the project. Thanks for the support and thank you @RickdeJager for building a better version :tada:

Usage

Using stegcracker is simple, pass a file to it as it's first parameter and optionally pass the path to a wordlist of passwords to try as it's second parameter. If you don't specify the wordlist, the tool will try to use the built-in rockyou.txt wordlist which ships with Kali Linux. If you are running a different distribution, you can download the rockyou wordlist here.

$ stegcracker <file> [<wordlist>]

Or using Docker:

$ docker run -v $(pwd)/data/:/data -it paradoxis/stegcracker example.jpg

Requirements

The program requires the steghide binary, and Python 3.6 or higher to be installed. If python 3.6 is not installed, check out this guide on how to do so. Steghide can be installed by using the following command (Kali Linux):

$ sudo apt-get install steghide -y

Installation

To install StegCracker, run the following command:

$ pip3 install stegcracker

Or pull the latest docker image:

$ docker pull paradoxis/stegcracker

Updating

To update StegCracker, simply pass -U to the installation command:

$ pip3 install stegcracker -U --force-reinstall

Example

demo

FAQ / Troubleshooting

  • I can't install the tool with pip3, but python 3.6+ is installed

    • Your pip binary might be using a different version of Python. Try installing it directly through Python like so (replace "X" with your minor version, eg: python3.6): python3.X -m pip install -U stegcracker
  • I installed the tool, but when I run stegcracker it just returns 'command not found'

    • Chances are your Python's bin directory is not in your PATH envrionment variable. As a dirty fix you could add the following to your ~/.bashrc file: alias stegcracker='python3 -m stegcracker'
  • I'm using StegCracker 1.X, how do I upgrade?

    • If you're upgrading StegCracker from the original 1.X release, please remove the existing version first using: sudo rm --force $(which stegcracker)
  • I want to run an older version of StegCracker, how do I obtain a copy?

    • While I recommended using the latest and greatest version, you might want to install an older version of StegCracker. You can do this by checking out the releases page. (Note: all issues or pull requests regarding this version will be be ignored).
  • Can I run this tool on other Linux distro's?

    • As long as you have a valid version of Python 3.6 and steghide in your path it should work. Please note that the tool has officially been tested on Kali Linux, all other platforms might be unstable. If you find a bug on another distro, please submit an issue and I'll see what I can do (but do fill in the template as well).
  • Can I run StegCracker on Windows?

    • As far as I know there aren't any official steghide releases for Windows, so as far as I'm aware: no

License

Copyright 2020 - Luke Paris (Paradoxis)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stegcracker-2.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

stegcracker-2.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file stegcracker-2.1.0.tar.gz.

File metadata

  • Download URL: stegcracker-2.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for stegcracker-2.1.0.tar.gz
Algorithm Hash digest
SHA256 41d445ed653e1f0fdacf456b78cfef49143bc792f8b35ae4d83742d4649481b6
MD5 f754fdb6621771b19a3aa0ce84b01103
BLAKE2b-256 0f21261bca05aa32e5e1918840e35578a6eb708727c2f70cb098f568830770b7

See more details on using hashes here.

File details

Details for the file stegcracker-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: stegcracker-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for stegcracker-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e9b3a974e3b920e11e3b5b6128fc6de6bb6db8bd51d1f4ad088e34ad1e186ed
MD5 69b4d10717d469a8d0272ab05abae2fd
BLAKE2b-256 3fe6b17a7389766b9e523f969348c0da6c8c17358da507ed2c7c4615c1e56bfb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page