DOS-Attack-simulation

Simulating DoS Attack by detecting it first, then preventing it. Detection is achieved by predefining a threshold number of packets to be sent from a certain IP address. Prevention is achieved by blacklisting IP addresses that pass the threshold.

Dependencies

you must make sure that python 3.9 is installed

sudo apt install python3.9

then install scapy package

pip install -U scapy.all

Notes

  • you must make sure that script files have execute priviliges by running
chmod +x scriptname