mauri870 / ransomware

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

Well done - but failes in build #21

Open david-bla opened 7 years ago

david-bla commented 7 years ago

Hey, first thank you for this example.

Yesterday I was able to build on a live kali without bigger problems. I changed my test setup and created some vms but i wasnt able to build sucesfully again... One Issue is that after the debian install "apt install golang" there is no $GOPATH and $GOROOT set. I usually check where the main files are "/usr/lib/go" and export GOROOT. I set the GOPATH to $HOME/go and checked for "apt install build-essential". ^- maybe put these in "prerequisites"

I added the working dir to the PATH env ( export PATH=$PATH:$GOPATH/bin ).

Today im not able to build your project on any system. (Tried a debian8, ubuntu14, kali) I got the same error over and over again: mkdir -p /root/go/src/github.com/mauri870/ransomware/bin/server cd /root/go/src/github.com/mauri870/ransomware/build/ransomware && GOOS=windows GOARCH=386 go build --ldflags "-s -w -H windowsgui -X main.ServerBaseURL=https://192.168.31.131:8080" -o /root/go/src/github.com/mauri870/ransomware/bin/ransomware.exe

github.com/mauri870/ransomware/build/ransomware

runtime.main: call to external function main.main runtime.main: undefined: main.main Makefile:33: recipe for target 'build' failed make: *** [build] Error 2

Thank you in advance

david-bla commented 7 years ago

The docker way is working well! I've to dig deeper in golang and docker. I stated docker for using ci with gitlab but it seems so useful, like the golang (you project are the first golang files i red) nice language!

But anyway I'd like to get behind this runtime.main calles main.main issue... seemed to be related to a env or ??? the functions are defined properly and I didn't change these lines.