How To Install Go Language in Kali Linux for Bug Bounty Hunting

Ravindra Dagale
3 min readJan 19, 2022

--

Hi all, we will see how to install the go language in Kali Linux.

In Kali Linux, we do have a go language package but using it we can’t do much like installing multiple tools written in go lang for bug bounty hunting, etc., and sometimes it is an old version of go.

So, to run all tools we need to install go lang manually from an external source that is from the go lang website only.

Now, please follow the below instructions properly and then you good go…!!!

Open terminal
Run : sudo su
▶ Visit : https://golang.org/dl/

▶ You can download latest go Lang for Linux via GUI or CLI (will do it using CLI)
▶ Download latest go Lang for Linux

Run : wget https://golang.org/dl/go[version]linux-amd64.tar.gz

▶ Extract the archive you downloaded into /usr/local, creating a Go tree in /usr/local/go

Run : rm -rf /usr/local/go && tar -C /usr/local -xzf go[Version]linux-amd64.tar.gz

▶ Add environment PATH variables for go Lang :

Run : nano ~/.zshrc

Go to the bottom of this file and enter below lines -

GOPATH=/root/go-workspace
export GOROOT=/usr/local/go
PATH=$PATH:$GOROOT/bin/:$GOPATH/bin

Click : CTRL+O and press ENTER to save the file
Click : To exit from this file click CTRL+X
To refresh the terminal

Run : source ~/.zshrc 
Check installation : go version

Thank You..!! ☺️
Ping us on Instagram : https://www.instagram.com/Infosec97/

For more info visit : https://go.dev/

--

--