forked from DominicBreuker/stego-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add john the ripper for password list generation
- Loading branch information
1 parent
9b1c354
commit a4acdcd
Showing
6 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
data | ||
examples/stego-files | ||
*.swp |
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Install some openssl headers | ||
apt-get install -y libssl1.0-dev \ | ||
zlib1g-dev | ||
|
||
# Download | ||
wget -q -O /tmp/jumbo-john.tar.gz http://openwall.com/john/j/john-1.8.0-jumbo-1.tar.gz | ||
|
||
# Extract | ||
mkdir -p /opt/jumbo-john | ||
tar -xzf /tmp/jumbo-john.tar.gz -C /opt/jumbo-john | ||
rm /tmp/jumbo-john.tar.gz | ||
|
||
# compile | ||
# fix code with sed: https://blackcatsoftware.us/john-the-ripper-jumbo-1-8-0-compilemake-fails-in-fedora-25-gcc5/ | ||
sed -i "482s/.*/\/\/#ifdef __x86_64__/" /opt/jumbo-john/john-1.8.0-jumbo-1/src/MD5_std.c | ||
sed -i "483s/.*/\/\/#define MAYBE_INLINE_BODY MAYBE_INLINE/" /opt/jumbo-john/john-1.8.0-jumbo-1/src/MD5_std.c | ||
sed -i "484s/.*/\/\/#else/" /opt/jumbo-john/john-1.8.0-jumbo-1/src/MD5_std.c | ||
sed -i "486s/.*/\/\/#endif/" /opt/jumbo-john/john-1.8.0-jumbo-1/src/MD5_std.c | ||
|
||
cd /opt/jumbo-john/john-1.8.0-jumbo-1/src/ && ./configure && make -s clean && make -sj4 | ||
|
||
|
||
# install | ||
echo 'export JOHN=/opt/jumbo-john/john-1.8.0-jumbo-1/run' >> ~/.bashrc | ||
|
||
cat << EOF > /usr/bin/john | ||
#!/bin/sh | ||
echo "executing john in folder '\$JOHN' - use absolute paths to avoid confusion" | ||
cd \$JOHN | ||
./john \$@ | ||
EOF | ||
chmod +x /usr/bin/john |
Empty file.
Empty file.