-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathstego_setup.sh
63 lines (51 loc) · 1.83 KB
/
stego_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
echo "DONT RUN ME!!!"
return
echo "Setting up the directory for the Stegosploit Tutorial"
echo "Getting older firefox version (v37.0)"
wget https://ftp.mozilla.org/pub/firefox/releases/37.0/linux-x86_64/en-US/firefox-37.0.tar.bz2
if [ $? == 0 ]; then
echo "Successfully got old firefox"
echo "Extracting the tarball"
tar -xf firefox-37.0.tar.bz2
else
echo "Could not get the old version of firefox, download it manually from:"
echo "https://ftp.mozilla.org/pub/firefox/releases/37.0/linux-x86_64/en-US/"
fi
echo "Getting the Stegosploit demo kit"
git clone https://github.com/Charmve/PyStegosploit.git
if [ $? == 0 ]; then
echo "Successfully cloned the git repo"
else
echo "Could not clone the git repo, do so manually from:"
echo "https://github.com/Charmve/PyStegosploit"
fi
echo "Getting image to use"
wget https://upload.wikimedia.org/wikipedia/commons/5/56/Tux.jpg
if [ $? == 0 ]; then
echo "Grabbed image successfully"
else
echo "Unable to grab image, please download it manually from:"
echo "https://commons.wikimedia.org/wiki/File:Tux.jpg"
fi
echo "Setting up for part 4"
wget https://media.giphy.com/media/26ufnauqqCbUhtdZu/source.gif
if [ $? == 0 ]; then
echo "Grabbed gif successfully"
else
echo "Unable to grab the gif. Either try again, or download your own gif to use"
fi
mkdir part4
mv source.gif part4/source.gif
touch part4/index.html
echo "<!DOCTYPE html>" >> part4/index.html
echo "<html>" >> part4/index.html
echo "<body>" >> part4/index.html
echo "<img src='source.gif'>" >> part4/index.html
echo "</body>" >> part4/index.html
echo "</html>" >> part4/index.html
echo "Done the initial set up for the tutorial"
echo "Read through to make sure everything executed properly"
echo "You will need to install hexedit if it isn't installed already"
echo "Run: sudo apt-get update"
echo "Then run: sudo apt-get install hexedit"