| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- #!/bin/bash
- #Instalador del BOT
- coo=1
- IVAR="/etc/http-instas"
- SCPT_DIR="/etc/SCRIPT"
- rm -f gera*
- source <(curl -sSL https://raw.githubusercontent.com/ChumoGH/ChumoGH-Script/master/msg-bar/msg) > /dev/null
- #!/bin/bash
- # menu maker (opciones 1, 2, 3,.....)
- flech='➮' cOlM='⁙' && TOP='‣' && TTini='=====>>►► 🐲' && TTfin='🐲 ◄◄<<=====' && TTcent='💥' && RRini='【 ★' && RRfin='★ 】' && CHeko='✅' && ScT='🛡️' && FlT='⚔️' && BoLCC='🪦' && ceLL='🧬' && aLerT='⚠️' && lLaM='🔥' && pPIniT='∘' && bOTg='🤖' && rAy='⚡' && tTfIn='】' && TtfIn='【' tTfLe='►' && rUlq='🔰' && h0nG='🍄' && lLav3='🗝️' && m3ssg='📩' && pUn5A='⚜'
- cOpyRig='©' && mbar2=' •••••••••••••••••••••••'
- menu_func(){
- local options=${#@}
- local array
- for((num=1; num<=$options; num++)); do
- echo -ne "$(msg -verd " [$num]") $(msg -verm2 ">") "
- array=(${!num})
- case ${array[0]} in
- "-vd")echo -e "\033[1;33m[!]\033[1;32m ${array[@]:1}";;
- "-vm")echo -e "\033[1;33m[!]\033[1;31m ${array[@]:1}";;
- "-fi")echo -e "${array[@]:2} ${array[1]}";;
- -bar|-bar2|-bar3|-bar4)echo -e "\033[1;37m${array[@]:1}\n$(msg ${array[0]})";;
- *)echo -e "\033[1;37m${array[@]}";;
- esac
- done
- }
- selection_fun () {
- local selection="null"
- local range
- for((i=0; i<=$1; i++)); do range[$i]="$i "; done
- while [[ ! $(echo ${range[*]}|grep -w "$selection") ]]; do
- echo -ne "\033[1;37m ► Opcion : " >&2
- read selection
- tput cuu1 >&2 && tput dl1 >&2
- done
- echo $selection
- }
- tittle () {
- [[ -z $1 ]] && rt='adm-lite' || rt='ADMcgh'
- clear&&clear
- msg -bar
- echo -e "\033[1;44;44m \033[1;33m=====>>►► 🐲 ChumoGH 💥 Plus 🐲 ◄◄<<===== \033[0m \033[0;33m[$(less /etc/${rt}/v-local.log)]"
- msg -bar
- }
- in_opcion(){
- unset opcion
- if [[ -z $2 ]]; then
- msg -nazu " $1: " >&2
- else
- msg $1 " $2: " >&2
- fi
- read opcion
- echo "$opcion"
- }
- # centrado de texto
- print_center(){
- if [[ -z $2 ]]; then
- text="$1"
- else
- col="$1"
- text="$2"
- fi
- while read line; do
- unset space
- x=$(( ( 54 - ${#line}) / 2))
- for (( i = 0; i < $x; i++ )); do
- space+=' '
- done
- space+="$line"
- if [[ -z $2 ]]; then
- msg -azu "$space"
- else
- msg "$col" "$space"
- fi
- done <<< $(echo -e "$text")
- }
- # titulos y encabesados
- title(){
- clear
- msg -bar
- if [[ -z $2 ]]; then
- print_center -azu "$1"
- else
- print_center "$1" "$2"
- fi
- msg -bar
- }
- # finalizacion de tareas
- enter(){
- msg -bar
- text="►► Presione enter para continuar ◄◄"
- if [[ -z $1 ]]; then
- print_center -ama "$text"
- else
- print_center "$1" "$text"
- fi
- read
- }
- # opcion, regresar volver/atras
- back(){
- msg -bar
- echo -ne "$(msg -verd " [0]") $(msg -verm2 ">") " && msg -bra "\033[1;41mVOLVER"
- msg -bar
- }
- msg () {
- local colors="/etc/new-adm-color"
- if [[ ! -e $colors ]]; then
- COLOR[0]='\033[1;37m' #BRAN='\033[1;37m'
- COLOR[1]='\e[31m' #VERMELHO='\e[31m'
- COLOR[2]='\e[32m' #VERDE='\e[32m'
- COLOR[3]='\e[33m' #AMARELO='\e[33m'
- COLOR[4]='\e[34m' #AZUL='\e[34m'
- COLOR[5]='\e[35m' #MAGENTA='\e[35m'
- COLOR[6]='\033[1;97m' #MAG='\033[1;36m'
- COLOR[7]='\033[1;49;95m'
- COLOR[8]='\033[1;49;96m'
- else
- local COL=0
- for number in $(cat $colors); do
- case $number in
- 1)COLOR[$COL]='\033[1;37m';;
- 2)COLOR[$COL]='\e[31m';;
- 3)COLOR[$COL]='\e[32m';;
- 4)COLOR[$COL]='\e[33m';;
- 5)COLOR[$COL]='\e[34m';;
- 6)COLOR[$COL]='\e[35m';;
- 7)COLOR[$COL]='\033[1;36m';;
- 8)COLOR[$COL]='\033[1;49;95m';;
- 9)COLOR[$COL]='\033[1;49;96m';;
- esac
- let COL++
- done
- fi
- NEGRITO='\e[1m'
- SEMCOR='\e[0m'
- case $1 in
- -ne)cor="${COLOR[1]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
- -ama)cor="${COLOR[3]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -verm)cor="${COLOR[3]}${NEGRITO}[!] ${COLOR[1]}" && echo -e "${cor}${2}${SEMCOR}";;
- -verm2)cor="${COLOR[1]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -aqua)cor="${COLOR[8]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -azu)cor="${COLOR[6]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -verd)cor="${COLOR[2]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -bra)cor="${COLOR[0]}${SEMCOR}" && echo -e "${cor}${2}${SEMCOR}";;
- -nazu) cor="${COLOR[6]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
- -nverd)cor="${COLOR[2]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
- -nama) cor="${COLOR[3]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
- -verm3)cor="${COLOR[1]}" && echo -e "${cor}${2}${SEMCOR}";;
- -teal) cor="${COLOR[7]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -teal2)cor="${COLOR[7]}" && echo -e "${cor}${2}${SEMCOR}";;
- -blak) cor="${COLOR[8]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -blak2)cor="${COLOR[8]}" && echo -e "${cor}${2}${SEMCOR}";;
- -blu) cor="${COLOR[9]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
- -blu1) cor="${COLOR[9]}" && echo -e "${cor}${2}${SEMCOR}";;
- #-bar)ccor="${COLOR[1]}•••••••••••••••••••••••••••••••••••••••••••••••••" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
- -bar)ccor="${COLOR[1]}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
- -bar1)ccor="${COLOR[1]}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
- -bar2)ccor="${COLOR[1]}=====================================================" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
- -bar3)ccor="${COLOR[3]}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
- -bar4)ccor="${COLOR[5]}•••••••••••••••••••••••••••••••••••••••••••••••••" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
- esac
- }
- fun_bar () {
- comando[0]="$1"
- comando[1]="$2"
- (
- [[ -e $HOME/fim ]] && rm $HOME/fim
- ${comando[0]} -y > /dev/null 2>&1
- ${comando[1]} -y > /dev/null 2>&1
- touch $HOME/fim
- ) > /dev/null 2>&1 &
- echo -ne "\033[1;33m ["
- while true; do
- for((i=0; i<18; i++)); do
- echo -ne "\033[1;31m##"
- sleep 0.1s
- done
- [[ -e $HOME/fim ]] && rm $HOME/fim && break
- echo -e "\033[1;33m]"
- sleep 1s
- tput cuu1
- tput dl1
- echo -ne "\033[1;33m ["
- done
- echo -e "\033[1;33m]\033[1;31m -\033[1;32m 100%\033[1;37m"
- }
- del(){
- for (( i = 0; i < $1; i++ )); do
- tput cuu1 && tput dl1
- done
- }
- [[ -d /bin/ejecutar ]] && {
- [[ -e /bin/ejecutar/msg ]] || wget -q -O /bin/ejecutar/msg https://raw.githubusercontent.com/ChumoGH/ChumoGH-Script/master/msg-bar/msg
- } || mkdir /bin/ejecutar
- cor[0]="\033[0m"
- cor[1]="\033[1;34m"
- cor[2]="\033[1;32m"
- cor[3]="\033[1;37m"
- cor[4]="\033[1;36m"
- cor[5]="\033[1;33m"
- cor[6]="\033[1;35m"
- export -f msg
- export -f fun_bar
- export -f tittle
- export -f enter
- export -f back
- export -f print_center
- export -f in_opcion
- export -f del
- DOWS () {
- wget --no-check-certificate -i $HOME/lista-arq
- }
- check_ip () {
- MIP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
- MIP2=$(wget -qO- ipv4.icanhazip.com)
- [[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP"
- echo "$IP" > /usr/bin/vendor_code
- }
- function_verify () {
- unset keybot
- echo -e "\033[7;49;35m ${TTini} GEN ChumoGH${TTcent}VPS ${TTfin} \033[0m"
- msg -bar
- [[ ! -e /etc/nivbot ]] && echo > /etc/nivbot
- echo -e " SOLICITA KEY DE AUTORIZACION UNICA "
- [[ "$(echo "$(cat < /etc/nivbot)")" < "3" ]] && {
- [[ -e /bin/downloadbot ]] && {
- [[ -z $(cat < /bin/downloadbot) ]] && read -p " INGRESA KEY DE AUTORIZACION : " keybot || unset keybot
- }
- } || read -p " Key de Autorizacion : " keybot
- [[ -z $keybot ]] && {
- [[ -e /bin/downloadbot ]] && link="$(cat < /bin/downloadbot)" || link='https://raw.githubusercontent.com'
- [[ $link = 'https://raw.githubusercontent.com' ]] && echo "CONTROL MEDIANTE GitHub" || echo "CONTROL EXTERNO"
- permited=$(curl -sSL "${link}/ChumoGH/VPSbot/main/TeleBotGen/Control/Control-Bot")
- } || {
- permited=$(curl -sSL "$(ofus $keybot)/ChumoGH/VPSbot/main/TeleBotGen/Control/Control-Bot")
- [[ -z $keybot ]] && echo $link > /bin/downloadbot || echo -e "$(ofus $keybot)" > /bin/downloadbot
- }
- ### INTALAR VERCION DE SCRIPT
- clear
- echo -e "\n\n\n\e[32m====================================================="
- echo -e "\e[32m LA IP $(wget -qO- ipv4.icanhazip.com) ESTA AUTORIZADA!"
- echo -e " Mediante $link Autorida por @ChumoGH"
- echo -e " SI DESEAS USAR EL BOTGEN CONTACTE A @ChumoGH"
- echo -e "\e[32m=====================================================\n\n\n\e[0m"
- [[ -e /usr/bin/downBase ]] || echo 'https://www.dropbox.com/s/yqhjmr7o3342viv/lista' > /usr/bin/downBase && chmod 777 /usr/bin/downBase
- v1=$(curl -sSL "https://www.dropbox.com/s/blxo0jifysvyrey/v-new.log")
- [[ ! -e /bin/downloadbot ]] && {
- [[ $link = 'https://raw.githubusercontent.com' ]] && echo "https://raw.githubusercontent.com" > /bin/downloadbot || echo "$(ofus $keybot)" > /bin/downloadbot
- chmod +x /bin/downloadbot
- }
- [[ -e /etc/nivbot ]] && {
- i=$(cat < /etc/nivbot)
- lv=$(($i+1))
- echo $lv > /etc/nivbot
- } || echo "1" > /etc/nivbot
- echo $Key > /etc/valkey && chmod +x /etc/valkey
- [[ -e /usr/bin/downBase ]] || echo 'https://www.dropbox.com/s/yqhjmr7o3342viv/lista' > /usr/bin/downBase && chmod 777 /usr/bin/downBase
-
-
- }
- function aguarde() {
- sleep 1
- fun_ejec=$1
- helice() {
- DOWS >/dev/null 2>&1 &
- tput civis
- while [ -d /proc/$! ]; do
- for i in / - \\ \|; do
- sleep .1
- echo -ne "\e[1D$i"
- done
- done
- tput cnorm
- }
- echo -ne "\033[1;37m TRASLADANDO FILES \033[1;32mSCRIPT \033[1;37me \033[1;32mAUTOGEN\033[1;32m.\033[1;33m.\033[1;31m. \033[1;33m"
- helice
- echo -e "\e[1D REALIZADO"
- function_verify
- }
- #COMPARA
- fun_filez () {
- fup="$HOME/update"
- echo "$1" >> $HOME/files.log
- [[ $1 = 'http-server.py' ]] && mv -f ${fup}/$1 /bin/http-server.sh && chmod +x /bin/http-server.sh
- [[ -e $1 ]] && mv -f ${fup}/$1 /etc/SCRIPT/$1
- }
- atualiza_fun () {
- msg -bar
- [[ -d ./update ]] && rm -rf ./update/* || mkdir ./update
- cd ./update/
- aguarde
- unset arqs
- n=1
- rm -f $HOME/files.log
- for arqs in `ls $HOME/update`; do
- echo -ne "\033[1;33m FILE \e[32m [${n}.gen] \e[0m "
- fun_filez $arqs > /dev/null 2>&1 && echo -e "\033[1;31m- \033[1;31m $arqs (no Trasladado!)" || echo -e "\033[1;31m- \033[1;32m $arqs Trasladado!"
- n=$(($n + 1))
- done
- wget -q -O /usr/bin/gerar https://raw.githubusercontent.com/ChumoGH/ScriptCGH/main/GERADOR/gerador.sh && chmod +x /usr/bin/gerar
- cd $HOME
- [[ -e $HOME/lista ]] && rm $HOME/lista
- [[ -d $HOME/update ]] && rm -rf $HOME/update
- }
- install_ini () {
- clear
- msg -bar
- echo -e "\033[92m -- INSTALANDO PAQUETES NECESARIOS -- "
- msg -bar
- ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- locale-gen en_US.UTF-8 > /dev/null 2>&1
- update-locale LANG=en_US.UTF-8 > /dev/null 2>&1
- echo -e "\033[97m # Instalando UTF...................... $ESTATUS "
- apt-get install gawk -y > /dev/null 2>&1
- #bc
- [[ $(dpkg --get-selections|grep -w "jq"|head -1) ]] || apt-get install jq -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "jq"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "jq"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install jq................... $ESTATUS "
- #SCREEN
- [[ $(dpkg --get-selections|grep -w "screen"|head -1) ]] || apt-get install screen -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "screen"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "screen"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install screen............... $ESTATUS "
- #apache2
- [[ $(dpkg --get-selections|grep -w "apache2"|head -1) ]] || {
- apt-get install apache2 -y &>/dev/null
- sed -i "s;Listen 80;Listen 81;g" /etc/apache2/ports.conf
- service apache2 restart > /dev/null 2>&1 &
- }
- [[ $(dpkg --get-selections|grep -w "apache2"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "apache2"|head -1) ]] && ESTATUS=`echo -e "\e[3;32mINSTALADO\e[0m"` &>/dev/null
- echo -e "\033[97m # apt-get install apache2.............. $ESTATUS "
- #curl
- [[ $(dpkg --get-selections|grep -w "curl"|head -1) ]] || apt-get install curl -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "curl"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "curl"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install curl................. $ESTATUS "
- #socat
- [[ $(dpkg --get-selections|grep -w "socat"|head -1) ]] || apt-get install socat -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "socat"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "socat"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install socat................ $ESTATUS "
- #netcat
- [[ $(dpkg --get-selections|grep -w "netcat"|head -1) ]] || apt-get install netcat -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "netcat"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "netcat"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install netcat............... $ESTATUS "
- #netcat-traditional
- [[ $(dpkg --get-selections|grep -w "netcat-traditional"|head -1) ]] || apt-get install netcat-traditional -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "netcat-traditional"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "netcat-traditional"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install netcat-traditional... $ESTATUS "
- #net-tools
- [[ $(dpkg --get-selections|grep -w "net-tools"|head -1) ]] || apt-get install net-tools -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "net-tools"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "net-tools"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install net-tools............ $ESTATUS "
- #cowsay
- [[ $(dpkg --get-selections|grep -w "cowsay"|head -1) ]] || apt-get install cowsay -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "cowsay"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "cowsay"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install cowsay............... $ESTATUS "
- #figlet
- [[ $(dpkg --get-selections|grep -w "figlet"|head -1) ]] || apt-get install figlet -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "figlet"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "figlet"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install figlet............... $ESTATUS "
- #lolcat
- apt-get install lolcat -y &>/dev/null
- sudo gem install lolcat &>/dev/null
- [[ $(dpkg --get-selections|grep -w "lolcat"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "lolcat"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install lolcat............... $ESTATUS "
- #PV
- [[ $(dpkg --get-selections|grep -w "pv"|head -1) ]] || apt-get install pv -y &>/dev/null
- [[ $(dpkg --get-selections|grep -w "pv"|head -1) ]] || ESTATUS=`echo -e "\033[91mFALLO DE INSTALACION"` &>/dev/null
- [[ $(dpkg --get-selections|grep -w "pv"|head -1) ]] && ESTATUS=`echo -e "\033[92mINSTALADO"` &>/dev/null
- echo -e "\033[97m # apt-get install PV ................ $ESTATUS "
- msg -bar
- echo -e "\033[92m La instalacion de paquetes necesarios a finalizado"
- atualiza_fun
- }
- [[ ! -e /etc/http-instas ]] && echo '0' > /etc/http-instas || let sd=$(cat < /etc/http-instas)-$coo && echo $sd > /etc/http-instas
- [[ -d $SCPT_DIR ]] && rm -rf $SCPT_DIR
- #CORES
- cor[1]="\033[1;36m"
- cor[2]="\033[1;32m"
- cor[3]="\033[1;31m"
- cor[4]="\033[1;33m"
- cor[0]="\033[1;37m"
- #TEXTOS
- ofus () {
- unset txtofus
- number=$(expr length $1)
- for((i=1; i<$number+1; i++)); do
- txt[$i]=$(echo "$1" | cut -b $i)
- case ${txt[$i]} in
- ".")txt[$i]="x";;
- "x")txt[$i]=".";;
- "5")txt[$i]="s";;
- "s")txt[$i]="5";;
- "1")txt[$i]="@";;
- "@")txt[$i]="1";;
- "2")txt[$i]="?";;
- "?")txt[$i]="2";;
- "4")txt[$i]="0";;
- "0")txt[$i]="4";;
- "/")txt[$i]="K";;
- "K")txt[$i]="/";;
- esac
- txtofus+="${txt[$i]}"
- done
- echo "$txtofus" | rev
- }
- unset Key
- [[ $1 = '--install' ]] && install_ini
|