mauri870 / ransomware

A POC Windows crypto-ransomware (Academic). Now Ransom:Win32/MauriCrypt.MK!MTB
876 stars 411 forks source link

Help Me Sir #20

Open MRxC0DER opened 7 years ago

MRxC0DER commented 7 years ago

Problem Photo

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

i hope you help me <3

mauri870 commented 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

MRxC0DER commented 7 years ago

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

mauri870 commented 7 years ago

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

pDotCom commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

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

mauri870 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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