- Run command :
bash <(curl -s https://raw.githubusercontent.com/Kurama250/Alert_L7_DDoS/main/setup.sh)
apt update && apt upgrade -y
apt install npm nodejs git -y
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&\
apt-get install -y nodejs
git clone https://github.com/Kurama250/Alert_L7_DDoS.git
cd Alert_L7_DDoS/
npm install axios tail
npm install pm2 -g
nano index.js
- And you also change this line :
const webhookURL = 'YOUR_WEBHOOK_LINK';
- To modify the number of detection requests modified this line :
const threshold = 750;
- After doing this, press CTRL + X and you press Y and ENTER then you do the following commands !
pm2 start index.js -n DDoS_Alert
- Demo :