Hi, Let me guess having issues with your normal go installation process,
First of all check your go version, If its 1.17 and above , this solution will help,
The issue stems from the fact that:
Starting in Go 1.17, installing executables with go get
is deprecated. go install
may be used instead.
In Go 1.18, go get
will no longer build packages; it will only be used to add, update, or remove dependencies in go.mod
. Specifically, go get
will always act as if the -d
flag were enabled.
well with this in mind, we can do something else:
The previous solution would be to go the github repo of the tool you had in mind for example Tomnomnom’s Waybackurls(a fantastic tool for bug hunting) and use the install instruction i.e
▶ go get github.com/tomnomnom/waybackurls
but as from go version 1.17 and above you’d be met with :
go get: installing executables with ‘go get’ in module mode is deprecated.
Use ‘go install pkg@version’ instead.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run ‘go help get’ or ‘go help install’.
so let’s use the new way i.e switch the “get” with “install” and add a version suffix at the end or a simple trick is to add “@latest “ ,so it would be
go install github.com/tomnomnom/waybackurls@latest
then run :
cp /root/go/bin/waybackurls /usr/local/go/bin/
and finally check for proper installation with:
waybackurls -h
and with that you are done, Happy Hacking!!
for more information consult the official go documentation on :