Open MRxC0DER opened 7 years ago
Hi @MRxC0DER, you need to run make deps
and it will install the necessary libs from here
Don't forget to have the dir $GOPATH/bin
in your $PATH variable
can you write the steps to install this virus in windows please :)
The steps are described in detail on the README, if you have any related question please post here
After getting this same problem i tried to make deps and i get'
root@kali:~/Desktop/ransomware-master# make deps go get -v github.com/Masterminds/glide glide install make: glide: Command not found recipe for target 'deps' failed make: *** [deps] Error 127
Also how do i have the dir $GOPATH/bin in my $PATH variable. Thanks in advance.
Simply append the $GOPATH/bin to your PATH @pDotCom I use this in my .profile(or .bashrc, .zshrc if you preffer):
export PATH=$PATH:$GOPATH/bin
Don't forget to run source .yourfile
Ok i added the lines and make deps worked but now when i GOOS=windows make I get:
cp /root/Desktop/ransomware-master/build/ransomware/ransomware.syso /root/Desktop/ransomware-master/build/unlocker/unlocker.syso cd /root/Desktop/ransomware-master/cmd && cp -r ransomware unlocker server /root/Desktop/ransomware-master/build cd /root/Desktop/ransomware-master/build/server && env GOOS=linux go run /src/crypto/tls/generate_cert.go --host localhost stat /src/crypto/tls/generate_cert.go: no such file or directory Makefile:22: recipe for target 'pre-build' failed make: *** [pre-build] Error 1 And thanks for the help i'm learning a lot from playing with this i'm studying to program games and wanted to try something new.
@pDotCom You need to set your GOROOT env too.
If you installed Go in /go
, set this path as your GOROOT:
export GOROOT=/go
I'm sure im almost there because now i get all the way to the bottom of the build just before it finishes i get: *standard.Server does not implement "github.com/mauri870/ransomware/vendor/github.com/labstack/echo/engine".Server (wrong type for SetHandler method) have SetHandler("github.com/labstack/echo/engine".Handler) want SetHandler("github.com/mauri870/ransomware/vendor/github.com/labstack/echo/engine".Handler) Makefile:33: recipe for target 'build' failed make: *** [build] Error 2
Thanks in advance.
i made the mauri870 folder myself and put it in root/code/go/src then added the Github.com folder
GOPATH is different than GOROOT GOPATH holds your installed packages and GOROOT the root of the Go compiler and libraries
You don't need to make any changes in the project structure to compile, take a look at the .travis.yaml. After a normal Go installation, you need only to setup your GOROOT, add GOPATH/bin to your path and go get the project as described in the README. You can also use the Dockerfile provided
Can you explain this please:
Simply append the $GOPATH/bin to your PATH @pDotCom I use this in my .profile(or .bashrc, .zshrc if you preffer):
export PATH=$PATH:$GOPATH/bin Don't forget to run source .yourfile
The important point is to setup GOPATH and GOROOT correctly. In my installations I'd to set: export GOPATH=$HOME\go export GOROOT=\usr\lib\go explort PATH=$PATH:$GOPATH\bin
i was once able to build sucessfully but now i get a error described @ #21
The point @mauri870 mentioned with
Don't forget to run source .yourfile
is about to make the env change persistent. (otherwise a restart of your system will cause in unsetted $GOPATH and $GOROOT and of course a PATH variable without the go binaries in it.
For Clarification, here's how my ~/.profile is configured, This should work correctly ----->
export GOPATH="$HOME/go_projects"
export GOBIN="$GOPATH/bin"
export PATH=$PATH:$GOPATH/bin
export GOROOT=/usr/local/go
Note:
go_projects is the folder I made during installation of Go to hold my projects. It contains bin, pkg and src.
/usr/local/go is the Folder where I installed go
Don't forget to run source ~/.profile
Problem Photo
i hope you help me <3