-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
30 lines (27 loc) · 1.04 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
if [ -d '/usr/local/ddos' ]; then
echo; echo; echo "Please uninstall the previous version first!"
exit 0
else
mkdir /usr/local/ddos
fi
clear
echo; echo 'Installing DOS-Deflate 0.6'; echo
echo; echo -n 'Downloading source files...'
wget -q -O /usr/local/ddos/ddos.conf https://raw.github.com/Wulfspider/DDoS-Deflate/master/ddos.conf
echo -n '.'
wget -q -O /usr/local/ddos/LICENSE https://raw.github.com/Wulfspider/DDoS-Deflate/master/LICENSE
echo -n '.'
wget -q -O /usr/local/ddos/ignore.ip.list https://raw.github.com/Wulfspider/DDoS-Deflate/master/ignore.ip.list
echo -n '.'
wget -q -O /usr/local/ddos/ddos.sh https://raw.github.com/Wulfspider/DDoS-Deflate/master/ddos.sh
chmod 0755 /usr/local/ddos/ddos.sh
cp -s /usr/local/ddos/ddos.sh /usr/local/sbin/ddos
echo '...done'
echo; echo -n 'Creating cron to run script every minute... (Default setting)'
/usr/local/ddos/ddos.sh --cron > /dev/null 2>&1
echo '... Done!'
echo; echo 'Installation has completed.'
echo 'Config file is at /usr/local/ddos/ddos.conf'
echo
cat /usr/local/ddos/LICENSE | less