projectdiscovery / nuclei

Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
https://docs.projectdiscovery.io/tools/nuclei
MIT License
20.8k stars 2.52k forks source link

Cannot upgrade from v2.3.4 to newest version #1076

Closed roarnyg closed 3 years ago

roarnyg commented 3 years ago

I run the command $ GO111MODULE=on go get -u -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei

go: found github.com/projectdiscovery/nuclei/v2/cmd/nuclei in github.com/projectdiscovery/nuclei/v2 v2.5.2
go: github.com/golang/snappy upgrade => v0.0.4
go: github.com/golang/protobuf upgrade => v1.5.2
go: github.com/hashicorp/go-cleanhttp upgrade => v0.5.2
go: golang.org/x/net upgrade => v0.0.0-20210929193557-e81a3d93ecf6
go: github.com/mattn/go-isatty upgrade => v0.0.14
go: go.etcd.io/bbolt upgrade => v1.3.6
go: google.golang.org/protobuf upgrade => v1.27.1
...

Afterwards i type nuclei -v ...and gets: v2.3.4

What have I tried so far? I have tried removing everything from /home/roar/go/pkg/mod/github.com/projectdiscovery/nuclei/

git clone https://github.com/projectdiscovery/nuclei.git; cd nuclei/cmd/nuclei/; go build; mv nuclei /usr/local/bin/; nuclei -version

go clean --modcache

echo $PATH | grep go /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/lib/go/../bin:/home/roar/go/bin:/home/roar/skript/sub404/:/home/roar/.go/bin:/home/roar/go/bin:/home/roar/skript

I'm really stuck in this old nuclei version. It's still version 2.3.4

What other steps should I do to upgrade to newer version, for example v2.5.2?

ehsandeep commented 3 years ago

@roarnyg use go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest this is something we updated in "dev" version of the readme.