Closed elnath78 closed 4 years ago
Works perfectly for me
C:\Go>ver
Microsoft Windows [Version 10.0.18363.836]
C:\Go>go version
go version go1.14.3 windows/amd64
C:\Go>go get github.com/OJ/gobuster
C:\Go>go install github.com/OJ/gobuster
C:\Go>gobuster help
Usage:
gobuster [command]
Available Commands:
dir Uses directory/file brutceforcing mode
dns Uses DNS subdomain bruteforcing mode
help Help about any command
vhost Uses VHOST bruteforcing mode
Flags:
--delay duration Time each thread waits between requests (e.g. 1500ms)
-h, --help help for gobuster
-z, --noprogress Don't display progress
-o, --output string Output file to write results to (defaults to stdout)
-q, --quiet Don't print the banner and other noise
-t, --threads int Number of concurrent threads (default 10)
-v, --verbose Verbose output (errors)
-w, --wordlist string Path to the wordlist
Use "gobuster [command] --help" for more information about a command.
Have you run go install
as well as go get
?
@OJ I tried that again:
C:\>ver
Microsoft Windows [Versione 10.0.18363.836]
C:\>go version
go version go1.14.3 windows/amd64
C:\>go get github.com/OJ/gobuster
C:\>go install github.com/OJ/gobuster
C:\>gobuster help
"gobuster" non è riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
C:\>
What's your output of go env
? It looks like your PATH is not set to the go install dir
@FireFart
I added the Go path, with go env
I get %AppData%\Roaming\go\env
please post the full output of the command, otherwise we are not able to help you (alltough this is no gobuster issue)
C:\>go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\pc\AppData\Local\go-build
set GOENV=C:\Users\pc\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\pc\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\pc\AppData\Local\Temp\go-build313898198=/tmp/go-build -gno-record-gcc-switches
C:\>
This looks correct. Have a look into C:\Users\pc\go\bin
and if gobuster.exe
is there you need to add this to your PATH
@FireFart
it is there but should not, I put Go in C:\Go
folder how did it get there?
Because your binaries end up in the user folder and not the install folder. You need to add this path to your PATH which should be done by the installer https://golang.org/doc/install#windows
Closing this as it's no gobuster issue
I get no error but neither works for me:
I'm stuck here.