Beruflich Dokumente
Kultur Dokumente
/bin/bash
clear
lightgreen='\e[1;32m'
again='\e[1;32m'
red='\e[1;31m'
yellow='\e[1;33m'
white='\e[1;37m'
again='y'
while [ $again == 'y' ] || [ $again == 'Y' ];
do
echo -e $red "
_
_
___
_
"
echo -e $red " _ __ | |__ __ _ _ __ | |_ / _ \ _ __ ___
| |_ ___ __ _ _
__ ___ "
echo -e $red "| _ \| _ \ / _ | _ \| __| | | | _ _ \ _____| __/ _ \/ _ |
_ _ \ "
echo -e $white "| |_) | | | | (_| | | | | |_| |_| | | | | | |_____| || __/ (_|
| | | | | |"
echo -e $white "| .__/|_| |_|\__,_|_| |_|\__|\___/|_| |_| |_|
\__\___|\__,_
|_| |_| |_|"
echo -e $white "|_|"
echo ''
echo -e $yellow'Pilihan :'
echo -e $red"
1) Tambah user system"
echo
"
2) Atur user setingkat root"
echo
"
3) Ganti password root"
echo
"
4) Nonaktif akun user tidak dipakai"
echo
"
5) Atur permission file system"
echo
"
6) Hardening SSH"
echo
"
7) Hardening web server apache"
echo
"
8) Hardening PHP.ini"
echo
"
9) Reset password root mysql"
echo
"
10) Mysql secure installation"
echo
"
11) Hardening kernel"
echo
"
12) Otomatis Tendang Serangan DOS"
echo
"
13) Otomatis Tendang Port Scanner"
echo
"
14) Cari PHP Backdoors"
echo
"
15) Install Linux Malware Detect"
echo
"
16) Scanning dengan Linux Malware Detect"
echo
"
17) Install DDOS Protection"
echo
"
18) Aktifkan DDOS Protection"
echo
"
19) Uninstall DDOS Protection"
echo
"
20) Atur Firewall Iptables"
echo
"
21) Cek Firewall Iptables"
echo
"
22) Crontab"
echo
"
X ) Keluar"
echo -n -e $yellow'\033[4mPilih >\033[0m'; tput sgr0
read choose
if test $choose == '1'
then
echo "Tambah user"
read -p 'Nama user ssh : ' user
adduser $user
elif test $choose == '2'
then
echo "Atur user setingkat root"
read -p 'Username :' userroot
echo "$userroot ALL=(ALL:ALL) ALL" >> /etc/sudoers
echo "User $userroot telah setingkat root"
mysql_secure_installation
elif test $choose == '11'
then
echo "Linux kernel hardening"
echo "net.ipv4.tcp_max_syn_backlog = 4096" >> /etc/sysctl.conf
echo "net.ipv4.tcp_syncookies = 1" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.rp_filter = 1" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.accept_source_route = 0"
>> /etc/sysctl.conf
echo "net.ipv4.conf.all.secure_redirects = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.accept_redirects = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.rp_filter = 1" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.accept_source_route = 0"
>> /etc/sysctl.conf
echo "net.ipv4.conf.default.secure_redirects = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.accept_redirects = 0" >> /etc/sysctl.conf
echo "net.ipv4.icmp_echo_ignore_broadcast = 1" >> /etc/sysctl.conf
echo "net.ipv4.ip_forward = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.send_redirects = 0" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.send_redirects = 0"
>> /etc/sysctl.conf
echo "net.ipv4.icmp_ignore_bogus_error_responses = 1" >> /etc/sysctl.conf
sleep 2
echo ""
elif test $choose == '12'
then
../lib/./blocking.sh &
ps ax | grep blocking.sh
elif test $choose == '13'
then
../lib/./antiscan.pl &
ps ax | grep antiscan
elif test $choose == '14'
then
echo -n "Masukan web dir: "
read web
PATTERNS="shell_exec|system|base64_decode|exec|gzinflate|eval"
grep -RPl --include=*.{php,txt} "($PATTERNS)" $web
elif test $choose == '15'
then
cd ../lib/maldet/ && ./install.sh && cp -rf sigs /usr/local/maldetect/ &
& cd ../../submenu
elif test $choose == '16'
then
echo -n -e $lightgreen" Masukan dir yang ingin discanning. Contoh /var/w
ww/ : ";
read maldet
maldet -a $maldet
elif test $choose == '17'
then
cd ../lib/ddos/debian/ && ./install.sh && cd ../../../submenu
elif test $choose == '18'
then
/usr/local/ddos/./ddos.sh -c
'21'
'X'
'x'
(y/n) :";
while [ $again != 'y' ] && [ $again != 'Y' ] && [ $again != 'n' ] && [ $aga
in != 'N' ];
do
echo -n "Kembali (y/n) :";
read again;
done
done