owasp-amass / amass

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

Cannot Install Amass v3 #306

Closed Wayc0des-Land closed 4 years ago

Wayc0des-Land commented 4 years ago

Hi,

Last i use amass 3.1.10 and today i got problem when try upgrade to a new version

# go version
go version go1.13.3 linux/amd64
#  go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/wayc0de/.cache/go-build"
GOENV="/home/wayc0de/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/wayc0de/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build041953940=/tmp/go-build -gno-record-gcc-switches"

Step by step

export GO111MODULE=on

and then

go get -u github.com/OWASP/Amass/v3

then verify where is amass locate

# cd $GOPATH/src/github.com/OWASP/Amass
-bash: cd: /home/wayc0de/go/src/github.com/OWASP/Amass: No such file or directory

last i tried

# go get -u github.com/OWASP/Amass/...
go: finding github.com/sensepost/maltegolocal latest
go: finding golang.org/x/sys latest
build github.com/OWASP/Amass/cmd/amass: cannot load github.com/OWASP/Amass/amass: module github.com/OWASP/Amass@latest found (v2.6.0+incompatible), but does not contain package github.com/OWASP/Amass/amass

anyone can help me?

Thanks

caffix commented 4 years ago

The binary should be located at $GOPATH/bin/amass

Wayc0des-Land commented 4 years ago

solved :)

thank you