Last active
September 25, 2017 01:34
-
-
Save sygo/a370b766a802a09d320a800831282d06 to your computer and use it in GitHub Desktop.
lazy kali setup for AWS
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
!/usr/bin/bash | |
sudo -i | |
passwd | |
passwd ec2-user | |
### upgrade all things | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y dist-upgrade | |
### MSF db setup | |
sudo update-rc.d postgresql enable | |
msfdb init | |
## config vim | |
wget https://gist.githubusercontent.com/sygo/844983/raw/fc329b76cd351bcabb3a659c9189e366089df94c/vimrc -P $HOME; mv vimrc $HOME/.vimrc | |
mkdir -p $HOME/.vim/backups | |
mkdir $HOME/.vim/tmp | |
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
vim +PluginInstall +qall | |
## zsh goodness ## | |
apt-get -y install zsh | |
wget https://gist.githubusercontent.com/sygo/6359699/raw/232fdd625535674f90ccd3b860f6ff9b9e4dbaa7/le_prompt.zsh -P $HOME | |
wget https://gist.githubusercontent.com/sygo/6359674/raw/122fdf019ecc58d548ec554443199e1b9eca8621/.zshrc -P $HOME | |
mkdir /usr/share/zsh/plugins/ && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /usr/share/zsh/plugins/zsh-syntax-highlighting/ | |
chsh -s /bin/zsh | |
## Install essential stuff ## | |
git clone https://github.com/leebaird/discover.git /opt/discover/ | |
apt-get -y -qq install ipcalc sipcalc | |
apt-get -y -qq install pwgen | |
apt-get -y -qq install htop | |
apt-get -y -qq install git || echo -e ' '${RED}'[!] Issue with apt-get'${RESET} 1>&2 | |
# | |
git clone -q https://github.com/drwetter/testssl.sh.git /opt/testssl-git/ | |
ln -sf /opt/testssl-git/testssl.sh /usr/local/bin/testssl-git | |
chmod +x /opt/testssl-git/testssl.sh | |
# | |
git clone -q https://github.com/drwetter/testssl.sh.git /opt/testssl-git/ | |
ln -sf /opt/testssl-git/testssl.sh /usr/local/bin/testssl-git | |
chmod +x /opt/testssl-git/testssl.sh | |
# | |
apt-get -y -qq install hashid | |
apt-get -y -qq install httprint | |
apt-get -y -qq install clusterd | |
git clone -q https://github.com/jseidl/Babadook.git /opt/babadook-git/ | |
git clone -q https://github.com/n1nj4sec/pupy.git /opt/pupy-git/ | |
apt-get -y -qq install webshells | |
# | |
git clone -q https://github.com/inquisb/icmpsh.git /opt/icmpsh-git/ | |
git clone -q https://github.com/breenmachine/dnsftp.git /opt/dnsftp-git | |
apt-get -y -qq install iodine | |
apt-get -y -qq install dns2tcp | |
apt-get -y -qq install ptunnel | |
apt-get -y -qq install stunnel && systemctl disable stunnel4 | |
apt-get -y -qq install shellter | |
# | |
git clone -q https://github.com/attackdebris/babel-sf.git /opt/babel-sf-git/ | |
pushd /opt/babel-sf-git/ >/dev/null | |
git pull -q | |
popd >/dev/null | |
# | |
git clone -q https://github.com/nullsecuritynet/tools.git /opt/nullsecuritynet-git/ | |
pushd /opt/nullsecuritynet-git/ >/dev/null | |
git pull -q | |
popd >/dev/null | |
# | |
apt-get -y -qq install gdb | |
git clone -q https://github.com/longld/peda.git /opt/gdb-peda-git/ | |
pushd /opt/gdb-peda-git/ >/dev/null | |
git pull -q | |
popd >/dev/null | |
echo "source ~/peda/peda.py" >> ~/.gdbinit | |
# | |
apt-get -y -qq install bless | |
apt-get -y -qq install dhex | |
apt-get -y -qq install smbmap | |
git clone -q https://github.com/gojhonny/CredCrack.git /opt/credcrack-git/ | |
git clone -q https://github.com/PowerShellEmpire/Empire.git /opt/empire-git/ | |
git clone -q https://github.com/mandatoryprogrammer/sonar.js.git /opt/sonar-js-git/ | |
# | |
git clone https://github.com/ChrisTruncer/EyeWitness.git /opt/eyewitness-git | |
/opt/eyewitness-git/setup/setup.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment