This project detects and mitigates Denial-of-Service (DoS) attacks using Python and Scapy. It includes:
-
DoS Blocker (detects & blocks high-rate traffic and Nimda worm signatures).
-
DoS Flooder (simulates a flood attack).
-
Nimda Worm Packet (sends a malicious request to test detection).
-
IP Whitelist & Blacklist , Explicitly allow or deny certain IPs.
-
Packet Rate Limiting , Blocks sources sending too many packets per second.
-
Signature Detection , Identifies known attack payloads.
-
Logging System , Records all blocked IPs and events.
-
Persistent iptables Rules , Ensures blocked IPs stay blocked after reboot.
Run on both machines:
sudo apt update && sudo apt install python3-pip net-tools
pip3 install scapy-
sudo python3 dos_blocker.py
-
sudo python3 flooder.py or sudo python3 nimda_packet.py
-
ctrl + c