Last active
November 16, 2016 18:39
-
-
Save sygo/0cdd91f231f28c1c8a7c to your computer and use it in GitHub Desktop.
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
#### | |
# much insipiration (and down right copy-paste) from https://github.com/g0tmi1k/os-scripts/blob/master/kali.sh) | |
#### | |
# Update all the things | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y dist-upgrade | |
# ssh new keys | |
rm /etc/ssh/ssh_host_* && dpkg-reconfigure openssh-server | |
# modules, gems & such | |
apt-get -y install python.xlwt | |
## gnome add-ons | |
apt-get -y terminus-font | |
apt-get -y install gnome-commander | |
## General Colorizer Setup ## | |
apt-get install grc | |
wget https://gist.githubusercontent.com/sygo/844982/raw/0d85bc0b6b1b1c3bfac6cdf36820588d1c5469d7/conf.hexdump -P /usr/share/grc/ | |
wget https://gist.github.com/sygo/844982/raw/c55e0a9583aa390a42105ae10646b6ec62ffdd3b/conf.nmap -P /usr/share/grc/ | |
wget https://gist.githubusercontent.com/sygo/844982/raw/a52ea94dcd9f69178280332493fdc7ff8d8c6278/grc.conf -P /tmp/ | |
cat /tmp/grc.conf >> /etc/grc.conf | |
## make screen more usable ## | |
wget https://gist.githubusercontent.com/sygo/10876521/raw/499dea3cc82a7879a17b1ca4545f32b8e26ecaf0/.screenrc -P $HOME | |
## 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 | |
## Configure 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 | |
## Sane WM setup ## | |
#apt-get -y install rxvt-unicode i3 | |
#wget https://gist.githubusercontent.com/sygo/844986/raw/c7d355091c9bfe43a42ba3443ba9623e64a90bfe/Xdefaults -P $HOME/.Xdefaults | |
## wordlists ## | |
apt-get -y -qq install curl | |
#--- Extract rockyou wordlist | |
[ -e /usr/share/wordlists/rockyou.txt.gz ] && gzip -dc < /usr/share/wordlists/rockyou.txt.gz > /usr/share/wordlists/rockyou.txt #gunzip rockyou.txt.gz | |
#rm -f /usr/share/wordlists/rockyou.txt.gz | |
#--- Extract sqlmap wordlist | |
#unzip -o -d /usr/share/sqlmap/txt/ /usr/share/sqlmap/txt/wordlist.zip | |
#--- Add 10,000 Top/Worst/Common Passwords | |
mkdir -p /usr/share/wordlists/ | |
(curl --progress -k -L -f "http://xato.net/files/10k most common.zip" > /tmp/10kcommon.zip 2>/dev/null || curl --progress -k -L -f "http://download.g0tmi1k.com/wordlists/common-10k_most_common.zip" > /tmp/10kcommon.zip 2>/dev/null) || echo -e ' '${RED}'[!]'${RESET}" Issue downloading 10kcommon.zip" 1>&2 | |
unzip -q -o -d /usr/share/wordlists/ /tmp/10kcommon.zip 2>/dev/null #***!!! hardcoded version! Need to manually check for updates | |
mv -f /usr/share/wordlists/10k{\ most\ ,_most_}common.txt | |
#--- Linking to more - folders | |
[ -e /usr/share/dirb/wordlists ] && ln -sf /usr/share/dirb/wordlists /usr/share/wordlists/dirb | |
#[ -e /usr/share/seclists ] && ln -sf /usr/share/seclists /usr/share/wordlists/seclists | |
#--- Linking to more - files | |
#ln -sf /usr/share/sqlmap/txt/wordlist.txt /usr/share/wordlists/sqlmap.txt | |
##--- Not enough? Want more? Check below! | |
##apt-cache search wordlist | |
##find / \( -iname '*wordlist*' -or -iname '*passwords*' \) #-exec ls -l {} \; | |
#--- Remove old temp files | |
rm -f /tmp/10kcommon.zip | |
## Install essential stuff ## | |
git clone https://github.com/leebaird/discover.git /opt/discover/ | |
/opt/discover/setup.sh | |
wget wifipineapple.com/wp4.sh; mv wp4.sh /opt/wp4.sh; chmod +x /opt/wp4.sh; | |
##### Install MPC | |
timeout 300 curl --progress -k -L -f "https://raw.githubusercontent.com/g0tmi1k/mpc/master/mpc.sh" > /usr/bin/mpc || echo -e ' '${RED}'[!]'${RESET}" Issue downloading mpc" 1>&2 | |
chmod +x /usr/bin/mpc | |
apt-get -y -qq install cherrytree | |
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 | |
# | |
apt-get -y -qq install git windows-binaries | |
git clone -q https://github.com/xillwillx/MiniReverse_Shell_With_Parameters.git /opt/minireverse-shell-with-parameters-git/ | |
ln -sf /usr/share/windows-binaries/MiniReverse /opt/minireverse-shell-with-parameters-git/ | |
# | |
apt-get -y -qq install filezilla | |
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 php5-cli | |
git clone -q https://github.com/b374k/b374k.git /opt/b374k-git/ | |
pushd /opt/b374k-git/ >/dev/null | |
git pull -q | |
php index.php -o b374k.php -s | |
popd >/dev/null | |
apt-get -y -qq install webshells | |
ln -sf /usr/share/b374k-git /usr/share/webshells/php/b374k | |
# | |
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 git 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/ | |
### Pure-FTP | |
apt-get -y -qq install pure-ftpd | |
mkdir -p /var/ftp/ | |
groupdel ftpgroup 2>/dev/null; groupadd ftpgroup | |
userdel ftp 2>/dev/null; useradd -r -M -d /var/ftp/ -s /bin/false -c "FTP user" -g ftpgroup ftp | |
chown -R ftp\:ftpgroup /var/ftp/ | |
chmod -R 0755 /var/ftp/ | |
pure-pw userdel ftp 2>/dev/null; echo -e '\n' | pure-pw useradd ftp -u ftp -d /var/ftp/ | |
pure-pw mkdb | |
#--- Configure pure-ftpd | |
echo "no" > /etc/pure-ftpd/conf/UnixAuthentication | |
echo "no" > /etc/pure-ftpd/conf/PAMAuthentication | |
echo "yes" > /etc/pure-ftpd/conf/NoChmod | |
echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone | |
#echo "yes" > /etc/pure-ftpd/conf/AnonymousOnly | |
echo "no" > /etc/pure-ftpd/conf/NoAnonymous | |
echo "yes" > /etc/pure-ftpd/conf/AnonymousCanCreateDirs | |
echo "yes" > /etc/pure-ftpd/conf/AllowAnonymousFXP | |
echo "no" > /etc/pure-ftpd/conf/AnonymousCantUpload | |
echo "30768 31768" > /etc/pure-ftpd/conf/PassivePortRange #cat /proc/sys/net/ipv4/ip_local_port_range | |
echo "/etc/pure-ftpd/welcome.msg" > /etc/pure-ftpd/conf/FortunesFile #/etc/motd | |
echo "FTP" > /etc/pure-ftpd/welcome.msg | |
#--- 'Better' MOTD | |
apt-get install -y -qq cowsay | |
echo "Moo" | /usr/games/cowsay > /etc/pure-ftpd/welcome.msg | |
#--- SSL | |
#mkdir -p /etc/ssl/private/ | |
#openssl req -x509 -nodes -newkey rsa:4096 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem | |
#chmod -f 0600 /etc/ssl/private/*.pem | |
ln -sf /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50pure | |
#--- Apply settings | |
#systemctl restart pure-ftpd | |
echo -e " ${YELLOW}[i]${RESET} Pure-FTPd username: anonymous" | |
echo -e " ${YELLOW}[i]${RESET} Pure-FTPd password: anonymous" | |
#--- Setup alias | |
file=/root/.bash_aliases; [ -e "${file}" ] && cp -n $file{,.bkup} #/etc/bash.bash_aliases | |
([[ -e "${file}" && "$(tail -c 1 $file)" != "" ]]) && echo >> "${file}" | |
grep -q '^## ftp' "${file}" 2>/dev/null || echo -e '## ftp\nalias ftproot="cd /var/ftp/"\n' >> "${file}" # systemctl pure-ftpd start | |
#--- Remove from start up | |
systemctl disable pure-ftpd | |
# | |
git clone https://github.com/ChrisTruncer/EyeWitness.git /opt/eyewitness-git | |
/opt/eyewitness-git/setup/setup.sh | |
# | |
git clone https://github.com/SpiderLabs/Responder.git /opt/responder-git | |
# | |
mkdir ~/.fonts/ | |
cd ~/.fonts/ | |
wget http://font.gohu.org/gohufont-2.0.tar.gz | |
tar zxvf gohufont-2.0.tar.gz | |
rm gohufont-1* | |
fc-cache -f -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment