# Server setup for Bug Bounty

### Download go lang

{% embed url="<https://golang.org/dl/>" %}
Download the latest version of go lang
{% endembed %}

### Extract go lang

```bash
tar -C /usr/local/ -xzf {insert the file name}
```

### Setting go variables&#x20;

```bash
nano ~/.zshrc
nano ~/.bashrc
```

```bash
mkdir -p ~/go
```

Put the below text into zshrc and bashrc files

```bash
# GO Lang Variables
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
export GOROOT=/usr/local/go
PATH=$PATH:$GOROOT/bin/:$GOPATH/bin
```

Source the files and check the go version

```bash
sudo apt update -y && sudo apt upgrade -y
source ~/.zshrc ~/.bashrc
go version
```

***

### ZSH shell setup with [PowerLevel10k](https://github.com/romkatv/powerlevel10k)

```bash
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
```

```bash
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
```

Configuring the \~/.zshrc file

```bash
ZSH_THEME="powerlevel10k/powerlevel10k"
```

Source the \~/.zshrc file to apply the changes

```bash
source ~/.zshrc
```

***

### Bug bounty hunter's tools:

```bash
go install -v github.com/tomnomnom/gf@latest
go install -v github.com/tomnomnom/gron@latest
go install -v github.com/tomnomnom/unfurl@latest
go install -v github.com/trap-bytes/403jump@latest
go install -v github.com/owasp-amass/amass/v4/...@master
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
```
