Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Help Me Sir #20

Open
MRxC0DER opened this issue Jul 15, 2017 · 13 comments
Open

Help Me Sir #20

MRxC0DER opened this issue Jul 15, 2017 · 13 comments

Comments

@MRxC0DER
Copy link

Problem Photo

http://i.imgur.com/e5EmHKQ.png

i hope you help me <3

@mauri870
Copy link
Owner

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

@MRxC0DER
Copy link
Author

can you write the steps to install this virus in windows please :)

@mauri870
Copy link
Owner

The steps are described in detail on the README, if you have any related question please post here

@pDotCom
Copy link

pDotCom commented Jul 25, 2017

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.

@mauri870
Copy link
Owner

mauri870 commented Jul 25, 2017

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

@pDotCom
Copy link

pDotCom commented Jul 26, 2017

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.

@mauri870
Copy link
Owner

@pDotCom You need to set your GOROOT env too.

If you installed Go in /go, set this path as your GOROOT:

export GOROOT=/go

@pDotCom
Copy link

pDotCom commented Jul 26, 2017

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.

@pDotCom
Copy link

pDotCom commented Jul 26, 2017

i made the mauri870 folder myself and put it in root/code/go/src then added the Github.com folder

@mauri870
Copy link
Owner

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

@infinitygod17
Copy link

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

@david-bla
Copy link

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.

@AguNnamdi
Copy link

AguNnamdi commented Aug 17, 2017

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:

  1. go_projects is the folder I made during installation of Go to hold my projects. It contains bin, pkg and src.

  2. /usr/local/go is the Folder where I installed go

  3. Don't forget to run source ~/.profile

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants