├── .gitignore ├── stegsolve.jar ├── README.md └── ignition_key.sh /.gitignore: -------------------------------------------------------------------------------- 1 | .ignition_key.sh.swp 2 | -------------------------------------------------------------------------------- /stegsolve.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohnHammond/ignition_key/HEAD/stegsolve.jar -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ignition Key 2 | 3 | 4 | > John Hammond | January 23rd, 2018 5 | 6 | ------------ 7 | 8 | 9 | I have had the idea to write something like this for a long time, but never got around to it. Today I ended up reinstalling my Ubuntu image so I could have more space on my harddrive, but I needed all my tools back. I figured I would put together this script now. 10 | 11 | All the code is in the [ignition_key.sh](ignition_key.sh) script. -------------------------------------------------------------------------------- /ignition_key.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Define colors... 4 | RED=`tput bold && tput setaf 1` 5 | GREEN=`tput bold && tput setaf 2` 6 | YELLOW=`tput bold && tput setaf 3` 7 | BLUE=`tput bold && tput setaf 4` 8 | NC=`tput sgr0` 9 | 10 | function RED(){ 11 | echo -e "\n${RED}${1}${NC}" 12 | } 13 | function GREEN(){ 14 | echo -e "\n${GREEN}${1}${NC}" 15 | } 16 | function YELLOW(){ 17 | echo -e "\n${YELLOW}${1}${NC}" 18 | } 19 | function BLUE(){ 20 | echo -e "\n${BLUE}${1}${NC}" 21 | } 22 | 23 | # Testing if root... 24 | if [ $UID -ne 0 ] 25 | then 26 | RED "You must run this script as root!" && echo 27 | exit 28 | fi 29 | 30 | 31 | 32 | BLUE "Updating repositories..." 33 | sudo apt update 34 | 35 | BLUE "Installing git..." 36 | sudo apt install -y git 37 | 38 | BLUE "Installing Sublime Text..." # according to https://www.sublimetext.com/docs/3/linux_repositories.html- 39 | wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - 40 | sudo apt-get install -y apt-transport-https 41 | echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list 42 | sudo apt-get update 43 | sudo apt-get install -y sublime-text 44 | 45 | BLUE "Installing terminator..." 46 | sudo apt install -y terminator 47 | 48 | BLUE "Setting terminator as the default terminal emulator..." 49 | sed -i s/Exec=gnome-terminal/Exec=terminator/g /usr/share/applications/gnome-terminal.desktop 50 | 51 | BLUE "Forcing a color prompt in ~/.bashrc..." 52 | grep "export PS1" ~/.bashrc 53 | if [ $? -eq 1 ] 54 | then 55 | echo "export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> ~/.bashrc 56 | fi 57 | 58 | BLUE "Installing SimpleScreenRecorder..." 59 | echo "" | sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder 60 | sudo apt-get update 61 | sudo apt-get install -y simplescreenrecorder 62 | 63 | BLUE "Installing task..." 64 | sudo apt-get install -y taskwarrior 65 | 66 | BLUE "Installing pip..." 67 | sudo apt-get install -y python-pip 68 | 69 | BLUE "Removing boilerplate home directories..." 70 | rmdir ~/Desktop ~/Documents ~/Downloads ~/Music ~/Pictures ~/Public ~/Templates ~/Videos 71 | 72 | BLUE "Installing guake..." 73 | sudo apt-get install -y guake 74 | 75 | BLUE "Installing openvpn..." 76 | sudo apt-get install -y openvpn 77 | 78 | BLUE "Installing nmap..." 79 | sudo apt-get install -y nmap 80 | 81 | BLUE "Installing docker..." 82 | sudo apt-get install -y docker.io 83 | sudo groupadd docker 84 | sudo usermod -aG docker `logname` 85 | 86 | BLUE "Installing curl..." 87 | sudo apt-get install -y curl 88 | 89 | BLUE "Installing pinta..." 90 | sudo apt-get install -y pinta 91 | 92 | BLUE "Installing exiftool..." 93 | sudo apt-get install -y exiftool 94 | 95 | BLUE "Installing Python PIL..." 96 | sudo apt-get install -y python-pil 97 | 98 | BLUE "Installing sqlitebrowser..." 99 | sudo apt-get install -y sqlitebrowser 100 | 101 | BLUE "Installing Wireshark..." 102 | sudo apt-get install -y wireshark 103 | 104 | BLUE "Install Real VNC Viewer..." 105 | wget "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.17.1113-Linux-x64.deb" -O vnc_viewer.deb 106 | dpkg -i vnc_viewer.deb 107 | rm vnc_viewer.deb 108 | 109 | BLUE "Install Real VNC Connect (Server)..." 110 | wget 'https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.2.1-Linux-x64.deb' -O vnc_server.deb 111 | dpkg -i vnc_server.deb 112 | rm vnc_server.deb 113 | 114 | BLUE "Adding VNC Connect (Server) service to the default startup /etc/rc.local..." 115 | grep "vncserver-x11-serviced.service" /etc/rc.local 116 | if [ $? -eq 1 ] 117 | then 118 | echo "systemctl start vncserver-x11-serviced.service" >> ~/etc/rc.local 119 | fi 120 | 121 | BLUE "Installing Atom..." 122 | wget "https://atom.io/download/deb" -O atom.deb 123 | dpkg -i atom.deb 124 | rm atom.deb 125 | 126 | BLUE "Installing python-requests..." 127 | pip install requests 128 | 129 | BLUE "Installing idle..." 130 | sudo apt install -y idle 131 | 132 | BLUE "Installing xclip..." 133 | sudo apt install -y xclip 134 | grep "alias xclip" ~/.bashrc 135 | if [ $? -eq 1 ] 136 | then 137 | echo "alias xclip='xclip -selection clipboard'" >> ~/.bashrc 138 | fi 139 | 140 | BLUE "Installing Python flask..." 141 | sudo pip install flask 142 | 143 | BLUE "Installing Python flask-login..." 144 | sudo pip install flask-login 145 | 146 | BLUE "Installing Python colorama..." 147 | sudo pip install colorama 148 | 149 | BLUE "Installing Python passlib..." 150 | sudo pip install passlib 151 | 152 | BLUE "Installing Spotify..." 153 | sudo snap install spotify 154 | 155 | BLUE "Installing Binwalk..." 156 | sudo apt install -y binwalk 157 | 158 | BLUE "Installing Tesseract..." 159 | sudo apt install -y tesseract-ocr 160 | 161 | BLUE "Installing foremost..." 162 | sudo apt install -y foremost 163 | 164 | BLUE "Installing rot13..." 165 | sudo apt install -y bsdgames 166 | 167 | BLUE "Installing hexedit..." 168 | sudo apt install -y hexedit 169 | 170 | BLUE "Installing Python pwntools..." 171 | sudo pip install pwntools 172 | 173 | BLUE "Installing Go..." 174 | sudo apt install -y golang-go 175 | BLUE "Adding GOPATH and GOBIN to .bashrc, so future installs are easy.." 176 | grep "export GOPATH" ~/.bashrc 177 | if [ $? -eq 1 ] 178 | then 179 | echo "export GOPATH=\$HOME/.go/" >> ~/.bashrc 180 | fi 181 | grep "export GOBIN" ~/.bashrc 182 | if [ $? -eq 1 ] 183 | then 184 | echo "export GOBIN=\$HOME/.go/bin" >> ~/.bashrc 185 | echo "export PATH=\$PATH:\$GOBIN" >> ~/.bashrc 186 | fi 187 | 188 | BLUE "Installing sqlite..." 189 | sudo apt install -y sqlite 190 | 191 | BLUE "Installing nikto..." 192 | sudo apt install -y nikto 193 | 194 | BLUE "Installing zbarimg..." 195 | sudo apt install -y zbar-tools 196 | 197 | BLUE "Installing qrencode..." 198 | sudo apt install -y qrencode 199 | 200 | BLUE "Installing pdfcrack..." 201 | sudo apt install -y pdfcrack 202 | 203 | BLUE "Installing Virtualbox..." 204 | sudo apt install -y virtualbox-qt 205 | 206 | BLUE "Installing Vagrant..." 207 | sudo apt install -y vagrant 208 | 209 | BLUE "Installing Hopper..." 210 | wget "https://d2ap6ypl1xbe4k.cloudfront.net/Hopper-v4-4.3.14-Linux.deb" 211 | dpkg -i Hopper-v4-4.3.14-Linux.deb 212 | rm Hopper-v4-4.3.14-Linux.deb 213 | 214 | 215 | BLUE "Installing Oracle Java 8..." 216 | echo "" | sudo add-apt-repository ppa:webupd8team/java 217 | sudo apt-get update 218 | sudo apt-get install -y oracle-java8-installer 219 | 220 | BLUE "Downloading stegsolve.jar..." 221 | wget "http://www.caesum.com/handbook/Stegsolve.jar" -O "stegsolve.jar" 222 | chmod +x "stegsolve.jar" 223 | 224 | BLUE "Installing fcrackzip..." 225 | sudo apt install -y fcrackzip 226 | 227 | BLUE "Installing unrar..." 228 | sudo apt install -y unrar 229 | 230 | BLUE "Installing steghide..." 231 | sudo apt install -y steghide 232 | 233 | BLUE "Installing ffmpeg..." 234 | sudo apt install -y ffmpeg 235 | 236 | BLUE "Installing Python library netifaces..." 237 | sudo pip install netifaces 238 | 239 | BLUE "Installing Python library iptools..." 240 | sudo pip install iptools 241 | 242 | BLUE "Installing Python library OpenSSL..." 243 | sudo pip install pyopenssl 244 | 245 | 246 | BLUE "Installing Python library pydispatch..." 247 | sudo pip install pydispatch 248 | 249 | BLUE "Installing GIMP..." 250 | sudo apt install -y gimp 251 | 252 | BLUE "Installing cmake..." 253 | sudo apt install -y cmake 254 | 255 | BLUE "Installing mplayer..." 256 | sudo apt install -y mplayer 257 | 258 | 259 | BLUE "Installing sshpass..." 260 | sudo apt install -y sshpass 261 | 262 | BLUE "Installing tcpflow..." 263 | sudo apt install -y tcpflow 264 | 265 | BLUE "Installing Python scapy..." 266 | sudo pip install scapy 267 | 268 | BLUE "Installing the thing that 7z2john.pl needs..." 269 | sudo apt install libcompress-raw-lzma-perl 270 | 271 | BLUE "Installing dos2unix..." 272 | sudo apt install libcompress-raw-lzma-perl 273 | --------------------------------------------------------------------------------