{/* Header with improved spacing and centering */}
Torshammer DDoS Simulator
An educational tool simulating HTTP flood DDoS attacks to raise awareness about cybersecurity threats. Configure parameters, launch simulated attacks, and monitor real-time metrics.
⚠️ For educational purposes only. Real DDoS attacks are illegal and unethical.
{/* Configuration Panel with better form styling */}
{/* Statistics Panel with card grid */}
{/* Enhanced Traffic Chart */}
{/* Logs Panel with scrollable mono font */}
{/* Footer with better styling */}
🎯 Attack Configuration
) => setTarget(e.target.value)}
className="w-full bg-gray-700/80 border border-gray-600 rounded-xl px-4 py-3 text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-transparent transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed"
placeholder="https://example.com"
disabled={isAttacking}
/>
) => setThreads(parseInt(e.target.value))}
className="w-full h-2 bg-gray-600 rounded-lg appearance-none cursor-pointer accent-red-500 disabled:cursor-not-allowed disabled:opacity-50"
disabled={isAttacking}
/>
Low (10)
High (200)
) => setTimeout(parseInt(e.target.value))}
className="w-full h-2 bg-gray-600 rounded-lg appearance-none cursor-pointer accent-red-500 disabled:cursor-not-allowed disabled:opacity-50"
disabled={isAttacking}
/>
{/* Action buttons with improved layout and transitions */}
Fast (1ms)
Slow (30ms)
📊 Live Statistics
Requests Sent
{requestsSent.toLocaleString()}
Data Transferred
{(bytesSent / 1024 / 1024).toFixed(2)} MB
Success Rate
{successRate.toFixed(1)}%
Attack Status
{isAttacking ? '🔥 ACTIVE' : '⏸️ IDLE'}
📈 Real-Time Traffic (RPS - Last 20s)
📝 Attack Console
{logs.map((log, index) => (
{/* Disclaimer Section */}
[{log.timestamp}]
{log.message}
))}
Important Disclaimer
This simulator is strictly for educational and awareness purposes. It performs no real network activity.
DDoS attacks are criminal offenses under laws like the CFAA. Use knowledge to defend, not attack.