Skip to content

Instantly share code, notes, and snippets.

@austinsonger
Last active January 7, 2020 19:19
Show Gist options
  • Save austinsonger/c90a12a359a4b1817061c8e2cbafad66 to your computer and use it in GitHub Desktop.
Save austinsonger/c90a12a359a4b1817061c8e2cbafad66 to your computer and use it in GitHub Desktop.
sudo apt update -y
sudo apt list --upgradable -a
sudo apt upgrade -y
sudo dpkg --configure -a
sudo apt install -f
sudo apt update --fix-missing
sudo apt --fix-broken install -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
sudo apt install ubuntu-restricted-extras -y
sudo add-apt-repository universe
sudo apt install gdm3 -y
sudo sed -i "s/^# AutomaticLoginEnable = true/ AutomaticLoginEnable = true/" /etc/gdm3/custom.conf
sudo sed -i "s/^# AutomaticLogin = user1/ AutomaticLogin = root/" /etc/gdm3/custom.conf
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs npm -y
sudo apt install python-virtualenv python-dev python3-distutils -y
sudo apt install python3-pip -y
sudo pip install virtualenvwrapper
git config --global user.name austinsonger
git config --global user.email [email protected]
## GO LANGUAGE ##
sudo apt-get install golang-go
## Gophish ##
mkdir /opt/gophish
wget https://github.com/gophish/gophish/releases/download/v0.8.0/gophish-v0.8.0-linux-64bit.zip
apt install zip
sudo unzip gophish-v0.8.0-linux-64bit.zip -d /opt/gophish
cd /opt/gophish
# Clean
sudo apt autoremove --purge -y
sudo apt autoclean -y
sudo rm -rf /home/$USER/.local/share/Trash/*
sudo find /tmp/ -type f -mtime +1 -exec sudo rm {} \;
sudo find /tmp/ -type f -atime +1 -exec sudo rm {} \;
sudo apt remove -y
sudo apt clean -y
sudo apt clean all -y
sudo rm /home/$USER/.bash_history
sudo rm /home/$USER/.local/share/user-places.xbel.bak
sudo rm -rf /tmp/*
sudo rm -rf /var/tmp/*
sudo rm -rf /var/crash
sudo rm -rf /home/$USER/.cache/evolution/*
sudo rm -rf /home/$USER/.cache/thumbnails/*
sudo rm -rf /home/$USER/.cache/pip
find /home/$USER/.cache/ -type f -mtime +1 -exec rm {} \;
find /home/$USER/.cache/ -type f -atime +1 -exec rm {} \;
sudo find /var/backups/ -type f -mtime +1 -exec sudo rm {} \;
sudo find /var/backups/ -type f -atime +1 -exec sudo rm {} \;
sudo find /var/log/ -type f -mtime +1 -exec sudo rm {} \;
Sudo find /var/log/ -type f -atime +1 -exec sudo rm {} \;
sudo find /var/cache/apt/archives/ -type f -mtime +1 -exec sudo rm {} \;
sudo find /var/cache/apt/archives/ -type f -atime +1 -exec sudo rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment