Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Dropbear CentOs
- # Editado por @MajinBoo (Baseado no Script de @Vinicius10)
- # Canal: @LegadosDaNet
- #
- #
- #
- #
- tput setaf 2 ; tput bold ; echo " Dropbear CentOs By @MajinBoo " ; tput sgr0
- sleep 3
- #
- echo "$(tput bold) ATUALIZANDO PACOTES ...$(tput sgr0)"
- #
- yum update -y 1>/dev/null 2>/dev/null
- yum upgrade -y 1>/dev/null 2>/dev/null
- yum remove httpd -y 1>/dev/null 2>/dev/null
- yum install dropbear -y 1>/dev/null 2>/dev/null
- yum install dropbear -y
- #
- echo "$(tput bold) INSTALANDO DROPBEAR ...$(tput sgr0)"
- #
- yum install dropbear -y 1>/dev/null 2>/dev/null
- rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/epel/5/i386/epel-release-5-4.noarch.rpm
- rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
- rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/epel/6/i386/epel-release-6-8.noarch.rpm
- rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
- #
- echo "$(tput bold) ATIVANDO PORTA 80 e 443 (DropBear) ...$(tput sgr0)"
- #
- echo "#Dropbear CentOs By @MajinBoo" > /etc/default/dropbear
- echo "OPTIONS='-p 80 -p 443'" >> /etc/init.d/dropbear
- echo "OPTIONS='-p 80 -p 443'" >> /etc/sysconfig/dropbear
- echo "/bin/false" >> /etc/shells
- #
- echo "$(tput bold) PARANDO PROXY SQUID PARA FUNCIONAMENTO DA PORTA 80 NO DROPBEAR ...$(tput sgr0)"
- #
- service squid stop 1>/dev/null 2>/dev/null
- #
- chkconfig sshd on
- service dropbear start
- systemctl start dropbear.service
- systemctl enable dropbear.service
- systemctl restart dropbear.service
- service dropbear restart
- #
- echo "$(tput bold) SERVIDOR CONFIGURADO COM SUCESSO. By @MajinBoo. $(tput sgr0)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement