Como instalar go no Kali Linux

Como instalar go no Kali Linux

Como instalar a linguagem de programação Go no Linux

Para utilizar scripts escritos em go no Kali Linux, utilize os comandos abaixo para configurar o ambiente antes de utilizar esses scripts:

[sudo apt install -y golang

pico .zshrc]

Adicione o trecho abaixo ao final do arquivo .zshrc . Caso use bash o arquivo é .bashrc

[export GOROOT=/usr/lib/go

export GOPATH=$HOME/go

export PATH=$GOPATH/bin:$GOROOT/bin:$PATH]

Depois feche e abra o terminal novamente. Em seguida instale o script desejado com o comando go install, exemplo:

[go install -v github.com/HuntDownProject/hednsextractor/cmd/hednsextractor@latest

nslookup google.com | awk ‘/Address: / {print $2}’ | hednsextractor -silent -only-domains >> domains.txt]

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
a quick guide [part 1]
Read More

a quick guide [part 1]

The world of AI has been hyped for more than two years now since the release of ChatGPT…