Skip to content

Instantly share code, notes, and snippets.

@junnlikestea
Last active May 25, 2020 06:43
Show Gist options
  • Save junnlikestea/c67965a6bbf16a1edfb9b52bc404605f to your computer and use it in GitHub Desktop.
Save junnlikestea/c67965a6bbf16a1edfb9b52bc404605f to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt upgrade
sudo apt-get install build-essential fish libpcap-dev net-tools tmux
# port scanning
sudo apt-get install nmap
git clone https://github.com/blechschmidt/massdns.git && cd massdns && make && cd
git clone https://github.com/robertdavidgraham/masscan.git && cd masscan && make && cd
# go
sudo apt install golang-go
mkdir $HOME/go
#echo "export GOPATH=$HOME/go" >> .bash_profile
#echo "export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin" >> .bash_profile
#source .bash_profile
#nvim
curl -LO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
chmod u+x nvim.appimage
mv nvim.appimage /usr/local/bin/nvim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# All the tools we use.
go get github.com/ffuf/ffuf
go get -u github.com/tomnomnom/hacks/html-tool
go get -u github.com/tomnomnom/httprobe
go get -u github.com/tomnomnom/unfurl
go get -u github.com/tomnomnom/gf
cp -r $GOPATH/src/github.com/tomnomnom/gf/examples ~/.gf
go get -u github.com/tomnomnom/meg
go get github.com/tomnomnom/waybackurls
export GO111MODULE=on && go get -v github.com/OWASP/Amass/v3/...
pip3 install dnsgen
source .bash_profile
cp masscan/bin/masscan massdns/bin/massdns /usr/bin
# my dotfiles
git clone --bare https://github.com/junnlikestea/.dotfiles.git $HOME/.dotfiles
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no
cp -a ~/.dotfiles/ ~/.config/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment