Last active
January 21, 2020 23:45
-
-
Save 0xbepresent/d3a5ae1a6aa9e94e21b725ccd01b2128 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y build-essential libssl-dev libffi-dev python-dev | |
sudo apt-get install -y python-setuptools | |
sudo apt-get install -y libldns-dev | |
sudo apt-get install -y python3-pip | |
sudo apt-get install -y python-pip | |
sudo apt-get install -y python-dnspython | |
sudo apt-get install -y git | |
sudo apt-get install -y jq | |
sudo apt-get install -y vim | |
sudo apt-get install -y zsh | |
sudo apt-get install -y python-pygments | |
sudo apt-get install -y screen | |
sudo apt-get install -y sqlite3 | |
sudo apt install -y ruby-full | |
sudo apt install -y chromium-browser | |
#install zsh | |
echo "Installing ZSH..." | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
chsh -s `which zsh` | |
echo "Adding ZSH autosuggestion" | |
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions | |
echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc | |
source ~/.zshrc | |
echo "Installing Pygmentize..." | |
echo "alias pig='pygmentize -g'" >> ~/.zshrc | |
source ~/.zshrc | |
echo "Installing awesome vim..." | |
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime | |
sh ~/.vim_runtime/install_awesome_vimrc.sh | |
#install go | |
if [[ -z "$GOPATH" ]];then | |
echo "It looks like go is not installed. Installing Golang..." | |
wget https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz | |
sudo tar -xvf go1.13.1.linux-amd64.tar.gz | |
sudo mv go /usr/local | |
export GOROOT=/usr/local/go | |
export GOPATH=$HOME/go | |
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
echo 'export GOROOT=/usr/local/go' >> ~/.zshrc | |
echo 'export GOPATH=$HOME/go' >> ~/.zshrc | |
echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.zshrc | |
source ~/.zshrc | |
sudo rm go1.13.1.linux-amd64.tar.gz | |
sleep 1 | |
fi | |
#create a tools folder in ~/ | |
mkdir ~/security | |
mkdir ~/security/tools | |
cd ~/security/tools/ | |
echo "Installing Amass..." | |
export GO111MODULE=on | |
go get -v -u github.com/OWASP/Amass/v3/... | |
echo "done" | |
echo "Installing Assetfinder..." | |
go get -v -u github.com/tomnomnom/assetfinder | |
echo "done" | |
echo "Installing Aquatone" | |
go get -v github.com/michenriksen/aquatone | |
echo "done" | |
echo "Installing dirsearch" | |
git clone https://github.com/maurosoria/dirsearch.git | |
echo "alias dirsearch='python3 ~/security/tools/dirsearch/dirsearch.py '" >> ~/.zshrc | |
echo "done" | |
echo "Installing GoogleDorker" | |
git clone https://github.com/ZephrFish/GoogD0rker.git | |
echo "alias godork='python ~/security/GoogD0rker/googd0rker.py'" >> ~/.zshrc | |
echo "done" | |
echo "Installing nmap" | |
sudo apt-get install -y nmap | |
echo "done" | |
echo "Installing httprobe" | |
go get -v -u github.com/tomnomnom/httprobe | |
echo "done" | |
echo "Installing subjack" | |
go get github.com/haccer/subjack | |
echo "done" | |
echo "Installing altdns" | |
pip install py-altdns | |
echo 'export PATH=~/.local/bin:$PATH' >> ~/.zshrc | |
echo "done" | |
echo "Installing ffuf" | |
go get github.com/ffuf/ffuf | |
echo "done" | |
echo "Installing httprobe" | |
go get -u github.com/tomnomnom/httprobe | |
echo "done" | |
echo "Installing rmate" | |
mkdir ~/bin | |
curl -Lo ~/bin/rmate https://raw.githubusercontent.com/textmate/rmate/master/bin/rmate | |
chmod a+x ~/bin/rmate | |
echo 'export PATH="$PATH:$HOME/bin"' >> ~/.zshrc | |
echno 'alias atom="rmate"' >> ~/.zshrc | |
echo "done" | |
echo "Downloading Seclists" | |
cd ~/security/tools/ | |
git clone https://github.com/danielmiessler/SecLists.git | |
cd ~/security/tools/SecLists/Discovery/DNS/ | |
cd ~/security/tools/ | |
echo "done" | |
echo "Installing ES" | |
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.5.1 | |
source ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment