Jump to content
starlin1337

[RST]StarLin1337 V2

Recommended Posts

Posted (edited)

Cred ca ati vazut subiectul https://rstforums.com/forum/86019-rst-starlin1337-tool.rst

Pentru Debian/Ubuntu .

Am revenit cu un V2

Ca sa-l folositi procedati asa : salvati sursa intr-un fisier cu extensia .sh (exemplu starlinux1337v2.sh)

Si il deschideti cu ./starlinux1337v2.sh din termina; .

Ce contine in plus fata de V1?

-Scriptul nu mai este asa "impopotonat" este foarte simplu fara categori .

-Fail2Ban+Configurare

#!/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
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
echo "Instalare SSH server ..."
/usr/bin/apt-get install openssh-server
sleep 1
echo "Instalarea serverului SSH a fost efectuata cu succes !"
/usr/bin/apt-get install vsftpd
echo "Instalarea serverului FTP a fost efectuata cu succes !"
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
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
/etc/init.d/ssh restart

sleep 2
echo "Install Fail2Ban"
sleep 1
echo "Fail2Ban analizeaza fisierele log a serviciilor ssh,apache,postfix,etc si detecteaza posibilele atacuri ."
/usr/bin/apt-get install fail2ban
sleep 1
echo "Instalarea a fost efectuata cu succes "
sleep 1
echo "Incep configurarea serviciului fail2ban"
sleep 1
echo "Pentru a va scapa de timpul pierdut v-am adaugat scripturile deja configurate de mine si le va descarca automat scriptul unde trebuie"
cd /etc/fail2ban/
/usr/bin/wget http://official-security.eu/asd/jail.local
echo "Modifica in /etc/fail2ban/jail.local ip-urile care vrei sa fie blocate si emailul de acolo cu emailul tau"
cd /etc/fail2ban/filter.d
/usr/bin/wget http://official-security.eu/asd/apache-w00tw00t.conf
/usr/bin/wget http://official-security.eu/asd/apache-myadmin.conf
sleep 1
echo "Acum sa pornim fail2ban ."
cd /etc/init.d
./fail2ban start
sleep 5

Edited by starlin1337
Posted


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

La ce este utilizat 'ssh_config' ? Dar 'sshd_config' ?

Posted
Pai sshd_config este un fisier pentru configurarea serviciului OpenSSH.

Si ssh_config tot fisier de configurare al serviciului este .

Epic ce plm

Ti-a dat clasa @aelius =)

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.



×
×
  • Create New...