Kalix1 3 yıl önce
ebeveyn
işleme
1068e3170d

+ 451 - 0
ChuGH-5.7u/Bot/bot.sh

@@ -0,0 +1,451 @@
+#!/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 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
ChuGH-5.7u/Bot/install.sh


+ 576 - 0
ChuGH-5.7u/Bot/intBOT.sh

@@ -0,0 +1,576 @@
+#!/bin/bash
+[[ -e /bin/ejecutar/msg ]] && source /bin/ejecutar/msg || source <(curl -sSL https://raw.githubusercontent.com/ChumoGH/ChumoGH-Script/master/msg-bar/msg)
+bar="$(msg -bar3)"
+[[ -e /etc/systemd/system/btkill.service ]] && systemctl restart btkill.service &>/dev/null
+tr=${id}
+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
+}
+
+# SISTEMA DE SELECAO
+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;37mOpcion: " >&2
+read selection
+tput cuu1 >&2 && tput dl1 >&2
+done
+echo $selection
+}
+
+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    =====>>►► 🐲 GEN ChumoGH${TTcent}VPS 🐲 ◄◄<<=====      \033[0m"
+msg -bar
+[[ "$(echo "$(cat < /etc/nivbot)")" -ge "5" ]] && {
+[[ -e /bin/downloadbot ]] && {
+[[ -z $(cat < /bin/downloadbot) ]] && read -p " Ingresa tu Key de Autorizacion : " keybot || unset keybot
+} || read -p " Key de Autorizacion : " keybot 
+} || read -p " Key de Autorizacion : " keybot 
+[[ -z $keybot ]] && {
+rm -f /bin/downloadbot
+[[ -e /bin/downloadbot ]] && link="$(cat < /bin/downloadbot)" || link='https://raw.githubusercontent.com'
+permited=$(curl -sSL "${link}/ChumoGH/VPSbot/main/TeleBotGen/Control/Control-Bot") 
+} || {
+permited=$(curl -sSL "$(ofus $keybot)/ChumoGH/VPSbot/main/TeleBotGen/Control/Control-Bot")
+}
+  [[ $(echo $permited|grep "${IP}") = "" ]] && {
+  clear
+  echo -e "\n\n\n\e[31m====================================================="
+  echo -e "\e[31m      ¡LA IP $(wget -qO- ipv4.icanhazip.com) FUE RECHAZADA!"
+  echo -e "     $link No AUTORIZADA el ACCESO "
+  echo -e " SI DESEAS USAR EL BOTGEN CONTACTE A @ChumoGH"
+  echo -e "\e[31m=====================================================\n\n\n\e[0m"
+  [[ -e "/bin/ShellBot.sh" ]] && rm -f /bin/ShellBot.sh
+    exit 1
+  } || {
+ ### 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"
+  CIDdir=/etc/ADM-db && [[ ! -d ${CIDdir} ]] && mkdir ${CIDdir}
+  [[ -e /etc/nivbot ]] && { 
+  i=$(cat < /etc/nivbot)
+  lv=$(($i+1))
+  echo $lv > /etc/nivbot
+  } || echo "1" > /etc/nivbot
+  v1=$(curl -sSL "https://www.dropbox.com/s/8tizr516cvkwss6/v-new.log")
+  echo "$v1" > /etc/ADM-db/vercion  
+  }
+}
+
+edit_cost () {
+msg -bar
+echo -e "\033[1;37mRECUERDA EDITAR LOS COSTOS O TIEMPOS\n Para Salir Ctrl + C o 0 Para Regresar\033[1;33m"
+echo -e " \033[1;31m[ !!! ]\033[1;33m RECUERDA, UNA VEZ EDITADO NO PODRAS VOLVER A \n TENER EL ORIGINAL, A MENOS QUE REINSTALES   \033[1;31m\033[1;33m"
+msg -bar 
+echo -e " \033[1;31mLuego de editar Presiona Ctrl + O y Enter \033[1;33m \033[1;31m\033[1;33m"
+echo -e " \033[1;31m          Por Ultimo Ctrl + X  \033[1;33m \033[1;31m\033[1;33m"
+echo -ne "\033[1;37m"
+read -p " Presiona Enter para Continuar "
+nano /etc/ADM-db/sources/costes
+systemctl restart BotGen-server &>/dev/null
+echo -e " MODIFICADO EXITOSAMENTE"
+bot_gen
+}
+
+change_pay () {
+unset option
+clear
+echo -e "$bar"
+echo -e "  MENSAJE ACTUAL $(cat < /etc/mpayu)"
+echo -e "$bar"
+echo -e "  \033[1;37mINGRESA TU METODO DE PAGO Y/O CORREO"
+echo -e "$bar\n"
+echo -e "Ingresa en este Orden o Secuencia \n PAYPAL : chumogh@gmail.com \n"
+echo -e "$bar"
+read -p "TEXTO: " opcion
+[[ -z $opcion ]] && bot_gen && exit || echo "$opcion" > /etc/mpayu && echo "TOKEN APLICADO EXITOSAMENTE"
+read -p " Enter para Continuar"
+echo -e "$bar"
+echo -e "  \033[1;37m NUMERO DE CONTACTO ACTUAL $(cat < /etc/numctc) "
+echo -e "$bar\n"
+echo -e " Ingresa en este Orden o FORMATO \n   593987072611  \n"
+echo -e "$bar"
+read -p "TEXTO: " opcion1
+opcion1="$(echo -e "$opcion1" | sed -e 's/[^0-9]//ig')"
+[[ -z $opcion ]] && return || { 
+echo -e "$opcion1" > /etc/numctc
+chmod +x /etc/numctc
+echo "TOKEN APLICADO EXITOSAMENTE"
+systemctl restart BotGen-server &>/dev/null
+}
+echo -e "$bar\n"
+echo -e " AGREGA NUEVO URL DE CATALOGO / OPCIONAL \n  https://shoppy.gg/@ChumoGH/  \n"
+echo -e "$bar"
+read -p "TEXTO: " nmsg
+[[ -z $nmsg ]] && return || { 
+echo -e "$nmsg" > /etc/urlCT
+chmod +x /etc/urlCT
+echo "URL APLICADO EXITOSAMENTE"
+systemctl restart BotGen-server &>/dev/null
+}
+echo -e "$bar\n"
+echo -e " AGREGA NUEVO ENLACE PARA DONACIONES / OPCIONAL \n  https://www.paypal.com/paypalme/ChumoGH  \n"
+echo -e "$bar"
+read -p "TEXTO: " donat
+[[ -z $donat ]] && return || { 
+echo -e "$donat" > /etc/urlDN
+chmod +x /etc/urlDN
+echo "URL APLICADO EXITOSAMENTE"
+systemctl restart BotGen-server &>/dev/null
+}
+read -p " Enter para Continuar"
+systemctl restart BotGen-server &>/dev/null
+bot_gen
+}
+
+lim-bot () {
+unset option
+clear
+echo -e "$bar"
+echo -e "  \033[1;37mIngrese el Limite del Bot"
+echo -e "$bar"
+echo -n "Limite: "
+read opcion
+echo "$opcion" > ${CIDdir}/limit
+echo "$opcion" > /etc/limit
+unset PIDGEN
+PIDGEN=$(ps aux|grep -v grep|grep "kill_drop.sh")
+if [[ ! $PIDGEN ]]; then
+	msg -bar
+	echo -ne "\033[1;97m Poner en linea KILL ID [s/n]: "
+	read bot_ini
+	msg -bar
+[[ $bot_ini = @(s|S|y|Y) ]] && {
+
+	echo -e "[Unit]
+Description=BotGen Service by @ChumoGH
+After=network.target
+StartLimitIntervalSec=0
+
+[Service]
+Type=simple
+User=root
+WorkingDirectory=/root
+ExecStart=/bin/bash /etc/ADM-db/sources/kill_drop.sh 
+Restart=always
+RestartSec=60s
+
+[Install]
+WantedBy=multi-user.target" > /etc/systemd/system/btkill.service
+	systemctl enable btkill &>/dev/null
+	systemctl start btkill &>/dev/null
+	msg -bar
+	echo -e "\033[1;31m            Bot ID KILL ACTIVADO"
+	msg -bar
+	}
+else
+killall kill_drop.sh &>/dev/null
+systemctl stop btkill &>/dev/null
+systemctl disable btkill &>/dev/null
+rm /etc/systemd/system/btkill.service &>/dev/null
+clear
+msg -bar
+echo -e "\033[1;31m            Bot ID KILL fuera de linea"
+msg -bar
+fi
+read -p "Presione Enter para continuar "
+bot_gen
+
+
+#echo "sed -i "s/1001282138571/0/g" /etc/gerar-sh-log
+#echo '#!/bin/bash -e
+#sleep 24h' > ${CIDdir}/sumlimit
+#echo 'newq=$(cat < /etc/ADM-db/limit)
+#opcion=$(cat < /etc/limit)
+#newsum=$(($newq + $opcion))
+#echo "$newsum" > /etc/ADM-db/limit
+#screen -dmS sumlimit bash /etc/ADM-db/sumlimit&
+#exit' >> ${CIDdir}/sumlimit
+#echo -e "$bar"
+#read -p "Presione Enter para continuar "
+#screen -dmS sumlimit bash /etc/ADM-db/sumlimit&
+#bot_gen
+}
+
+veryfy_fun () {
+SRC="/etc/ADM-db/sources" && [[ ! -d ${SRC} ]] && mkdir ${SRC}
+unset ARQ
+case $1 in
+"BotGen.sh")ARQ="/etc/ADM-db/";;
+*)ARQ="/etc/ADM-db/sources/";;
+esac
+mv -f $HOME/update/$1 ${ARQ}/$1 && echo -e "\033[1;31m- \033[1;32mRecibido!" || echo -e "\033[1;31m- \033[1;31mFalla (no recibido!)"
+chmod +x ${ARQ}/$1
+}
+
+download () {
+clear
+msg -bar
+echo -e "\033[1;33mDescargando archivos... ESPERE "
+msg -bar
+wget -q --no-check-certificate -O $HOME/files.tar https://www.dropbox.com/s/pf3b054mts3zrj6/files.tar
+[[ -d $HOME/update ]] && rm -rf $HOME/update/* || mkdir $HOME/update
+[[ -e $HOME/files.tar ]] && tar xpf $HOME/files.tar -C $HOME/update && rm -f $HOME/files.tar
+echo 999 > ${CIDdir}/limit
+n=1
+for arqx in `ls $HOME/update`; do
+echo -ne "\033[1;33mFichero \033[1;31m[${n}.bot] "
+[[ -e $HOME/update/$arqx ]] && veryfy_fun $arqx
+n=$(($n + 1))
+done
+cd $HOME && rm -rf $HOME/update && rm -f $HOME/files.tar
+echo -ne "\033[1;31m[ ! ] RESTAUDANDO ADMINISTRADOR "
+(
+[[ -e $HOME/costes ]] && mv $HOME/costes /etc/ADM-db/sources/costes 
+[[ -e $HOME/token ]] && mv $HOME/token /etc/ADM-db/token 
+[[ -e $HOME/resell ]] && mv $HOME/resell /etc/ADM-db/resell
+[[ -e $HOME/Admin-ID ]] && mv $HOME/Admin-ID /etc/ADM-db/Admin-ID 
+[[ -e $HOME/User-ID ]] && mv $HOME/User-ID /etc/ADM-db/User-ID 
+[[ -e $HOME/ress ]] && mv $HOME/ress /etc/ADM-db/ress
+[[ -e $HOME/limit ]] && mv $HOME/limit /etc/ADM-db/limit
+[[ -e $HOME/num-key.cont ]] && mv $HOME/num-key.cont /etc/ADM-db/num-key.cont
+) && echo -e "\033[1;32m [OK]" || echo -e "\033[1;31m [FAIL]"
+[[ ! -e ${CIDdir}/resell ]] && echo "@ChumoGH" > ${CIDdir}/resell
+[[ ! -e $(cat < /etc/mpayu) ]] && echo "Paypal : chumogh@outlook.com" > /etc/mpayu && echo "593987072611" > /etc/numctc
+ rm $HOME/lista-arq
+ systemctl restart BotGen-server &>/dev/null
+ bot_gen
+}
+
+ini_token () {
+clear
+echo -e "$bar"
+echo -e "  \033[1;37mIngrese el token de su bot"
+echo -e "$bar"
+echo -n "TOKEN: "
+read opcion
+echo "$opcion" > ${CIDdir}/token
+echo -e "$bar"
+echo -e "  \033[1;32mtoken se guardo con exito!" && echo -e "$bar" && echo -e "  \033[1;37mPara tener acceso a todos los comandos del bot\n  deve iniciar el bot en la opcion 2.\n  desde su apps (telegram). ingresar al bot!\n  digite el comando \033[1;31m/id\n  \033[1;37mel bot le respodera con su ID de telegram.\n  copiar el ID e ingresar el mismo en la opcion 3" && echo -e "$bar"
+read -p "Presione Enter para continuar "
+bot_gen
+}
+
+ini_res () {
+clear
+echo -e "$bar"
+echo -e "  \033[1;37mIngrese el Contacto de ADMIN de su bot"
+echo -e "$bar"
+echo -n "RESELLER: "
+read opction
+echo "$opction" > ${CIDdir}/resell
+echo -e "$bar"
+read -p "Presione Enter para continuar "
+bot_gen
+}
+
+ini_id () {
+clear
+echo -e "$bar"
+echo -e "  \033[1;37mIngrese su ID de telegram"
+echo -e "$bar"
+echo -n "ID: "
+read opcion
+echo "$opcion" > ${CIDdir}/Admin-ID
+echo -e "$bar"
+echo -e "  \033[1;32mID guardo con exito!" && echo -e "$bar" && echo -e "  \033[1;37mdesde su apps (telegram). ingresar al bot!\n  digite el comando \033[1;31m/menu\n  \033[1;37mprueve si tiene acceso al menu extendido." && echo -e "$bar"
+read -p "Presione Enter para continuar "
+bot_gen
+}
+
+start_bot () {
+[[ ! -e "${CIDdir}/token" ]] && echo "null" > ${CIDdir}/token
+unset PIDGEN
+PIDGEN=$(ps aux|grep -v grep|grep "BotGen.sh")
+if [[ ! $PIDGEN ]]; then
+echo -e "[Unit]
+Description=BotGen Service by @ChumoGH
+After=network.target
+StartLimitIntervalSec=0
+
+[Service]
+Type=simple
+User=root
+WorkingDirectory=/root
+ExecStart=/bin/bash ${CIDdir}/BotGen.sh -start
+Restart=always
+RestartSec=3s
+
+[Install]
+WantedBy=multi-user.target" > /etc/systemd/system/BotGen-server.service
+
+		systemctl enable BotGen-server &>/dev/null
+    	systemctl start BotGen-server &>/dev/null
+else
+killall BotGen.sh &>/dev/null
+systemctl stop BotGen-server &>/dev/null
+systemctl disable BotGen-server &>/dev/null
+rm /etc/systemd/system/BotGen-server.service &>/dev/null
+clear
+msg -bar
+echo -e "\033[1;31m            BotGen fuera de linea"
+msg -bar
+read -p "Presione Enter para continuar "
+fi
+bot_gen
+}
+
+ayuda_fun () {
+clear
+echo -e "$bar"
+echo -e "            \e[47m\e[30m Instrucciones rapidas \e[0m"
+echo -e "$bar"
+echo -e "\033[1;37m   Es necesario crear un bot en \033[1;32m@BotFather "
+echo -e "$bar"
+echo -e "\033[1;32m1- \033[1;37mEn su apps telegram ingrese a @BotFather"
+echo -e "\033[1;32m2- \033[1;37mDigite el comando \033[1;31m/newbot"
+echo -e "\033[1;32m3- @BotFather \033[1;37msolicitara que\n   asigne un nombre a su bot"
+echo -e "\033[1;32m4- @BotFather \033[1;37msolicitara que asigne otro nombre,\n   esta vez deve finalizar en bot eje: \033[1;31mXXX_bot"
+echo -e "\033[1;32m5- \033[1;37mObtener token del bot creado.\n   En \033[1;32m@BotFather \033[1;37mdigite el comando \033[1;31m/token\n   \033[1;37mseleccione el bot y copie el token."
+echo -e "\033[1;32m6- \033[1;37mIngrese el token\n   en la opcion \033[1;32m[1] \033[1;31m> \033[1;37mTOKEN DEL BOT"
+echo -e "\033[1;32m7- \033[1;37mPoner en linea el bot\n   en la opcion \033[1;32m[2] \033[1;31m> \033[1;37mINICIAR/PARAR BOT"
+echo -e "\033[1;32m8- \033[1;37mEn su apps telegram, inicie el bot creado\n   digite el comando \033[1;31m/id \033[1;37mel bot le respondera\n   con su ID de telegran (copie el ID)"
+echo -e "\033[1;32m9- \033[1;37mIngrese el ID en la\n   opcion \033[1;32m[3] \033[1;31m> \033[1;37mID DE USUARIO TELEGRAM"
+echo -e "\033[1;32m10-\033[1;37mcomprueve que tiene acceso a\n   las opciones avanzadas de su bot."
+echo -e "$bar"
+read -p "Presione Enter para continuar "
+bot_gen
+}
+
+bot_conf () {
+[[ -e /etc/ADM-db/token ]] && mv /etc/ADM-db/token /root/token
+[[ -e /etc/ADM-db/Admin-ID ]] && mv /etc/ADM-db/Admin-ID /root/Admin-ID
+check_ip
+function_verify
+instaled=/etc/ADM-db/sources && [[ ! -d ${instaled} ]] && download
+}
+
+msj_prueba () {
+
+TOKEN="$(cat /etc/ADM-db/token)"
+ID="$(cat /etc/ADM-db/Admin-ID)"
+
+[[ -z $TOKEN ]] && {
+	clear
+	echo -e "$bar"
+	echo -e "\033[1;37m Aun no a ingresado el token\n No se puede enviar ningun mensaje!"
+	echo -e "$bar"
+	read foo
+} || {
+	[[ -z $ID ]] && {
+		clear
+		echo -e "$bar"
+		echo -e "\033[1;37m Aun no a ingresado el ID\n No se puede enviar ningun mensaje!"
+		echo -e "$bar"
+		read foo
+	} || {
+		MENSAJE="---------📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩--------\n"
+		MENSAJE+="Esto es un mesaje de prueba!\n"
+		MENSAJE+="$bar\n"
+		URL="https://api.telegram.org/bot$TOKEN/sendMessage"
+		curl -s -X POST $URL -d chat_id=$ID -d text="$MENSAJE" &>/dev/null
+		clear
+		echo -e "---------📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩--------\n"
+		echo -e "\033[1;37m Mensaje enviado Exitosamente...!"
+		echo -e "$bar"
+		sleep 3s
+	}
+}
+
+bot_gen
+}
+
+addnewmss() {
+unset yesno
+unset dnew
+let foc++
+echo -e "$bar"
+echo -e "  \033[1;37mINGRESA EL MENSAJE A ENVIAR"
+echo -e "$bar"
+read -p " $foc TEXTO: " addmss 
+MSS+="$addmss\n"
+echo -e "${cor[3]} ¿DESEAS AÑADIR OTRO SMS ? "
+read -p " [S/N]: " -e -i s sshsn
+tput cuu1 && tput dl1
+tput cuu1 && tput dl1
+[[ "$sshsn" = @(s|S|y|Y) ]] && addnewmss
+}
+
+
+
+msj_ind () {
+foc=1
+TOKEN="$(cat /etc/ADM-db/token)"
+echo -e "$bar" 
+echo -e "  \033[1;37mIngrese su ID de telegram a Mensajear"
+echo -e "$bar"
+read -p "ID: " ID 
+[[ -z $ID ]] && ID="$(cat /etc/ADM-db/Admin-ID)"
+[[ -z $TOKEN ]] && {
+	clear
+	echo -e "$bar"
+	echo -e "\033[1;37m Aun no a ingresado el token\n No se puede enviar ningun mensaje!"
+	echo -e "$bar"
+	read foo
+} || {
+	[[ -z $ID ]] && {
+		clear
+		echo -e "$bar"
+		echo -e "\033[1;37m Aun no a ingresado el ID\n No se puede enviar ningun mensaje!"
+		echo -e "$bar"
+		read foo
+	} || {
+		MENSAJE="Hola, Mensale de Prueba del BotGen Generador!"
+echo -e "$bar"
+echo -e "  \033[1;37mINGRESA EL MENSAJE A ENVIAR"
+echo -e "$bar"
+read -p " $foc TEXTO: " addmss 
+MSS+="$addmss\n"
+echo -e "${cor[3]} ¿DESEAS AÑADIR OTRO SMS ? "
+read -p " [S/N]: " -e -i s sshsn
+tput cuu1 && tput dl1
+tput cuu1 && tput dl1
+[[ "$sshsn" = @(s|S|y|Y) ]] && addnewmss
+MENSAJE='  ---------📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩--------\n'
+MENSAJE+="$MSS \n "
+echo -e "$bar"
+echo -e "  \033[1;37mPEGA RUTA DE IMAGEN"
+echo -e "$bar"
+read -p "IMG: " img 
+#[[ -z $img ]] && img="https://raw.githubusercontent.com/ChumoGH/ChumoGH-Script/master/favi.png"
+#[[ -z $img ]] && img="/var/www/html/bot_vmess_qr.png"
+[[ -z $MENSAJE ]] && MENSAJE="Hola, Mensale de Prueba del BotGen Generador!"
+		URL="https://api.telegram.org/bot$TOKEN/sendMessage"
+		URG="https://api.telegram.org/bot$TOKEN/sendPhoto"
+		curl -s -X POST $URG -F chat_id=$ID -F photo="@$img" #-F caption="<code>New Script @ChumoGH</code>" #-F width="100" -F height="100"
+		curl -s -X POST $URL -d chat_id=$ID -d text="$(echo -e "$MENSAJE")" &>/dev/null
+#		clear
+		echo -e "@$img"
+		echo -e "$bar"
+		echo -e "\033[1;37m Mensaje enviado Exitosamente...!"
+		echo -e "$bar"
+		read -p "ENTER PARA Continuar"
+	}
+}
+
+bot_gen
+}
+
+
+
+act-bot () {
+echo "Respaldando TOKEN y ADMINISTRADOR" 
+[[ -e /etc/ADM-db/token ]] && mv /etc/ADM-db/token /root/token
+[[ -e /etc/ADM-db/Admin-ID ]] && mv /etc/ADM-db/Admin-ID /root/Admin-ID
+[[ -e /etc/ADM-db/User-ID ]] && mv /etc/ADM-db/User-ID /root/User-ID
+[[ -e /etc/ADM-db/ress ]] && mv /etc/ADM-db/ress /root/ress
+[[ -e /etc/ADM-db/sources/costes ]] && mv /etc/ADM-db/sources/costes /root/costes
+[[ $(cat < /etc/ADM-db/resell) != "@ChumoGH" ]] && mv /etc/ADM-db/resell /root/resell
+rm -rf /etc/ADM-db/sources/gerar_key && download
+}
+
+respon () {
+[[ ! -e /etc/menu_ito ]] && credd=$(cat < /etc/SCRIPT/menu_credito) || credd=$(cat /etc/menu_ito ) 
+[[ -e ${CIDdir}/ress ]] && {
+echo -e "DESACTIVANDO RESELLER $credd FIJO EN BotGEN"
+echo -e "   AHORA SE FIJARA EL NOMBRE DE QUIEN GENERE LA KEY"
+read -p "ENTER PARA VOLVER"
+rm -f ${CIDdir}/ress 
+} || { 
+echo -e "ACTIVANDO RESELLER $credd FIJO EN BotGEN"
+echo -e "AHORA SE FIJARA $credd EN TODAS LAS KEYS "
+read -p "ENTER PARA VOLVER"
+touch ${CIDdir}/ress
+}
+bot_gen
+}
+
+
+bot_gen () {
+clear
+unset PID_GEN
+CIDdir=/etc/ADM-db && [[ ! -d ${CIDdir} ]] && mkdir ${CIDdir}
+PID_GEN=$(ps x|grep -v grep|grep "BotGen.sh")
+PID_on=$(ps x|grep -v grep|grep "modelid")
+[[ ! $PID_on ]] && PID_on="\033[1;31mOFF" || PID_on="\033[1;32mON"
+[[ ! -e /etc/systemd/system/btkill.service ]] && PID_kill="\033[1;31mOFF" || PID_kill="\033[1;32mON"
+[[ ! $PID_GEN ]] && PID_GEN="\033[1;31mOFF" || PID_GEN="\033[1;32mON"
+[[ -e ${CIDdir}/token ]] && tk="\033[1;32mOK" || tk="\033[1;31mNULL"
+[[ -e /etc/numctc ]] && nm="\033[1;32mNUM" || nm="\033[1;31mNULL"
+[[ -e /etc/urlDN ]] && dn="\033[1;32mDON" || dn="\033[1;31mNULL"
+[[ -e /etc/urlCT ]] && ct="\033[1;32mCAT" || ct="\033[1;31mNULL"
+[[ -e ${CIDdir}/Admin-ID ]] && adid="\033[1;32mOK" || adid="\033[1;31mNULL"
+[[ -e ${CIDdir}/ress ]] && rfij="\033[1;32mRESELLER FIJO (Bot Personal )" || rfij="\033[1;31mRESELLER ALEATORIO ( Bot Custom )"
+limcont=$(cat /etc/ADM-db/limit) 
+[[ "${limcont}" = "999" ]] && limted=" ∞ " || limted=$(cat /etc/ADM-db/limit)
+msg -bar
+echo -e " \033[7;49;35m ${TTini} 🐲 BotGEN ChumoGH${TTcent}ADM $(cat ${CIDdir}/vercion) 🐲 ◄◄<===   \033[0m"
+msg -bar
+echo -e "  - LIMITADOR \033[1;32m ( $limted ) \033[1;37m KILL ID VENCIDOS ${PID_kill} "
+msg -bar 
+echo -e "\033[0;35m[\033[0;36m1\033[0;35m] \033[0;35m> \033[1;37m TOKEN DEL BOT $tk "
+echo -e "\033[0;35m[\033[0;36m2\033[0;35m] \033[0;35m> \033[1;37m INICIAR/PARAR BOT $PID_GEN\033[0m"
+echo -e "\033[0;35m[\033[0;36m3\033[0;35m] \033[0;35m> \033[1;37m ID DE USUARIO TELEGRAM  $adid"
+echo -e "\033[0;35m[\033[0;36m4\033[0;35m] \033[0;35m> \033[1;37m Cambiar Contacto -> $(cat < ${CIDdir}/resell)"
+echo -e "\033[0;35m[\033[0;36m5\033[0;35m] \033[0;35m> \033[1;37m MENSAJE DE PRUEBA"
+echo -e "\033[0;35m[\033[0;36m6\033[0;35m] \033[0;36m> \033[1;37m MANUAL De Uso"
+echo -e "\033[0;35m[\033[0;36m7\033[0;35m] \033[0;35m> \033[1;37m Limite de KEYS "
+echo -e "\033[0;35m[\033[0;36m8\033[0;35m] \033[0;35m> \033[1;37m ENLACES $nm | $dn | $ct "
+echo -e "\033[0;35m[\033[0;36m9\033[0;35m] \033[0;35m> \033[1;37m $rfij"
+echo -e "\033[0;35m[\033[0;36m10\033[0;35m] \033[0;35m> \033[1;37m MSG POR ID"
+echo -e "\033[0;35m[\033[0;36m11\033[0;35m] \033[0;35m> \033[1;37m Modificar COSTES DEL BOT"
+msg -bar
+echo -e "\033[0;35m[\033[0;36m0\033[0;35m] \033[0;34m<\033[0;33m SALIR"
+msg -bar
+selection=$(selection_fun 11)
+case ${selection} in
+0) gerar && exit ;;
+1) ini_token;;
+2) start_bot;;
+3) ini_id;;
+4) ini_res;;
+5) msj_prueba;;
+6) ayuda_fun;;
+#7) source <(curl -sSL https://www.dropbox.com/s/f5mlwun3hkpq6k8/bot-permited.sh) ;;
+#8) act-bot ;;
+7) lim-bot ;;
+8) change_pay;;
+9) respon;;
+10)msj_ind;;
+11)edit_cost;;
+*) bot_gen;;
+esac
+}

+ 292 - 0
ChuGH-5.7u/Bot/update/BotGen.sh

@@ -0,0 +1,292 @@
+#!/bin/bash
+# -*- ENCODING: UTF-8 -*-
+#https://github.com/joao-lucas/ShellBot
+
+CIDdir=/etc/ADM-db && [[ ! -d ${CIDdir} ]] && mkdir ${CIDdir}
+CIDimg=/etc/tokenIMG && [[ ! -d ${CIDimg} ]] && mkdir ${CIDimg}
+SRC="${CIDdir}/sources" && [[ ! -d ${SRC} ]] && mkdir ${SRC}
+CID="${CIDdir}/User-ID" && [[ ! -e ${CID} ]] && echo > ${CID}
+CIDRESS="${CIDdir}/RESSELLERS" && [[ ! -e ${CIDRESS} ]] &&  mkdir ${CIDRESS}
+keytxt="${CIDdir}/keys" && [[ ! -d ${keytxt} ]] && mkdir ${keytxt}
+timg="${CIDimg}/img" && [[ ! -d ${timg} ]] && mkdir ${timg}
+[[ $(dpkg --get-selections|grep -w "jq"|head -1) ]] || apt-get install jq -y &>/dev/null
+[[ ! -e "/bin/ShellBot.sh" ]] && wget -O /bin/ShellBot.sh https://raw.githubusercontent.com/ChumoGH/VPSbot/main/ShellBot.sh &> /dev/null
+[[ -e /etc/texto-bot ]] && rm /etc/texto-bot
+LINE="   ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••"
+
+# Importando API
+source ShellBot.sh
+source ${SRC}/menu
+source ${SRC}/ayuda
+source ${SRC}/cache
+source ${SRC}/invalido
+source ${SRC}/status
+source ${SRC}/reinicio
+source ${SRC}/myip
+source ${SRC}/id
+source ${SRC}/back_ID
+source ${SRC}/link
+source ${SRC}/listID
+source ${SRC}/gerar_key
+source ${SRC}/power
+source ${SRC}/comandos
+source ${SRC}/update
+source ${SRC}/donar
+source ${SRC}/costes
+#source ${SRC}/kill_drop.sh
+
+# Token del bot
+bot_token="$(cat ${CIDdir}/token)"
+
+# Inicializando el bot
+ShellBot.init --token "$bot_token" --monitor --flush --return map
+ShellBot.username
+
+reply () {
+	[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+
+		 	 ShellBot.sendMessage	--chat_id  $var \
+									--text "$comando" \
+									--parse_mode html \
+									--reply_markup "$(ShellBot.ForceReply)"
+	[[ "${callback_query_data}" = /del || "${message_text}" = /del ]] && listID_src
+	#[[ "${callback_query_data}" = /img || "${message_text}" = /img ]] && listID_src
+	[[ "${callback_query_data}" = '/banIP' || "${message_text}" = '/banIP' ]] && list_IP
+	
+}
+
+
+
+
+menu_print () {
+[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+
+	if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+				# ShellBot.sendMessage 	--chat_id ${message_chat_id[$id]} \
+				ShellBot.sendMessage 	--chat_id $var \
+										--text "<i>$(echo -e $bot_retorno)</i>" \
+										--parse_mode html \
+										--reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_user')"
+	else
+				# ShellBot.sendMessage 	--chat_id ${message_chat_id[$id]} \
+				ShellBot.sendMessage 	--chat_id $var \
+										--text "<i>$(echo -e $bot_retorno)</i>" \
+										--parse_mode html \
+										--reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_conf')"
+	fi
+}
+
+menu_printSN () {
+[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+
+	if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+				ShellBot.sendMessage 	--chat_id $var \
+				--text "<i>$(echo -e $bot_retorno)</i>" \
+				--parse_mode html \
+				--reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_send_id')"
+	fi
+}
+
+
+download_file () {
+# shellbot.sh editado linea 3986
+user=User-ID
+[[ -e ${CID} ]] && rm ${CID}
+local file_id
+          ShellBot.getFile --file_id ${message_document_file_id[$id]}
+          ShellBot.downloadFile --file_path "${return[file_path]}" --dir "${CIDdir}"
+		  [[ -e ${return[file_path]} ]] && mv ${return[file_path]} ${CID}
+local bot_retorno="ID user botgen\n"
+		bot_retorno+="$LINE\n"
+		bot_retorno+="Se restauro con exito!!\n"
+		bot_retorno+="$LINE\n"
+		bot_retorno+=" FILE ${return[file_path]} \n"
+		bot_retorno+="$LINE"
+			ShellBot.sendMessage	--chat_id "${message_chat_id[$id]}" \
+									--reply_to_message_id "${message_message_id[$id]}" \
+									--text "<i>$(echo -e $bot_retorno)</i>" \
+									--parse_mode html
+return 0
+}
+
+
+msj_add () {
+	      ShellBot.sendMessage --chat_id ${1} \
+							--text "<i>$(echo -e $bot_retor)</i>" \
+							--parse_mode html
+}
+
+upfile_fun () {
+	[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+          ShellBot.sendDocument --chat_id $var  \
+                             --document @${1} \
+                             #--caption  "$(echo -e "$bot_retorno")" \
+                             #--parse_mode html \
+                             #--reply_markup "$(ShellBot.ForceReply)"
+							 #--reply_markup "$(ShellBot.InlineKeyboardMarkup -b "$2")"							 
+}
+
+upimg_fun () {
+          ShellBot.sendDocument --chat_id $(cat ${CIDdir}/Admin-ID)  \
+                             --document @${1} \
+                             #--caption  "$(echo -e "$bot_retorno")" \
+                             #--parse_mode html \
+                             #--reply_markup "$(ShellBot.ForceReply)"
+							 #--reply_markup "$(ShellBot.InlineKeyboardMarkup -b "$2")"							 
+}
+
+invalido_fun () {
+MSG_id=$((${message_message_id} + 1 ))
+	[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+	local bot_retorno="  🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘  𝚊𝚕  𝙱𝚘𝚝𝙶𝚎𝚗  𝙰𝙳𝙼  🎊\n"
+		bot_retorno+="$LINE\n"
+        bot_retorno+=" COMANDO NO PERMITIDO !!\n Quizas debes usar este /keygen \n O Posiblemente no estas Autorizado, clic aqui /prices o \n Contacta a $(cat < /etc/ADM-db/resell) y adquiere una subscripcion \n Toca aqui para ayuda /ayuda \n"
+        bot_retorno+="$LINE\n"
+	    ShellBot.sendMessage --chat_id $var \
+							--text "<i>$(echo -e $bot_retorno)</i>" \
+							--parse_mode html
+		sleep 5s
+		msj_del ${message_message_id}
+		msj_del ${MSG_id}
+							return 0	
+}
+
+
+send_admin(){
+
+	local bot_retorno2="$LINE\n"
+	bot_retorno2+="🔰 Solicitud de autorizacion 🔰\n"
+	bot_retorno2+="$LINE\n"
+	bot_retorno2+="<u>Nombre</u>: ${callback_query_from_first_name}\n"
+	[[ ! -z ${callback_query_from_username} ]] && bot_retorno2+="<u>Alias</u>: @${callback_query_from_username}\n"
+	bot_retorno2+="<u>ID</u>: <code>${callback_query_from_id}</code>\n"
+	bot_retorno2+="$LINE"
+
+	bot_retorno="$LINE\n"
+	bot_retorno+="     🔰 Bot generador de key 🔰\n"
+	bot_retorno+="           ⚜ by @ChumoGH ⚜\n"
+	bot_retorno+="$LINE\n"
+	bot_retorno+="      ✅ ID enviado al admin ✅\n"
+	bot_retorno+="$LINE"
+	comand_boton "atras"
+
+	saveID "${callback_query_from_id}"
+	var=$(cat < ${CIDdir}/Admin-ID)
+	ShellBot.sendMessage 	--chat_id $var \
+							--text "$(echo -e "$bot_retorno2")" \
+							--parse_mode html \
+							--reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_save_id')"
+
+	return 0
+}
+
+
+msj_fun () {
+	[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+		      ShellBot.sendMessage --chat_id $var \
+							--text "<i>$(echo -e "$bot_retorno")</i>" \
+							--parse_mode html
+	return 0
+}
+
+msj_del () {
+	[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+		      ShellBot.deleteMessage --chat_id $var --message_id $1 			  
+	return 0
+}
+
+msj_img () {
+#${timg}/id_${usrLOP}.png
+local file_id
+          ShellBot.getFile --file_id "$1"
+          #ShellBot.downloadFile --file_path "${return[file_path]}" --dir "${timg}/id_${usrLOP}.png"
+		  #[[ -e ${return[file_path]} ]] && mv ${return[file_path]} "${timg}/id_${usrLOP}.png1"
+
+	#[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+		      #ShellBot.sendPhoto --chat_id $var --photo @${timg}/id_${usrLOP}.png
+			  #ShellBot.deleteMessage --chat_id $var --message_id $1
+			  upimg_fun
+local bot_retorno="ID user botgen\n"
+		bot_retorno+="$LINE\n"
+		bot_retorno+="Se restauro con exito!!\n"
+		bot_retorno+="$LINE\n"
+		bot_retorno+=" FILE ${return[file_path]} \n"
+		bot_retorno+="$LINE"
+			ShellBot.sendMessage	--chat_id "${message_chat_id[$id]}" \
+									--reply_to_message_id "${message_message_id[$id]}" \
+									--text "<i>$(echo -e $bot_retorno)</i>" \
+									--parse_mode html	
+	
+	return 0
+}
+
+msj_chat () {
+	[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+		      ShellBot.sendChatAction --chat_id $var --action typing
+			  #ShellBot.deleteMessage --chat_id $var --message_id $1 
+	return 0
+}
+
+msj_donar () {
+	[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+	      ShellBot.sendMessage --chat_id $var \
+							--text "<i>$(echo -e "$bot_retorno")</i>" \
+							--parse_mode html \
+							--reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_donar')"
+	return 0
+}
+
+
+saveID(){
+	unset botao_save_id
+	botao_save_id=''
+	ShellBot.InlineKeyboardButton 	--button 'botao_save_id' --line 1 --text "Autorizar ID" --callback_data "/saveid $1"
+}
+
+
+botao_conf=''
+botao_user=''
+botao_donar=''
+unset botao_send_id
+botao_send_id=''
+ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text "ENVIAR al ADM" --callback_data '/sendid'
+ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text "menu" --callback_data '/menu'
+
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text 'NEW ID' --callback_data '/add'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text 'QUITAR 🗑' --callback_data '/del'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text 'LISTAR 📋' --callback_data '/list'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text ' 🔎 ID' --callback_data '/buscar'
+
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text ' ✅ | ❌ ' --callback_data '/power'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text 'MENU' --callback_data '/menu'
+
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 3 --text '🔑 GEN KEY 🔑' --callback_data '/keygen'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 1 --text '🔑 GEN KEY 🔑' --callback_data '/keygen'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text ' 🧿 Ban|IP 📲' --callback_data '/banIP' # '1' --url "https://t.me/$(cat < /etc/ADM-db/resell)"
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text ' 🛒 CATALOGO 📝 ' --callback_data  '1' --url "$(cat < /etc/urlCT)"
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text '💰 DONAR 💰' --callback_data  '1' --url "$(cat < /etc/urlDN)"
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text ' 🪀 WTS 📲' --callback_data  '1' --url "https://wa.me/$(cat < /etc/numctc)"
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text ' MENU ' --callback_data '/menu'
+
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text ' Contacto 📲' --callback_data  '1' --url 'https://wa.me/593987072611?text=Hola!,%20ℂ𝕙𝕦𝕞𝕠𝔾ℍ%20Me%20interesa%20Conocer%20más%20sobre%20el%20ADM.'
+ShellBot.InlineKeyboardButton --button 'botao_donar' --line 2 --text 'Donar Paypal' --callback_data '1' --url "$(cat < /etc/urlDN)"
+ShellBot.InlineKeyboardButton --button 'botao_donar' --line 2 --text 'ACCEDER WHATSAPP' --callback_data '1' --url "https://wa.me/$(cat < /etc/numctc)"
+
+# Ejecutando escucha del bot
+while true; do
+    ShellBot.getUpdates --limit 100 --offset $(ShellBot.OffsetNext) --timeout 30
+    for id in $(ShellBot.ListUpdates); do
+	    chatuser="$(echo ${message_chat_id[$id]}|cut -d'-' -f2)"
+	    [[ -z $chatuser ]] && chatuser="$(echo ${callback_query_from_id[$id]}|cut -d'-' -f2)"
+	    echo $chatuser >&2
+	    #echo "user id $chatuser"
+
+	    comando=(${message_text[$id]})
+	    [[ -z $comando ]] && comando=(${callback_query_data[$id]})
+	    #echo "comando $comando"
+
+	    [[ ! -e "${CIDdir}/Admin-ID" ]] && echo "null" > ${CIDdir}/Admin-ID
+	    permited=$(cat ${CIDdir}/Admin-ID | awk '{print $1}')
+	    comand
+    done
+done

+ 58 - 0
ChuGH-5.7u/Bot/update/ayuda

@@ -0,0 +1,58 @@
+#!/bin/bash
+
+ayuda_src () {
+bot_retorno="  🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘  $message_from_first_name $message_from_last_name  𝚊𝚕  𝙱𝚘𝚝𝙶𝚎𝚗  𝙲𝚑𝚞𝚖𝚘𝙶𝙷-𝙰𝙳𝙼  🎊\n"
+	 if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+		 if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
+			 bot_retorno+="/ID\n 𝚖𝚞𝚎𝚜𝚝𝚛𝚊 𝚜𝚞𝚜 𝙸𝙳 𝚍𝚎 𝚝𝚎𝚕𝚎𝚐𝚛𝚊𝚖 \n 𝚙𝚊𝚛𝚊 𝚝𝚎𝚗𝚎𝚛 𝚊𝚌𝚌𝚎𝚜𝚘 𝚊𝚕 /𝚔𝚎𝚢𝚐𝚎𝚗\n 𝚍𝚎𝚟𝚎 𝚎𝚗𝚟𝚒𝚊𝚛 𝚜𝚞 𝙸𝙳 𝚊𝚕 𝚊𝚍𝚖𝚒𝚗 $(cat < /etc/ADM-db/resell)\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="(Boton) Keygen\n genera una key para\n el instalador del script\n para tener acceso\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="/menu\n muestra el menu\n de comandos disponibles\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="/ayuda\n muestra este menu de ayuda\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="/donar\n ayuda Voluntaria\n"
+			 bot_retorno+="$LINE\n"
+		 else
+			 bot_retorno+="/ID\n muestra sus ID de telegram\n para tener acceso al /keygen\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="(Boton) Keygen\n genera una key para\n el instalador del script\n para tener acceso\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="/instal\n muestra el link de instalacion\n del script para usar sus key\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="/menu\n muestra el menu\n de comandos disponibles\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="/ayuda\n muestra este menu de ayuda\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+="/donar\n ayuda Voluntaria\n"
+			 bot_retorno+="$LINE\n"
+		 fi
+	 else
+		 bot_retorno+="/infosys\n muestra informacion del sistema\n Ram, Cpu, Fecha y Hora\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/ID\n muestra sus ID de telegram\n para tener acceso al /keygen\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/add\n añade nuevo ID\n para dar acceso /keygen\n <u>modo de uso</u>\n /add 123456789 | dias \n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/del\n elimina los ID\n antes deves usar /list\n <u>modo de uso</u>\n /del Selecciona el ID\n \n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/list\n muestra una lista de id\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="(Boton) Keygen\n genera una key para\n el instalador del script\n para tener acceso\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/instal\n muestra el link de instalacion\n del script para usar sus key\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/power\n poner o sacar de linea el generador\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/menu\n muestra el menu\n de comandos disponibles\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/ayuda\n muestra este menu de ayuda\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/cache\n limpia el cache contenido en la ram\n"
+		 bot_retorno+="$LINE\n"
+		 bot_retorno+="/reboot\n Reinicia el servidor vps\n"
+		 bot_retorno+="$LINE\n"
+	 fi
+msj_fun
+}

+ 7 - 0
ChuGH-5.7u/Bot/update/back_ID

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+upfile_src () {
+cp ${CID} $HOME/
+upfile_fun $HOME/User-ID
+rm $HOME/User-ID
+}

+ 38 - 0
ChuGH-5.7u/Bot/update/cache

@@ -0,0 +1,38 @@
+#!/bin/bash
+
+cache_src () {
+
+#MEMORIA RAM
+unset ram1
+unset ram2
+unset ram3
+unset _usor
+_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
+ram1=$(free -h | grep -i mem | awk {'print $2'})
+ram2=$(free -h | grep -i mem | awk {'print $4'})
+ram3=$(free -h | grep -i mem | awk {'print $3'})
+	  bot_retorno="==========Antes==========\n"
+	  bot_retorno+="Ram: $ram1 || EN Uso: $_usor\n"
+	  bot_retorno+="USADA: $ram3 || LIBRE: $ram2\n"
+	  bot_retorno+="=========================\n"
+msj_fun
+
+sleep 2
+
+sudo sync
+sudo sysctl -w vm.drop_caches=3 > /dev/null 2>&1
+
+unset ram1
+unset ram2
+unset ram3
+unset _usor
+_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
+ram1=$(free -h | grep -i mem | awk {'print $2'})
+ram2=$(free -h | grep -i mem | awk {'print $4'})
+ram3=$(free -h | grep -i mem | awk {'print $3'})
+	  bot_retorno="==========Ahora==========\n"
+	  bot_retorno+="Ram: $ram1 || EN Uso: $_usor\n"
+	  bot_retorno+="USADA: $ram3 || LIBRE: $ram2\n"
+	  bot_retorno+="=========================\n"
+msj_fun
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
ChuGH-5.7u/Bot/update/comandos


+ 31 - 0
ChuGH-5.7u/Bot/update/costes

@@ -0,0 +1,31 @@
+#!/bin/bash
+
+#!/bin/bash
+[[ -e /etc/ADM-db/idioma_menuinst ]] && tr=$(cat < /etc/ADM-db/idioma_menuinst)
+
+prices_on () {
+[[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}"
+[[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}"
+local msg
+          msg=' •••••••••••••••••••••••••••••••••••••••••••••••••\n'
+		  msg+=" Hola, 『 ${firsnme} ${lastnme} 』 \n"
+		  msg+=' •••••••••••••••••••••••••••••••••••••••••••••••••\n' 
+          msg+=' $0.70 USD - Acceso ilimitado al BOT 4 dias \n'   
+		  msg+=' $1.00 USD - Acceso ilimitado al BOT 7 dias \n'   
+          msg+=' $1.50 USD - Acceso ilimitado al BOT 15 dias \n'   
+          msg+=' $2.00 USD - Acceso ilimitado al BOT 30 dias \n'   
+		  msg+=' $3.00 USD - Acceso ilimitado al BOT 60 dias\n' 
+		  msg+=' $4.00 USD - Acceso ilimitado al BOT 90 dias\n' 
+		  msg+=' $5.00 USD - Acceso ilimitado al BOT 180 dias\n' 
+		  msg+=' $9.00 USD - Acceso ilimitado al BOT 365 dias\n' 
+		  msg+='•••••••••••••••••••••••••••••••••••••••••••••••••\n' 
+		  msg+=" BOT PREMIUM CON ACCESO Ilimitado \n Incluyendo tu reseller en la Key! \n Soporte, Actualizaciones y MAS!!)\n"
+		  msg+='•••••••••••••••••••••••••••••••••••••••••••••••••\n'  
+		  msg+=" VISITA NUESTRO CATALOGO EN https://shoppy.gg/@ChumoGH/ \n"
+		  msg+='•••••••••••••••••••••••••••••••••••••••••••••••••\n'  
+          ShellBot.sendMessage	--chat_id "${message_chat_id[$id]}" \
+							--reply_to_message_id "${message_message_id[$id]}" \
+							--text "<i>$(echo -e $msg)</i>" \
+							--parse_mode html
+return 0
+}

+ 31 - 0
ChuGH-5.7u/Bot/update/donar

@@ -0,0 +1,31 @@
+#!/bin/bash
+
+donar () {
+			 bot_retorno="$LINE\n"
+			 bot_retorno+="        ⚠️ TENDRAS ACCESO ILIMITADO ⚠️ \n          🚫 INCLUIDO TU RESELLER EN LA KEY 🚫"
+			 bot_retorno+=" 𝙴𝚜𝚝𝚎 𝙿𝚛𝚘𝚢𝚎𝚌𝚝𝚘, 𝚗𝚎𝚌𝚎𝚜𝚒𝚝𝚊 𝚊𝚢𝚞𝚍𝚊 𝚙𝚊𝚛𝚊 𝙴𝚟𝚘𝚕𝚞𝚌𝚒𝚘𝚗𝚊𝚛\n"
+			 bot_retorno+="          𝙎𝙞 𝙙𝙚𝙨𝙚𝙖𝙨 𝙍𝙚𝙖𝙡𝙞𝙯𝙖𝙧 𝙪𝙣𝙖 𝘿𝙤𝙣𝙖𝙘𝙞𝙤𝙣\n"
+			 bot_retorno+="                     𝙋𝙖𝙮𝙥𝙖𝙡\n"
+			 bot_retorno+="            PAGO BTC - CRIPTOMONEDA\n"
+			 bot_retorno+="$LINE\n"
+			 bot_retorno+=" Desde ya muchas gracias\n"
+			 bot_retorno+="$LINE\n"
+			 msj_fun 
+			 #msj_donar
+}
+
+donar_OnOff () {
+if [[ ! -e "/etc/donar_active.txt" ]]; then
+	echo "on" > /etc/donar_active.txt
+	local bot_retorno="$LINE\n"
+          bot_retorno+="MENSAJE DONATIVO : <u>ENCENDIDO</u> ✅\n"
+	  bot_retorno+="$LINE\n"
+	msj_fun
+else
+	rm -rf /etc/donar_active.txt
+	local bot_retorno="$LINE\n"
+          bot_retorno+="MENSAJE DONATIVO: <u>APAGADO</u> ❌\n"
+	  bot_retorno+="$LINE\n"
+	msj_fun
+fi
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
ChuGH-5.7u/Bot/update/gerar_key


Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
ChuGH-5.7u/Bot/update/id


+ 7 - 0
ChuGH-5.7u/Bot/update/invalido

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+invalido_src () {
+bot_retorno="$LINE\n"
+         bot_retorno+="Comando LENIN MORENO ( INVALIDO XD! )\n"
+         bot_retorno+="$LINE\n"
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
ChuGH-5.7u/Bot/update/kill_drop.sh


+ 14 - 0
ChuGH-5.7u/Bot/update/link

@@ -0,0 +1,14 @@
+#!/bin/bash
+link_src () {
+	bot_retorno="$LINE\n"
+	bot_retorno+="   🧬🧬 Soporte - OS 🧬🧬 \n  Ubuntu 14 - 16 - 18 - 20 (x64)\n          Debian 7,8,9,10 (x64) \n 𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤 𝙐𝙗𝙪𝙣𝙩𝙪 18.04 \n  🪦 Solicita Creditos de tu KEY 🛡️⚔️\n"
+	bot_retorno+="Verifica tus Keys, https://t.me/ChumoGH_bot Reseller : @ChumoGH \n"
+	bot_retorno+="$LINE\n"
+	bot_retorno+="<code>apt update -y; apt upgrade -y; wget -q http://plus.chumogh.xyz/setup; chmod 777 setup; ./setup</code>\n"
+	bot_retorno+="$LINE\n"
+	bot_retorno+="$LINE\n"
+	bot_retorno+="  🛡️  𝙸𝚗𝚜𝚝𝚊𝚕𝚊𝚍𝚘𝚛  𝙾𝚏𝚒𝚌𝚒𝚊𝚕 $(cat < /etc/SCRIPT/v-local.log) FOR ARM 🛡️ \n"
+	bot_retorno+="$LINE\n"
+	bot_retorno+="<code>apt update -y; apt upgrade -y; wget -q https://raw.githubusercontent.com/ChumoGH/ScriptCGH/main/setup; chmod 777 setup; ./setup</code>\n"
+msj_fun
+}

+ 91 - 0
ChuGH-5.7u/Bot/update/listID

@@ -0,0 +1,91 @@
+#!/bin/bash
+# -*- ENCODING: UTF-8 -*-
+
+
+listID_GEN () {
+unset bot_lin
+n=1
+for i in $(cat /etc/ADM-db/User-ID | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do 
+idlog=$(cat /etc/ADM-db/User-ID | grep "$i" | awk '{print $3}')
+#idGEN=$(grep -o -i $idlog /etc/ADM-db/num-key.cont | wc -l)
+[[ -e /etc/ADM-db/num-key.cont ]] && idGEN=$(cat /etc/ADM-db/num-key.cont | grep $i | wc -l) || idGEN=0
+bot_lin+="  $n] > <tg-spoiler>${i}</tg-spoiler> | $idlog | ${idGEN}\n"
+#lsid=$(cat -n ${CID})
+let n++
+done
+local bot_retorno="$LINE\n"
+          bot_retorno+='   - ID´S AUTORIZADOS + GENERADAS -\n'
+          bot_retorno+="$LINE\n"
+          bot_retorno+=" $(echo -e ${bot_lin}) "  #|column -t -s '-')"
+          bot_retorno+="$LINE\n"
+msj_fun
+}
+
+listID_src () {
+lsid=$(cat -n ${CID})
+local bot_retorno=" $LINE\n"
+          bot_retorno+="     - ID'S AUTORIZADOS -\n"
+          bot_retorno+="$LINE\n"
+          bot_retorno+="${lsid}\n"
+          bot_retorno+="$LINE\n"
+msj_fun
+}
+
+ChatADM () {
+local bot_retorno=" $LINE\n"
+          bot_retorno+=" ENVIA TU ARCHIVO O COMPROBANTE AL ADM\n"
+          bot_retorno+=" MODELO EN EVOLUCCION DE @ChumoGH\n"
+          bot_retorno+="\n"
+          bot_retorno+="$LINE\n"
+msj_fun
+}
+
+
+
+list_IP () {
+unset lsid
+unset idchek
+[[ -z ${idchek} ]] && idchek="${message_from_id}" 
+[[ -z ${idchek} ]] && idchek="${callback_query_from_id}"
+[[ -z "$(cat /etc/ADM-db/User-ID | grep ${idchek} )" ]] && {
+	[[ "$(cat /etc/ADM-db/Admin-ID)" == "${idchek}" ]] && {
+	cat /var/www/html/ChumoGH/checkIP.log > /tmp/ips
+	echo -e " $(cat /tmp/ips | awk '{print $3}' | uniq)" > /tmp/ipchek
+	lsid=$(cat -n /tmp/ipchek)
+	local bot_retorno=" $LINE\n"
+          bot_retorno+='  - ULTIMOS IP´S UNICOS CAPTURADOS  \n'
+          bot_retorno+="  -  TIENES $(cat /var/www/html/ChumoGH/checkIP.log | wc -l) IP´s CAPTURADAS \n"
+          bot_retorno+="$LINE\n"
+          bot_retorno+=" ${lsid}\n"
+          bot_retorno+="$LINE\n"
+			}
+
+} || {
+cat /var/www/html/ChumoGH/checkIP.log | grep "${idchek}" > /tmp/ips
+echo -e " $(cat /tmp/ips | awk '{print $3}' | uniq)" > /tmp/ipchek
+lsid=$(cat -n /tmp/ipchek)
+local bot_retorno=" $LINE\n"
+          bot_retorno+='  - ULTIMOS IP´S UNICOS CAPTURADOS  \n'
+          bot_retorno+="  -  TIENES $(cat /var/www/html/ChumoGH/checkIP.log | grep ${idchek} | wc -l) IP´s CAPTURADAS DE TUS GENERADAS \n"
+          bot_retorno+="$LINE\n"
+          bot_retorno+=" ${lsid}\n"
+          bot_retorno+="$LINE\n"
+}
+msj_fun
+}
+
+
+listID_RESS () {
+i=1
+for lRES in $(ls ${CIDRESS}); do 
+echo "  $i /$lRES"
+let i++
+done
+lsid=$(ls ${CIDRESS})
+local bot_retorno="$LINE\n"
+          bot_retorno+="Lista de id permitidos\n"
+          bot_retorno+="$LINE\n"
+          bot_retorno+="${lsid}\n"
+          bot_retorno+="$LINE\n"
+msj_fun
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
ChuGH-5.7u/Bot/update/menu


+ 13 - 0
ChuGH-5.7u/Bot/update/myip

@@ -0,0 +1,13 @@
+#!/bin/bash
+
+meu_ip_fun () {
+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"
+}
+
+meu_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" ]] && echo "$MIP2" || echo "$MIP"
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
ChuGH-5.7u/Bot/update/power


+ 10 - 0
ChuGH-5.7u/Bot/update/reinicio

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+reboot_src () {
+bot_retorno="$LINE\n"
+          bot_retorno+="Reiniciando servidor VPS\n"
+          bot_retorno+="$LINE\n"
+msj_fun
+sleep 2
+sudo reboot
+}

+ 46 - 0
ChuGH-5.7u/Bot/update/status

@@ -0,0 +1,46 @@
+#!/bin/bash
+
+infosys_src () {
+
+#HORA Y FECHA
+unset _hora
+unset _fecha
+_hora=$(printf '%(%H:%M:%S)T') 
+_fecha=$(printf '%(%D)T') 
+
+#PROCESSADOR
+unset _core
+unset _usop
+_core=$(printf '%-1s' "$(grep -c cpu[0-9] /proc/stat)")
+_usop=$(printf '%-1s' "$(top -bn1 | awk '/Cpu/ { cpu = "" 100 - $8 "%" }; END { print cpu }')")
+
+#MEMORIA RAM
+unset ram1
+unset ram2
+unset ram3
+ram1=$(free -h | grep -i mem | awk {'print $2'})
+ram2=$(free -h | grep -i mem | awk {'print $4'})
+ram3=$(free -h | grep -i mem | awk {'print $3'})
+
+unset _ram
+unset _usor
+_ram=$(printf ' %-9s' "$(free -h | grep -i mem | awk {'print $2'})")
+_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
+
+unset os_sys
+os_sys=$(echo $(cat -n /etc/issue |grep 1 |cut -d' ' -f6,7,8 |sed 's/1//' |sed 's/      //')) && echo $system|awk '{print $1, $2}'
+
+bot_retorno="$LINE\n"
+          bot_retorno+="S.O: $os_sys\n"
+	  bot_retorno+="Su IP es: $(meu_ip)\n"
+	  bot_retorno+="$LINE\n"
+	  bot_retorno+="Ram: $ram1 || En Uso: $_usor\n"
+	  bot_retorno+="USADA: $ram3 || LIBRE: $ram2\n"
+	  bot_retorno+="$LINE\n"
+	  bot_retorno+="CPU: $_core || En Uso: $_usop\n"
+	  bot_retorno+="$LINE\n"
+	  bot_retorno+="FECHA: $_fecha\n"
+	  bot_retorno+="HORA: $_hora\n"
+          bot_retorno+="$LINE\n"
+msj_fun
+}

+ 30 - 0
ChuGH-5.7u/Bot/update/update

@@ -0,0 +1,30 @@
+#!/bin/bash
+
+dupdate2 (){
+rm -rf /etc/ADM-db/*
+rm -rf /etc/SCRIPT/*
+}
+
+update () {
+#[[ -e /etc/nivbot ]] || echo "0" > /etc/nivbot
+#[[ -d /etc/ADM-db ]] && chmod +x /etc/ADM-db/*
+#echo -ne "\033[1;31m[ ! ] RESPALDANDO USUARIO ADMINISTRADOR "
+#(
+#[[ -e /etc/ADM-db/sources/costes ]] && mv /etc/ADM-db/sources/costes $HOME/costes
+#[[ -e /etc/ADM-db/token ]] && mv /etc/ADM-db/token $HOME/token
+#[[ -e /etc/ADM-db/Admin-ID ]] && mv /etc/ADM-db/Admin-ID $HOME/Admin-ID
+#[[ -e /etc/ADM-db/User-ID ]] && mv /etc/ADM-db/User-ID $HOME/User-ID
+#[[ -e /etc/ADM-db/limit ]] && mv /etc/ADM-db/limit $HOME/limit 
+#[[ -e /etc/ADM-db/resell ]] && mv  /etc/ADM-db/resell $HOME/resell
+#[[ -e /etc/ADM-db/ress ]] && mv  /etc/ADM-db/ress $HOME/ress
+#[[ -e /etc/ADM-db/num-key.cont ]] && mv /etc/ADM-db/num-key.cont $HOME/num-key.cont 
+#) && echo -e "\033[1;32m [OK]" || echo -e "\033[1;31m [FAIL]"
+#rm -rf /etc/ADM-db
+#CIDdir=/etc/ADM-db && [[ ! -d ${CIDdir} ]] && mkdir ${CIDdir}
+#[[ ! -e "${CIDdir}/confbot.sh" ]] && wget --no-check-certificate -O ${CIDdir}/confbot.sh https://www.dropbox.com/s/9q5o523m1ns8vkd/confbot-t.sh &> /dev/null && chmod +x ${CIDdir}/confbot.sh
+#sed -i -e 's/\r$//' ${CIDdir}/confbot.sh
+#echo $id > /etc/ADM-db/idioma_menuinst
+#source ${CIDdir}/confbot.sh
+#bot_conf
+files_script
+}

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor