OJ / gobuster

Directory/File, DNS and VHost busting tool written in Go
Apache License 2.0
9.98k stars 1.2k forks source link

Windows 10 with Git, go get github.com/OJ/gobuster does nothing #228

Closed elnath78 closed 4 years ago

elnath78 commented 4 years ago

I get no error but neither works for me:

C:\>go get github.com/OJ/gobuster

C:\>

I'm stuck here.

OJ commented 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 ?

elnath78 commented 4 years ago

@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:\>
firefart commented 4 years ago

What's your output of go env? It looks like your PATH is not set to the go install dir

elnath78 commented 4 years ago

@FireFart I added the Go path, with go env I get %AppData%\Roaming\go\env

firefart commented 4 years ago

please post the full output of the command, otherwise we are not able to help you (alltough this is no gobuster issue)

elnath78 commented 4 years ago

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:\>
firefart commented 4 years ago

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

elnath78 commented 4 years ago

@FireFart

it is there but should not, I put Go in C:\Go folder how did it get there?

firefart commented 4 years ago

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