Jump to content
Sign in to follow this  
starlin1337

[RST]StarLin1337-Tool

Recommended Posts

Salut ! Am realizat un mic tool in bash care instaleaza LAMP , SSH , FTP +Securizare .

Salvati sursa intr-un notepad si salvati cu extensia .sh (exemplu: starlin1337.sh)

si executati ./starlin1337.sh dupa ce ia-ti acordat drepturi desigur .

#!/bin/bash
echo -e "\e[91mStarLinux tool by \e[91m starlin1337 "
sleep 2
echo -e "Aceasta unealta a fost creata pentru RSTforums.com "
sleep 2
echo -e "The essence of the future is the digital core "
sleep 2
echo " =============================================== "
sleep 2
OPTIUNI="Instalare-LAMP Instalare-SSH Instalare-FTP Securizare-apache2 Securizare-SSH "
select opt in $OPTIUNI; do
if [ $opt = "Instalare-LAMP" ]; then
echo " Instalare apache2..."
sleep 1
/usr/bin/apt-get install apache2
sleep 1
echo "Instalarea apache2 a fost efectuata cu succes !"
sleep 1
echo "Instalare php server..."
sleep 1
/usr/bin/apt-get apt-get install php5 libapache2-mod-php5
echo "Instalarea mysql a fost efectuata cu succes !"
sleep 1
echo "Instalare MySQL..."
/usr/bin/apt-get install mysql-server
echo "Instalarea MySQL a fost efectuata cu succes !"
sleep 1
elif [ $opt = "Iesire" ]; then
echo "Pa,pa!Multumesti lui starlin1337 pentru tool si viziteaza rstforums.com"
fi
if [ $opt = "Instalare-SSH" ]; then
sleep 1
echo "Instalare SSH server ..."
/usr/bin/apt-get install openssh-server
sleep 1
echo "Instalarea serverului SSH a fost efectuata cu succes !"
elif [ $opt = "Instalare-FTP" ]; then
/usr/bin/apt-get install vsftpd
echo "Instalarea serverului FTP a fost efectuata cu succes !"
fi
if [ $opt = "Securizare-apache2" ]; then
echo "Securizare LAMP SERVER(doar apache2)..."

echo "TraceEnable Off" >> /etc/apache2/apache2.conf
echo "LimitRequestBody 25000" >> /etc/apache2/apache2.conf
echo "LimitRequestFields 40" >> /etc/apache2/apache2.conf
echo "LimitRequestFieldSize 4000" >> /etc/apache2/apache2.conf
echo "LimitRequestLine 4000" >> /etc/apache2/apache2.conf
echo "MaxRequestsPerChild 100000" >> /etc/apache2/apache2.conf
echo "Dezactivate directory listing"
a2dismod autoindex
service apache2 restart
elif [ $opt = "Securizare-SSH" ]; then
sleep 1
echo "Port 1996" >> /etc/ssh/sshd_config
echo "Port 1996" >> /etc/ssh/ssh_config
sleep 1
echo "Noul port al serverului SSH va fi 1996 !"
echo "Protocol 2" >> /etc/ssh/sshd_config
echo "Protocol 2" >> /etc/ssh/ssh_config
echo "PermitRootLogin no" >> /etc/ssh/sshd_config
echo "PermitRootLogin no" >> /etc/ssh/ssh_config
sleep 1
echo "De acum nu va mai fi disponibila logarea ca root doar folosirea comenzi sudo "
sleep 1
fi

done

  • Upvote 1

Share this post


Link to post
Share on other sites

De ce ai nevoie de 2 servicii de connection ftp si ssh? de ce nu lasi unul singur.. si poti adauga la script sa instalezi fail2ban si denyhosts si sa il faci sa il configurezi automat dupa server.

Share this post


Link to post
Share on other sites

Le-am pus poate are cineva nevoie de amandoua sa zicem . Dar multumesc pentru indicatii asa voi face maine voi reveni cu un V2.0 :)) .

Edited by starlin1337

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...