This script demonstrates a DoS (Denial-of-Service) attack for educational purposes only. It sends UDP packets to a target IP and port to demonstrate the concept of network flooding.
- DoS: This script sends all traffic from a single source (your machine), which is a hallmark of DoS attacks.
- DDoS: A true Distributed Denial-of-Service attack involves multiple machines sending packets simultaneously, overwhelming the target server.
To create a DDoS-like simulation, you can:
- Run this script on multiple devices or virtual machines targeting the same server.
- Use threading or multiprocessing to simulate multiple "sources" from a single machine.
- Leverage distributed systems like cloud instances to mimic multiple attackers.
- Custom target IP and port input.
- Simulated attack progress display.
- UDP packet flooding for testing server load.
- Python 3.x installed on your system.
Clone the repository to your local machine:
git clone https://github.com/0xZ1R0/DDos
cd DDos
Ensure you have Python 3 installed. To check for the python version you may run:
python --version
or
python3 --version
Updating on Linux:
sudo apt update
sudo apt install -y python3
python3 --version
Updating on Windows:
- Download Installer: Visit the Python Downloads Page and download the latest version.
- Run Installer:
- Double-click the downloaded .exe file.
- Ensure the option "Add Python to PATH" is checked during installation.
- Verify Installation: Open Command Prompt and check the version:
python --version
Installing figlet and lolcat:
sudo apt install figlet && sudo apt install lolcat
Run the script to start the DoS simulation:
python attack.py
When prompted:
- Enter the target IP (e.g., 127.0.0.1 for local testing).
- Enter the target port (e.g., 8080).
For testing purposes, you can set up a local HTTP server using Python:
- Open a terminal and navigate to a directory.
- Start the server:
python -m http.server 8080
- The server will be available at http://127.0.0.1:8080.
Original Author: Majid Tdeni Modified By: 0xZ1R0