owasp-amass / amass

In-depth attack surface mapping and asset discovery
https://owasp.org/www-project-amass/
Other
11.51k stars 1.84k forks source link

Can't find AMASS after install #1031

Open tlimlam opened 1 week ago

tlimlam commented 1 week ago

Hello, In #306 you write: The binary should be located at $GOPATH/bin/amass

I don't understand how I achieve this.

I installed Go after removing previous versions and now have the right one which I installed in usr/local (as root). Then I installed Amass and the command seemed to work, installing a bunch of stuff with no apparent error

image

Now this is what I have:

ws16@ip-172-31-10-26:/usr/local$ go env GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/home/ws16/.cache/go-build' GOENV='/home/ws16/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/home/ws16/go/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/home/ws16/go' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/local/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.22.4' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/dev/null' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build499827630=/tmp/go-build -gno-record-gcc-switches'

Then trying this: image

I certainly do have a PATH issue, but since I am new to all of this, I don't understand how I can place the binary in the right place it it is not.

Thank you!