Skip to content

Instantly share code, notes, and snippets.

Last active Jul 13, 2017
What would you like to do?
NC='\033[0m' # No Color
# This script assumes you've already taken the necessary initial steps to setup network connectivity and install vmware tools
# You probably want at least open-vm-tools-desktop to copy and paste this script and/or the URL to wget it.
echo -e "${YEL}--${NC}Starting script, installing commonly used programs"
dpkg --add-architecture i386 # Add support for 32bit stuff (ex. Ollydbg)
apt update
apt install open-vm-tools-desktop fuse exfat-utils exfat-fuse python3-bs4 cherrytree libreoffice network-manager-openvpn-gnome network-manager-openconnect-gnome wine32 html2text -y
# Other Notes
# Install FoxyProxy Basic - Setup for Zap/Burp
# Install TamperData
# Install Cookie Manager + or whatever that one is
# Turn on Global Dark Theme in Tweak Tools -> Appearance
# Turn off Intelligent autohide in Tweak Tools -> Extensions -> Dash to Dock
# Turn on Places status indicator in Tweak Tools -> Extensions
echo -e "${YEL}--${NC}Upgrading and installing useful PIP stuff"
# Upgrade then install some useful pip stuff
pip install --upgrade pip
pip install whatportis
pip install pinggraph
# apt-get install gtk-recordmydesktop # do I use this anymore?
# apt-get install libav-tools # do I use this anymore?
echo -e "${YEL}--${NC}Adding command line options"
# Add syntax to vim
echo "syntax on" >> .vimrc
# Add stuff to .bashrc
echo -e "\n" >> .bashrc
echo "# colorcat" >> .bashrc
echo "alias ccat='pygmentize -O bg=dark,style=colorful'" >> .bashrc
echo "# Python SimpleHTTPServer Shortcut" >> .bashrc
echo "alias simplehttp='python -m SimpleHTTPServer'" >> .bashrc
echo "# Open current directory in file explorer" >> .bashrc
echo "alias opendir='nautilus . 2>/dev/null'" >> .bashrc
echo "# some more ls aliases" >> .bashrc
echo "alias ll='ls -l'" >> .bashrc
echo "alias la='ls -A'" >> .bashrc
echo "alias l='ls -CF'" >> .bashrc
echo -e "${YEL}--${NC}Gathering BBK's Scripts"
wget --quiet -O /usr/local/bin/
chmod 755 /usr/local/bin/
wget --quiet -O /usr/local/bin/
chmod 755 /usr/local/bin/
wget --quiet -O /usr/local/bin/
chmod 755 /usr/local/bin/
wget --quiet -O /usr/local/bin/
chmod 755 /usr/local/bin/
wget --quiet -O /usr/local/bin/
chmod 755 /usr/local/bin/
echo -e "${YEL}--${NC}Installing Sublime"
wget --quiet -O /root/Downloads/sublime.deb
dpkg -i /root/Downloads/sublime.deb
echo -e "${YEL}--${NC}Downloading OpenCL - Install this later"
wget --quiet -O /root/Downloads/opencl.tgz
echo -e "${YEL}--${NC}Prepping Scripts"
# Make a dir for our scripts.
mkdir /root/Scripts
touch /root/Scripts/index.html # Comment this out for directory browsing
# We don't want to give away more info than necessary, replace the default apache page!
rm /var/www/html/index.html
# And replace with blank page
touch /var/www/html/index.html
echo -e "${YEL}--${NC}Gathering Other Useful Scripts"
# Some helpful scripts
wget --quiet -O /usr/local/bin/pingi
chmod 755 /usr/local/bin/pingi
wget --quiet -O /usr/local/bin/diffi
chmod 755 /usr/local/bin/diffi
wget --quiet -P /root/Scripts
chmod 755 /root/Scripts/unix-privesc-check
git clone /root/Scripts/Abeebus &> /dev/null
git clone /root/Scripts/EyeWitness &> /dev/null
git clone /root/Scripts/testssl &> /dev/null
git clone /root/Scripts/Empire &> /dev/null
git clone /root/Scripts/Windows-Exploit-Suggester &> /dev/null
git clone /root/Scripts/mimipenguin &> /dev/null
git clone /root/Scripts/kali-tools &> /dev/null
git clone /root/Scripts/WPSeku &> /dev/null
git clone /root/Scripts/unix-privesc-check2 &> /dev/null
git clone /root/Scripts/Linux_Exploit_Suggester &> /dev/null
git clone /root/Scripts/LinEnum &> /dev/null
git clone /root/Scripts/PRET &> /dev/null
/root/Scripts/EyeWitness/setup/ # Go ahead and run the setup
tar -C /root/scripts -czf /root/Scripts/upc2.tar.gz unix-privesc-check2 # compress for easy moving - extract with tar -zxvf upc2.tar.gz
echo -e "${RED}--${NC}Building NSESearch Data File"
echo -e "${GRN}--${NC}Manually install OpenCL drivers (Downloads Folder)"
echo -e "${GRN}--${NC}FIN - Consider running"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment