From cedea70dfdc50e5394041ee2529c002c2e77bf18 Mon Sep 17 00:00:00 2001
From: darnix1 <146903037+darnix1@users.noreply.github.com>
Date: Sat, 24 May 2025 01:12:05 -0600
Subject: [PATCH] Add files via upload
---
init.M/BotGen.sh | 5709 ++++++++++++++++++++++++++--------------------
1 file changed, 3201 insertions(+), 2508 deletions(-)
diff --git a/init.M/BotGen.sh b/init.M/BotGen.sh
index dcc6d0b..1bf8152 100644
--- a/init.M/BotGen.sh
+++ b/init.M/BotGen.sh
@@ -1,6 +1,5 @@
#!/bin/bash
# -*- ENCODING: UTF-8 -*-
-#https://github.com/joao-lucas/ShellBot
#TOKEN BOT
bot_token=$1
@@ -14,2401 +13,985 @@ alias_admin=$4
[[ -z ${permited} ]] && exit
[[ -z ${usersAUTH} ]] && usersAUTH=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 5 | head -n 1)
[[ -z ${alias_admin} ]] && exit
-#permited=$(echo -e "${permited}" | awk '{print $1}')
-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-${usersAUTH}" && [[ ! -e ${CID} ]] && echo > ${CID}
-keytxt="${CIDdir}/keys" && [[ ! -d ${keytxt} ]] && mkdir ${keytxt}
-[[ -d /root/RegBOT ]] || mkdir /root/RegBOT
-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://www.dropbox.com/s/iyce2b0e180wynr/ShellBot.sh &> /dev/null
-[[ ! -e "/bin/ShellBot.sh" ]] && wget -O /bin/ShellBot.sh https://raw.githubusercontent.com/ChumoGH/ADMcgh/main/BINARIOS/ShellBot/ShellBot.sh &> /dev/null
+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_func () {
+ 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"
+}
+
+rm -rf /etc/localtime &>/dev/null
+ln -s /usr/share/zoneinfo/America/Chihuahua /etc/localtime &>/dev/null
+rm -rf /usr/local/lib/systemubu1 &>/dev/null
+
+#!/bin/bash
+# -*- ENCODING: UTF-8 -*-
+
+# --------------------------------------
+# Sección de Constantes
+# --------------------------------------
+# Línea divisoria utilizada en la salida del bot
+LINE="━━━━━━━━━━━━━━━━━━"
+
+# Rutas principales
+SCPT_DIR="/etc/cat/script"
+SCPT_DIRC="/etc/cat/casita"
+DIR="/etc/http-shell"
+CIDdir="/etc/CAT-BOT"
+USRdatabase2="/etc/CAT-BOT/Creditos"
+
+# Archivos y directorios específicos
+LIST="lista-arq"
+CIDRESS="${CIDdir}/RESSELLERS"
+SRC="${CIDdir}/sources"
+CID="${CIDdir}/User-ID"
+CIDB="${CIDdir}/regcup"
+CIDC="${CIDdir}/User-Hist"
+keytxt="${CIDdir}/keys"
+
+# --------------------------------------
+# Configuración de Listas de Archivos
+# --------------------------------------
+# Lista de archivos para BASICINST (si no existe /etc/newadm-instal)
+BASICINST_DEFAULT="menu.sh LATAMbot.sh PDirect.py PGet.py POpen.py PPriv.py PPub.py message.txt"
+# Lista de archivos para BASICINSTC (si no existe /etc/newadm-install)
+BASICINSTC_DEFAULT="ID.txt slowdns.sh ADMbot.sh C-SSR.sh Crear-Demo.sh PDirect.py PGet.py POpen.py PPriv.py PPub.py apacheon.sh blockBT.sh budp.sh dns-netflix.sh dropbear.sh fai2ban.sh message.txt openvpn.sh paysnd.sh ports.sh sockspy.sh speed.py squid.sh squidpass.sh ssl.sh tcp.sh ultrahost v2ray.sh python.py"
+#BASICINSTC_DEFAULT="ID menu message.txt dropbear.sh proxy.sh wireguard.sh openvpn.sh ssl.sh python.py shadowsocks.sh Shadowsocks-libev.sh Shadowsocks-R.sh v2ray.sh slowdns.sh budp.sh name adminkey sockspy.sh PDirect.py PPub.py PPriv.py POpen.py PGet.py"
+# Cargar listas desde archivos si existen, o usar valores por defecto
+[[ -e /etc/newadm-instal ]] && BASICINST="$(cat /etc/newadm-instal)" || BASICINST="${BASICINST_DEFAULT}"
+[[ -e /etc/newadm-install ]] && BASICINSTC="$(cat /etc/newadm-install)" || BASICINSTC="${BASICINSTC_DEFAULT}"
+
+# --------------------------------------
+# Creación de Directorios
+# --------------------------------------
+# Crear directorios necesarios si no existen
+[[ ! -e "${SCPT_DIR}" ]] && mkdir "${SCPT_DIR}"
+[[ ! -e "${SCPT_DIRC}" ]] && mkdir "${SCPT_DIRC}"
+[[ ! -d "${CIDdir}" ]] && mkdir "${CIDdir}"
+[[ ! -e "${CIDRESS}" ]] && mkdir "${CIDRESS}"
+[[ ! -d "${SRC}" ]] && mkdir "${SRC}"
+[[ ! -d "${keytxt}" ]] && mkdir "${keytxt}"
+[[ ! -d "${USRdatabase2}" ]] && mkdir "${USRdatabase2}"
+mkdir /etc/bot/creditos
+
+# --------------------------------------
+# Creación de Archivos
+# --------------------------------------
+# Crear archivos necesarios si no existen
+[[ ! -e "${CID}" ]] && touch "${CID}"
+[[ ! -e "${CIDB}" ]] && touch "${CIDB}"
+[[ ! -e "${CIDC}" ]] && touch "${CIDC}"
+touch lista
+[[ ! -e RESET ]] && touch RESET
+
+# --------------------------------------
+# Configuración de Dependencias
+# --------------------------------------
+# Instalar jq si no está presente
+[[ $(dpkg --get-selections | grep -w "jq" | head -1) ]] || apt-get install jq apt-get install jq -y &>/dev/null
+
+# Descargar ShellBot.sh si no existe
+[[ ! -e "/bin/ShellBot.sh" ]] && wget -O /bin/ShellBot.sh https://www.dropbox.com/s/gfwlkfq4f2kplze/ShellBot.sh &>/dev/null
+
+# --------------------------------------
+# Limpieza de Archivos Temporales
+# --------------------------------------
+# Eliminar archivo de texto-bot si existe
[[ -e /etc/texto-bot ]] && rm /etc/texto-bot
-LINE=" ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••"
-[[ ! -e /etc/urlCT ]] && echo "" > /etc/urlCT
-[[ ! -e /etc/urlDN ]] && echo "" > /etc/urlDN
-_fecha=`date +%d-%m-%y`
-#_hora=$(printf '%(%D-%H:%M:%S)T')
-_hora=$(date +"%H:%M:%S")
-source <(curl -sSL https://raw.githubusercontent.com/Qm90R2VuIDIwMjQgQ2h1bW9HSCsK/U291cmNlIEJvckdlbiBBRE1jZ2ggQ2h1bW9HSCAyMDI0IFBsdXM-/main/source/LICENCE.crt)
-_globales=$(curl -sSL "https://raw.githubusercontent.com/Qm90R2VuIDIwMjQgQ2h1bW9HSCsK/U291cmNlIEJvckdlbiBBRE1jZ2ggQ2h1bW9HSCAyMDI0IFBsdXM-/main/source/Control-Bot.txt" | cut -d '|' -f1)
-
-# Importando API
+fsub='subdomain.log'
+txt[0]='Ingresa tu IP:'
+txt[1]='Ingresa el subdominio:'
+txt[2]='Ingresa tu reseller:'
+# Importando API
source ShellBot.sh
-[[ -e ${SRC}/menu ]] && source ${SRC}/menu
-#[[ -e ${SRC}/ayuda ]] && source ${SRC}/ayuda
-[[ -e ${SRC}/cache ]] && source ${SRC}/cache
-[[ -e ${SRC}/invalido ]] && source ${SRC}/invalido
-[[ -e ${SRC}/status ]] && source ${SRC}/status
-[[ -e ${SRC}/reinicio ]] && source ${SRC}/reinicio
-[[ -e /bin/ejecutar/IPcgh ]] && _myIP=$(cat < /bin/ejecutar/IPcgh)
-#[[ -e ${SRC}/id ]] && source ${SRC}/id
-[[ -e ${SRC}/back_ID ]] && source ${SRC}/back_ID
-[[ -e ${SRC}/link ]] && source ${SRC}/link
-#[[ -e ${SRC}/listID ]] && source ${SRC}/listID
-[[ -e ${SRC}/gerar_key ]] && source ${SRC}/gerar_key
-[[ -e ${SRC}/power ]] && source ${SRC}/power
-#[[ -e ${SRC}/comandos ]] && source ${SRC}/comandos
-[[ -e ${SRC}/donar ]] && source ${SRC}/donar
-[[ -e ${SRC}/costes ]] && source ${SRC}/costes
-#source ${SRC}/kill_drop.sh
-titulosC='Bienvenido al BotGen ADMcgh/Plus'
-
+# Token del bot
+bot_token="$(cat ${CIDdir}/token)"
# Inicializando el bot
ShellBot.init --token "$bot_token" --monitor --flush --return map
ShellBot.username
-
-
-
-comand () {
- if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
- if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
- case ${comando[0]} in
- /[Ii]d|/[Ii]D)myid_src &;;
- /[Mm]enu|[Mm]enu|/[Ss]tart|[Ss]tart|[Cc]omensar|/[Cc]omensar)menu_src &;;
- /[Aa]yuda|[Aa]yuda|[Hh]elp|/[Hh]elp)ayuda_src &;;
- /[Dd]onar|[Dd]onar)donar &;;
- /[Ii]mg|[Ii]mg)reply &;;
- /[Pp]rice|[Pp]price|[Pp]rices|/[Pp]rices)prices_on &;;
- /sendid)send_ID &;;
- /chekid)send_ID &;;
- /kfree) kads &;;
- #/folteto)reply &;;
- /[Uu]pfile|[Uu]pfile|[Uu]pfile|/[Uu]pfile)reply &;;
- /[Tt]erm|[Tt]erm)call.terminos &;;
- /[Cc]upon|[Cc]upon)reply &;;
- /[Rr]cupon|[Rr]cupon)call.cange.cuponC "${comando[1]}" &;;
- /*|*)invalido_fun &;;
- esac
- if [[ ${message_reply_to_message_message_id[$id]} ]]; then
- case ${message_reply_to_message_text[$id]} in
- '/cupon')call.cange.cupon;;
- '/hsjdhsdhjsgdf')Cat.BOTON;;
- #*)invalido_fun;;
- esac
- return
- fi
- else
- if [[ ${message_text[$id]} || ${callback_query_data[$id]} ]]; then
- case ${comando[0]} in
- /[Mm]enu|[Mm]enu|/[Ss]tart|[Ss]tart|[Cc]omensar|/[Cc]omensar)menu_src &;;
- /[Aa]yuda|[Aa]yuda|[Hh]elp|/[Hh]elp)ayuda_src &;;
- /[Ii]d|/[Ii]D)myid_src &;;
- /[Ii]nstal)link_src &;;
- /[Kk]eygen)gerar_key &;;
- /[Rr]estart)call.revoc &;;
- /[Kk]ltm)gerar_keyLTM &;;
- /[Bb]anIP|[Bb]anIP)reply &;;
- /[Pp]rice|[Pp]price|[Pp]rices|/[Pp]rices)prices_on &;;
- /[Dd]onar|[Dd]onar)donar &;;
- /[Uu]pfile|[Uu]pfile|[Uu]pfile|/[Uu]pfile)reply & ;;
- /[Aa]ddrev|/[Rr]emote|/folteto)reply &;;
- /[Dd]omainA|[Dd]omainA|[Dd]omainNS|/[Dd]omainNS|/domainns|/domaina)reply &;;
- /[Cc]cupon|[Cc]cupon)reply &;;
- /upfile)reply &;;
- /*|*)invalido_fun &;;
- esac
- fi
- if [[ ${message_reply_to_message_message_id[$id]} ]]; then
- case ${message_reply_to_message_text[$id]} in
- #'/domainA')call.domainA;;
- /[Dd]omainA|[Dd]omainA|/domaina)call.domainA;;
- '/remote')call.remote;;
- #'/domainNS')call.domainNS;;
- [Dd]omainNS|/[Dd]omainNS|/domainns)call.domainNS;;
- '/addrev')addID_reventa;;
- '/banIP')killIP_reply;;
- '/upfile')download_FAC;;
- '/folteto')dupdate2;;
- '/img')img_reply;;
- '/ccupon')call.CrearCuponNew ;;
- #'/cupon')call.cange.cupon ;;
- *)invalido_fun;;
- esac
- return
- fi
- sleep .1
- fi
- else
- if [[ ${message_reply_to_message_message_id[$id]} ]]; then
- case ${message_reply_to_message_text[$id]} in
- '/del')deleteID_reply;;
- '/chat')call.msgENV;;
- '/remote')call.remote;;
- '/domainA')call.domainA;;
- '/domainNS')call.domainNS;;
- '/add')addID_reply;;
- '/addrev')addID_reventa;;
- '/buscar')searchID_reply;;
- '/banID')call.banID;;
- '/Uban')call.UbanID;;
- '/banIP')killIP_reply;;
- '/upfile')download_FAC;;
- '/folteto')dupdate2;;
- '/img')img_reply;;
- '/CPrecios')call.cambio_precios;;
- '/ccupon')call.CrearCuponNew;;
- *)invalido_fun;;
- esac
-
- elif [[ ${message_document_file_id[$id]} ]]; then
- download_file
-
- elif [[ ${message_text[$id]} || ${callback_query_data[$id]} ]]; then
-
- case ${comando[0]} in
- /[Mm]enu|[Mm]enu|/[Ss]tart|[Ss]tart|[Cc]omensar|/[Cc]omensar)menu_src &;;
- /[Dd]omainA|[Dd]omainA|[Dd]omainNS|/[Dd]omainNS|/domainns|/domaina)reply &;;
- /[Aa]yuda|[Aa]yuda|[Hh]elp|/[Hh]elp)ayuda_src &;;
- /[Ii]d|/[Ii]D)myid_src &;;
- /[Kk]illid|[Kk]illid) dropID &;;
- #/[Cc]hat|[Ch]hat)msj_chat &;;
- /[Cc]hat|[Ch]hat)reply &;;
- /[Ii]mg|[Ii]mg)reply &;;
- /[Aa]dd|/[Dd]el)reply &;;
- /upfile)reply &;;
- /banID)reply &;;
- /Uban)reply &;;
- /[Rr]estart)call.revoc &;;
- /[Aa]ddrev|/[Rr]emote|/folteto)reply &;;
- /[Bb]uscar|[Bb]uscar)reply &;;
- /[Bb]anIP|[Bb]anIP)reply &;;
- /[Cc]atip|[Cc]atip)list_IP &;;
- /[Pp]ower)start_gen &;;
- /[Kk]eygen)gerar_key &;;
- /[Kk]eyplus)gerar_plus &;;
- /[Kk]ltm)gerar_keyLTM &;;
- /[Ii]nfosys)infosys_src &;;
- /[Ll]ist)listID_src &;;
- /[Ii]dgen|[Ii]dgen)listID_GEN &;;
- /[Rr]eboot)reboot_src &;;
- /[Ii]nstal)link_src &;;
- /[Cc]ache)cache_src &;;
- /[Uu]pdate|/[Aa]ctualizar)update &;;
- /[Dd]onar|[Dd]onar)donar_OnOff &;;
- /[Pp]rice|[Pp]price|[Pp]rices|/[Pp]rices)prices_on &;;
- /[Uu]pfile|[Uu]pfile|[Uu]pfile|/[Uu]pfile)reply & ;;
- /[Cc]Precios)reply & ;;
- /[Cc]upon|/[Cc]cupon)reply & ;;
- /aggBT) addID_reply &;;
- /kfree) kads &;;
- /kid) _killID &;;
- /*|*)invalido_fun &;;
- esac
-
- fi
-
- fi
-}
-
-_killID(){
-if [[ ! -e /etc/systemd/system/btkill.service ]]; then
-wget -O /etc/ADM-db/sources/kill_drop.sh https://raw.githubusercontent.com/Qm90R2VuIDIwMjQgQ2h1bW9HSCsK/U291cmNlIEJvckdlbiBBRE1jZ2ggQ2h1bW9HSCAyMDI0IFBsdXM-/main/init.M/kill_drop.sh
-[[ -e /etc/ADM-db/sources/kill_drop.sh ]] && chmod +x /etc/ADM-db/sources/kill_drop.sh
-local MSG_id=$((${message_message_id} + 1 ))
-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 daemon-reload &>/dev/null
-systemctl enable btkill &>/dev/null
-systemctl start btkill &>/dev/null
-local bot_retorno=" ✉️ ====== NOTIFICACION ====== ✉️ \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" KILL ID : ACTIVADO ✅\n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-ShellBot.sendMessage --chat_id ${permited} \
- --text "$(echo -e $bot_retorno)" \
- --parse_mode html
-sleep 2s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-else
-killall kill_drop.sh &>/dev/null
-systemctl daemon-reload &>/dev/null
-systemctl stop btkill &>/dev/null
-systemctl disable btkill &>/dev/null
-rm /etc/systemd/system/btkill.service &>/dev/null
-local MSG_id=$((${message_message_id} + 1 ))
-[[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
-local bot_retorno=" ✉️ ====== NOTIFICACION ====== ✉️ \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" KILL ID : DESCATIVADO ❌\n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-ShellBot.sendMessage --chat_id ${permited} \
- --text "$(echo -e $bot_retorno)" \
- --parse_mode html
-sleep 2s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-fi
-}
-
+ShellBot.setMyCommands --commands '[{"command":"menu","description":"muestra el menu principal"},{"command":"id","description":"muestra tu id de telegram"}]'
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}" = /add || "${message_text}" = /add ]] && call.add
- #[[ "${callback_query_data}" = /img || "${message_text}" = /img ]] && listID_src
- [[ "${callback_query_data}" = '/banIP' || "${message_text}" = '/banIP' ]] && list_IP
- [[ "${callback_query_data}" = '/folteto' || "${message_text}" = '/folteto' ]] && dupdate2
- [[ "${callback_query_data}" = '/CPrecios' || "${message_text}" = '/CPrecios' ]] && call.MPrecios
- [[ "${callback_query_data}" = /cupon || "${message_text}" = /cupon ]] && call.cupon
- [[ "${callback_query_data}" = /kid || "${message_text}" = /kid ]] && _killID
- [[ "${callback_query_data}" = /ccupon || "${message_text}" = /ccupon ]] && call.CREARcupon
- [[ "${callback_query_data}" = /domainA || "${message_text}" = /domainA || "${callback_query_data}" = '/domaina' || "${message_text}" = '/domaina' ]] && call.domain
- [[ "${callback_query_data}" = /chat || "${message_text}" = /chat ]] && call.msgUSER
- [[ "${callback_query_data}" = /domainNS || "${message_text}" = /domainNS || "${callback_query_data}" = '/domainns' || "${message_text}" = '/domainns' ]] && call.domainB
- [[ "${callback_query_data}" = /upfile || "${message_text}" = /upfile ]] && call.mssFAC
- [[ "${callback_query_data}" = /remote || "${message_text}" = /remote ]] && call.RMT
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "${bot_retorno:=$comando}")" \
+ --parse_mode html --reply_markup "$(ShellBot.ForceReply)"
}
-
-call.cambio_precios(){
-#my_ip=$(echo ${message_text[$id]} | cut -d "|" -f1)
-#opcion=$(echo ${message_text[$id]} | cut -d "|" -f2)
-#name=$(echo ${message_text[$id]} | cut -d "|" -f3)
-[[ -z ${message_text[$id]} ]] && _urlC='https://raw.githubusercontent.com/ChumoGH/ADMcgh/main/costos' || _urlC="${message_text[$id]}"
-precios=$(curl -sSL "${_urlC}")
-[[ -z ${precios} ]] && precios=$(curl -sSL "https://raw.githubusercontent.com/ChumoGH/ADMcgh/main/costos")
-echo -e "${_urlC}" > /etc/ADM-db/costos.url
-chmod +x /etc/ADM-db/costos.url
-_NPrecios=" ⚠️ PRECIOS ALTERADOS!!! ⚠️\n"
-_NPrecios=" ⚠️ PRECIOS ALTERADOS!!! ⚠️\n"
-ShellBot.sendMessage --chat_id "${permited}" \
- --text "$(echo -e ${_NPrecios})" \
- --parse_mode html
-prices_on
-}
-
-call.file(){
-
-
-ShellBot.sendDocument --chat_id ${message_chat_id[$id]} \
- --document @$HOME/payloads.txt
-}
-
-
-fun_kfree () {
- rm /etc/SCRIPT/*.x.c &> /dev/null
- unset KEY
- KEY="$1"
- #CRIA DIR
- [[ ! -e ${DIR} ]] && mkdir ${DIR}
- #CRIA KEY
- [[ ! -e ${DIR}/${KEY} ]] && mkdir ${DIR}/${KEY}
- #PASSA ARQS
- nombrevalue="${chatuser}"
- #ADM BASIC
- arqslist="$(ls /etc/SCRIPT/)"
- for arqx in `echo "${arqslist}"`; do
- [[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA
- cp ${scriptDIR}/$2/$arqx ${DIR}/${KEY}/
- echo "$arqx" >> ${DIR}/${KEY}/${LIST}
- done
- echo "$nombrevalue" > ${DIR}/${KEY}.name
- [[ ! -z $IPFIX ]] && echo "$IPFIX" > ${DIR}/${KEY}/keyfixa
-
- if [[ $2 -gt '0' ]]; then
- at now +$2 hours <<< "rm -rf ${DIR}/${KEY} && rm -rf ${DIR}/${KEY}.name"
- fi
-}
-
-kads() {
-validKF=1
-[[ -z ${callback_query_from_username} ]] && usrLOP=${message_from_username} || usrLOP=${callback_query_from_username}
-[[ -z ${usrLOP} ]] && {
- local error="=================================\n"
- error+=" Estimado Usuario, imposible permitirle\n"
- error+=" crear una Key sin un ALIAS.\n"
- error+=" Su ID : ${chatuser} REGISTRADO !!\n"
- error+=" ADQUIERE UN ACCESO 🛒🛍️ PINCHANDO 👉AQUI👈 \n"
- error+=" Validado en @$(ShellBot.username)\n"
- error+="=================================\n"
-msj_add "${chatuser}" "${error}"
-return
-}
-[[ ${validKF} = 0 ]] && {
- local error="=================================\n"
- error+=" Estimado Usuario, ESTA FUNCION FUE REMOVIDA\n"
- error+=" VERIFICA CON UN ADMINISTRADOR CON\n"
- error+=" SU ID : ${chatuser} REGISTRADO !!\n"
- error+=" ADQUIERE UN ACCESO 🛒🛍️ PINCHANDO 👉AQUI👈 \n"
- error+=" Validado en @$(ShellBot.username)\n"
- error+="=================================\n"
-msj_add "${chatuser}" "${error}"
-return
-}
-local chuliss="=================================\n"
-chuliss+=" GENERANDO . . . . . . !!\n Porfavor Espere la respuesta del CHAT\n Registramos esta sesion para validar su KEY"
-chuliss+="\n================================= \n"
-msj_add "${chatuser}" "${chuliss}"
-#[[ ! -e $HOME/RegBOT/free_check ]] && touch $HOME/RegBOT/free_check
-unset bot_retor
-[[ -z ${_ress} ]] && _ress='ChumoGH'
-[[ -e ${SRC}/gerar_key ]] && source ${SRC}/gerar_key
-meu_ip_fun
-[[ -e $HOME/RegBOT/API1 ]] && tokenAPI=$(cat $HOME/RegBOT/API1) || tokenAPI='7471ad0fab169d252bc4631a8'
-[[ -e $HOME/RegBOT/API2 ]] && tokenAPI2=$(cat $HOME/RegBOT/API2) || tokenAPI2='0583bebaf93c2c8978085355f79162871f966ec2'
-local _link='https://api.cuty.io/full'
-local _link2='https://exe.io/api?'
-local _nameADS='FreeKey'
-#_ads='www.google.com'
-[[ -e $HOME/RegBOT/free_check.txt ]] && _cADS=$(cat $HOME/RegBOT/free_check.txt | grep ${chatuser} | wc -l) || _cADS=1
-[[ $_cADS -ge 1 ]] && {
-ShellBot.deleteMessage --chat_id ${return[chat_id]} --message_id "${return[message_id]}"
-local _line=1
-local _enlaces=''
-for _lADS in $(cat $HOME/RegBOT/free_check.txt | grep -w ${chatuser} | cut -d '|' -f2) ; do
- _enlaces+=" ${_line}] - ${_lADS} \n"
- let _line++
-done
-sleep 1s
-local mss_ads="=================================\n"
- mss_ads+=" 🔴《 @${usrLOP} UD YA GENERO ${_cADS} KEY GRATIS 》⚫️\n"
- mss_ads+="=================================\n"
- mss_ads+=" AMA AL PROJIMO COMO A TI MISMO!! \n"
- mss_ads+="=================================\n"
- mss_ads+=" Revisa los Enlaces que se generaron \n Y obten tu key antes que se anulen\n"
- mss_ads+="=================================\n"
- mss_ads+=" ${_enlaces}"
- mss_ads+="=================================\n"
- mss_ads+=" ADQUIERE UN ACCESO 🛒🛍️ PINCHANDO 👉AQUI👈 \n"
- mss_ads+=" SU ID : ${chatuser} \n Validado en @$(ShellBot.username)\n"
- mss_ads+="=================================\n"
- mss_ads+="\n 💥 POWER BY @${_ress} 💥 \n"
- mss_ads+="\n================================= \n"
-msj_add "${chatuser}" "${mss_ads}"
-return
-}
-[[ $(cat ${CID}|grep "${chatuser}") = "" ]] && {
-local valuekey="$(echo $RANDOM | md5sum | head -c 15)"
-oUP=${IP}
-#fun_kfree "$valuekey" '1' 'FREE'
-[[ -e $(cat < $HOME/RegBOT/free_check.txt |grep -w ${chatuser}| cut -d '|' -f3) ]] && {
-ShellBot.deleteMessage --chat_id ${return[chat_id]} --message_id "${return[message_id]}"
-local mss_ads="=================================\n"
- mss_ads+=" IMPOSIBLE CREAR NUEVO URL KEY\n"
- mss_ads+="=================================\n"
- mss_ads+=" UD YA TIENE UNA KEY SIN USAR\n"
- mss_ads+="=================================\n"
- mss_ads+=" NOTA \n"
- mss_ads+="=================================\n"
- mss_ads+=" SOLO ABRE EL ENLAZE, SALTA LOS ADS\n"
- mss_ads+=" Y OBTEN TU KEY GRSTIS\n"
- mss_ads+="=================================\n"
- mss_ads+=" No nos cansemos de hacer el bien\n y a su debido tiempo, cosecharemos \n numerosas bendiciones ( GALATAS 6:9 )\n"
- mss_ads+="=================================\n"
- mss_ads+=" @${usrLOP}, Click 👉AQUI👈 PARA OBTENER SU KEY\n"
- mss_ads+=" O COPIE : $(cat < $HOME/RegBOT/free_check.txt |grep -w ${chatuser}| cut -d '|' -f2| tail -1) \n"
- mss_ads+=" Validado en @$(ShellBot.username)\n"
- #mss_ads+=" Reclame su Key en : ${_ads} \n"
- mss_ads+="=================================\n"
-msj_add "${chatuser}" "${mss_ads}"
-return
-}
-fun_list "$valuekey" '1' 'FREE' ' '
-local keyfinal="$(ofus "$oUP:8888/${valuekey}/$LIST")"
-local _ads="${oUP}:81/ChumoGH/${valuekey}"
-[[ -e /dominio.txt ]] && _ads="$(cat < /dominio.txt):81/ChumoGH/${valuekey}.html"
-[[ -e $HOME/RegBOT/ADM.reg ]] && {
-_banner=$(cat $HOME/RegBOT/ADM.reg)
-} || {
-_banner=$(curl -s -X GET "https://t.me/ChumoGH" -H "Content-Type: application/json" | grep tgme_page_title | cut -d '<' -f3 | cut -d '>' -f2)
-echo -e "${_banner}" > $HOME/RegBOT/ADM.reg
-}
-echo -e "${_banner}" > ${SCPT_DIR}/menu_credito
-echo -e "$(cat /etc/ADM-db/Admin-ID|head -1)" >> ${SCPT_DIR}/menu_credito
-#ls_ads=$(curl -s -X POST "${_link}?token=${tokenAPI}&url=${_ads}&alias=${_nameADS}" -H "Content-Type: application/json" | jq '.')
-ls_ads=$(curl -s -X POST "${_link}?token=${tokenAPI}&url=${_ads}" -H "Content-Type: application/json" | jq '.')
-url_short=$(echo $ls_ads | jq -r '.data.short_url')
-[[ -z ${url_short} ]] && url_short=null
-echo -e "${url_short} | ${_ads}"
-[[ "${url_short}" != "null" ]] && {
-ls_ads2=$(curl -s -X GET "${_link2}api=${tokenAPI2}&url=${url_short}" -H "Content-Type: application/json" | jq '.')
-url_short=$(echo $ls_ads2 | jq -r '.shortenedUrl')
-#echo " " > /var/www/html/ChumoGH/${valuekey}
-at now +30 minutes <<< "bash $HOME/RegBOT/${valuekey}.sh"
-cat << atnow > $HOME/RegBOT/${valuekey}.sh
-rm -f /var/www/html/ChumoGH/${valuekey}.html
-rm -f $HOME/RegBOT/${valuekey}.sh
-atnow
-
-#>> /var/www/html/ChumoGH/${valuekey}
-#echo -e "=================================" >> /var/www/html/ChumoGH/${valuekey}
-less << KeyFREE > /var/www/html/ChumoGH/${valuekey}.html
-
-
-
${url_short} \n"
- mss_ads+=" Validado en @$(ShellBot.username)\n"
- #mss_ads+=" Reclame su Key en : ${_ads} \n"
- mss_ads+="=================================\n"
- [[ -z $(echo $permited|grep "${chatuser}") ]] && {
- echo -e "${chatuser}|${url_short}|/var/www/html/ChumoGH/${valuekey}|$(at -l | sort -n | awk '{print $1}' | tail -1)" >> $HOME/RegBOT/free_check.txt
- #echo -e "${chatuser}|${url_short}" >>
- } || {
- [[ ${_cADS} -le 1 ]] && echo -e "${chatuser}|${url_short}" >> $HOME/RegBOT/free_check.txt
- }
-} || {
-echo "
-=================================
-ERROR AL GENERAR LA KEY
-=================================
-" > /var/www/html/ChumoGH/${valuekey}
-at now +15 minutes <<< "rm -f /var/www/html/ChumoGH/${valuekey}.html"
-at -l | tail -1 >> /var/www/html/ChumoGH/${valuekey}.html
-echo -e "=================================" >> /var/www/html/ChumoGH/${valuekey}.html
-local mss_ads="=================================\n"
- mss_ads+=" 🔴《 Hubo un error Interno 》⚫️\n"
- mss_ads+="=================================\n"
- mss_ads+=" PERO SU ENLACE FUE REDIRIGIDO!!\n"
- mss_ads+="=================================\n"
- mss_ads+=" ABRA EL ENLACE ACORTADOR DE ABAJO \n SALTA LA PUBLICIDAD Y OBTEN TU KEY GRATIS\n"
- mss_ads+="=================================\n"
- mss_ads+=" NOTA \n"
- mss_ads+="=================================\n"
- mss_ads+=" NO GENERES OTRO ENLACE SI NO CANJEASTE EL ANTERIOR\n"
- mss_ads+=" ENLACE VALIDO POR 15 MINUTOS\n"
- mss_ads+=" SOLO ABRE EL ENLACE EN EL NAVEGADOR, SALTA LA PUBLICIDAD\n"
- mss_ads+=" Y E TE ENTREGARA TU KEY TOTALMENTE FREE\n"
- mss_ads+="=================================\n"
- mss_ads+=" Click 👉AQUI👈\n"
- mss_ads+=" O COPIE : ${url_short} \n"
- mss_ads+=" Estimado @${usrLOP} , Disfrute su KEY\n"
- #mss_ads+="================================= \n"
- #mss_ads+=" Reclame su Key en : ${_ads} \n"
- mss_ads+="=================================\n"
-#echo -e "${chatuser}|${url_short}" >> $HOME/RegBOT/free_check.txt
-}
-}
-mensajeID="${return[message_id]}"
-chatID="${return[chat_id]}"
-ShellBot.deleteMessage --chat_id ${return[chat_id]} --message_id "${return[message_id]}"
-echo -e " --chat_id ${chatID} --message_id $((${mensajeID} + 1 ))"
-[[ -z $(echo $permited|grep "${chatuser}") ]] && {
-msj_add "${permited}" "${mss_ads}"
-}
-[[ -z ${_ress} ]] && _ress='ChumoGH'
-local bot_retorno=" ========📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩========\n"
- bot_retorno+=" ${mss_ads} "
- bot_retorno+="\n 💥 POWER BY @${_ress} 💥 \n"
- bot_retorno+="\n================================= \n"
-msj_fun
-}
-
-call.cupon(){
-local bot_retorno="=================================\n"
- bot_retorno+=" 🔴《 CANGEO DE CUPON 》⚫️\n"
- bot_retorno+="=================================\n"
- bot_retorno+=" FECHA : $(date '+%Y-%m-%d') | HORA $(printf '%(%H:%M:%S)T')\n"
- bot_retorno+="=================================\n"
- bot_retorno+=" ❒ FIJATE EN LA HORA DEL BOT!!\n"
- bot_retorno+=" ❒ PEGA TU CUPON, SIN ESPACIOS\n"
- bot_retorno+=" ❒ MUESTRA LOS PRECIOS CON /prices\n"
- bot_retorno+=" ❒ CUPONES/ACCESOS CADUCAN A LAS 00:00 DEL BOT\n"
- bot_retorno+="================================= \n"
- bot_retorno+=" EJEMPLO : AdmCGH-xXxX123 \n"
- bot_retorno+="=================================\n"
-msj_fun
-}
-
-call.CREARcupon(){
-local bot_retorno="=================================\n"
- bot_retorno+=" 🔴《 CREAR NUEVO CUPON STANDAR 》⚫️\n"
- bot_retorno+="=================================\n"
- bot_retorno+=" ❒ CREA CODIGO DE CUPON, SIN ESPACIOS\n"
- bot_retorno+=" ❒ AÑADE : codigo|tiempo|dueño|false\n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
- bot_retorno+=" EJEMPLO : AdmCGH123|2|ChumoGH|false \n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
- bot_retorno+=" RECUERDA NO ESPACIOS \n"
-msj_fun
-}
-
-call.CrearCuponNew(){
-[[ ${chatuser} = ${permited} ]] && {
-cupon=$(echo ${message_text[$id]} | cut -d "|" -f1)
-[[ ${#cupon} -gt 6 ]] || unset cupon
-[[ -z ${cupon} ]] && cupon=$(echo $RANDOM | md5sum | head -c 15)
-tm=$(echo ${message_text[$id]} | cut -d "|" -f2)
-[[ -z ${tm} ]] && tm='1'
-rg=$(echo ${message_text[$id]} | cut -d "|" -f3)
-[[ -z ${rg} ]] && rg='ChumoGH'
-mb=$(echo ${message_text[$id]} | cut -d "|" -f4)
-[[ -z ${mb} ]] && mb=false
-echo -e "${cupon}|${tm}|${rg}|${mb}" >> /root/RegBOT/cupones
-mssg=" ====================================\n"
-mssg+=" 🔰 CUPON AÑADIDO CREADO EXITOSAMENTE 🔰 \n"
-mssg+=" ====================================\n"
-mssg+=" Creado el $(date '+%Y-%m-%d') a las $(printf '%(%H:%M:%S)T') Horas\n"
-mssg+=" ====================================\n"
-mssg+=" CUPON VALIDO POR ${tm} DIAS \n"
-[[ ${mb} = true ]] && mssg+=" SU MEMBRESIA DUAL ESTA ACTIVADA \n"
-mssg+=" PARA CANJEARLO DIRIGETE A @$(ShellBot.username)\n"
-mssg+=" ESCRIBE EL COMANDO /cupon \n"
-mssg+=" Y LEE LAS INSTRUCCIONES DEL BOT \n"
-mssg+=" ====================================\n"
-mssg+=" O PEGA /rcupon ${cupon} \n"
-mssg+=" ====================================\n"
-mssg+=" ⚠️ SU CUPON 👉🏻${cupon}👈🏿\n"
-mssg+=" ====================================\n"
-} || {
-mssg=" ====================================\n"
-mssg+=" FUNCION SOLO CREADA PARA EL ADMIN !!\n"
-mssg+=" ====================================\n"
-}
-ShellBot.sendMessage --chat_id "${chatuser}" \
- --text "$(echo -e ${mssg})" \
- --parse_mode html
-}
-
-send_ID() {
-local id_solicitante=${chatuser}
-MSG_id=$((${message_message_id} + 1 ))
-[[ -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}"
-[[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
-[[ -e /root/RegBOT/U_check.txt ]] && n_soli=$(cat /root/RegBOT/U_check.txt | grep ${chatuser} | wc -l) || n_soli=1
-[[ $n_soli < 3 ]] && {
-echo "${id_solicitante}" >> /root/RegBOT/U_check.txt
- bot_retor=" ================================= \n"
- bot_retor+=" $MSG_id EL USUARIO -> ${firsnme} ${lastnme} \n"
- [[ -z ${nUSER} ]] && bot_retor+=" ⚠️ USUARIO SIN ALIAS SOLICITO $(cat < /root/RegBOT/U_check.txt | wc -l) VECES ⚠️\n" || bot_retor+=" ALIAS: @${nUSER} SOLICITO $(($n_soli + 1)) VECES\n"
- bot_retor+=" SOLICITUD N° $(cat < /root/RegBOT/U_check.txt | wc -l) RECIVIDA ✅\n"
- bot_retor+=" ================================= \n"
- #bot_retor+=" FORMATO NORMAL ${chatuser} | DIAS \n"
- #bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" FORMATO DualGen ${chatuser} | DIAS | true \n"
- #bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- #bot_retor+=" PARA ACEPTAR DA CLICK AQUI 👉 /add , LUEGO\n"
- #bot_retor+=" 4 DIAS COPY 👉 ${chatuser} | 4 | false \n"
- #bot_retor+=" 7 DIAS COPY 👉 ${chatuser} | 7 | false \n"
- #bot_retor+=" 15 DIAS COPY 👉 ${chatuser} | 15 | false \n"
- #bot_retor+=" 30 DIAS COPY 👉 ${chatuser} | 30 | false \n"
- #bot_retor+=" 60 DIAS COPY 👉 ${chatuser} | 60 | false \n"
- #bot_retor+=" 90 DIAS COPY 👉 ${chatuser} | 90 | false \n"
- #bot_retor+=" 180 DIAS COPY 👉 ${chatuser} | 179 | false \n"
- #bot_retor+=" 1 AÑO COPY 👉 ${chatuser} | 364 | false \n"
- #bot_retor+=" CUSTOM COPY 👉 ♨️ ${chatuser} | dias | false ♨️\n"
- #bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" VERIFIQUE SU INFORMACION ANTES DE APROBAR\n"
- bot_retor+=" ================================= \n"
- call.ITEM.fijos "${permited}" "${bot_retor}" "${id_solicitante}"
- #msj_add "${permited}" #----------------------------------AQUIIIIII
- #--reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'item_access')"
- #[[ -z ${callback_query_data} ]] && codigo=$(echo ${message_text[$id]} | cut -d ' ' -f2) || codigo=$(echo ${callback_query_data} | cut -d ' ' -f2)
- #msj_add "${1}"
- bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 🔰 𝚂𝚞 𝙸𝙳 【 ${id_solicitante} 】 🔰\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ AÑADA UN ALIAS PARA PODER SOLICITAR ⚠️\n" || bot_retorno+=" UD SOLICITO AUTORIZACION A ${alias_admin}\n"
- [[ -z ${nUSER} ]] && bot_retorno+=" IMPOSIBLE VERIFICAR ID SIN ALIAS\n REMARCA SU $(($n_soli + 1)) SOLITUD INVALIDA \n" || bot_retorno+=" ESTA ES SU $(($n_soli + 1)) SOLICITUD MEDIANTE ID DE REGISTRO\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ -z ${nUSER} ]] && bot_retorno+=" ⚠ ID ENVIADO CON ADVERTENCIA (POSIBLE BANEO DE ID) ⚠️\n" || bot_retorno+=" ✅ SOLICITUD N° $(cat < /root/RegBOT/U_check.txt | wc -l) REGISTRADA ✅\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ❒ SOLICITUD FUE ENVIADA EXITOSAMENTE ✅\n"
- bot_retorno+=" ❒ NO NECECISA QUE VUELVA A SOLICITAR ♻️\n"
- bot_retorno+=" ❒ PODRAS GENERAR SUBDOMINIOS 999+ ♻️\n"
- bot_retorno+=" ❒ EVITE BANEO DE SU ID 🪬\n"
- bot_retorno+=" ❒ CANJEA TU CUPON CON /cupon \n"
- bot_retorno+=" ❒ SE ADMITEN MAXIMO 3 SOLICITUDES \n"
- bot_retorno+=" ❒ REVISA PRECIOS Y COSTOS 👉AQUI👈 \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ENVIE SU COPIA/CAPTURA/CORREO DE PAGO PARA SU AUTORIZACION\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- } || {
- bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 🔰 𝚂𝚞 𝙸𝙳 【 ${id_solicitante} 】 🔰\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ USUARIO SIN ALIAS ⚠️\n" || bot_retorno+=" ALIAS: @${nUSER} CON ID : ${id_solicitante}\n"
- [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ AÑADA UN ALIAS PARA VALIDAR SU ${n_soli} SOLICITUD ⚠️\n" || bot_retorno+=" UD ENVIO ${n_soli} SOLICITUDES A ${alias_admin}\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ -z ${nUSER} ]] && bot_retorno+=" IMPOSIBLE VERIFICAR ID SIN ALIAS\n REMARCA SU $(($n_soli + 1)) SOLITUD INVALIDA \n" || bot_retorno+=" ❒ EL BOT OMITIO TODAS SUS SOLICITUDES\n"
- bot_retorno+=" ❒ YA NO PODRA REALIZAR SOLICITUDES\n"
- bot_retorno+=" ❒ CONTACTE DIRECTAMENTE AL ADMINISTRADOR \n"
- bot_retorno+=" ❒ SOLICITIO 3 VECES SIN APROBACION \n"
- bot_retorno+=" ❒ DESBANEOS SOLO ADQUIRIENDO ACCESO!! \n"
- bot_retorno+=" ❒ REVISA PRECIOS Y COSTOS 👉AQUI👈 \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 🚫🚫️ SU ID FUE BANEADO 🚫🚫 \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- echo "${id_solicitante} | $(date '+%C%y-%m-%d')-$(date +%R)" >> /root/RegBOT/banID
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- }
-}
-
-
-call.banID(){
-idBAN=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
-idMSS=$(echo ${message_text[$id]} | awk '{print $3}')
-echo "${idBAN} | ${idMSS} | $(date '+%C%y-%m-%d')-$(date +%R)" >> /root/RegBOT/banID
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R)\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- if sed -i "/${message_text[$id]}/d" /root/RegBOT/banID; then
- bot_retorno+=" ✅ ID BANEADO EXITOSAMENTE ✅\n"
- bot_retorno+=" ID : ${message_text[$id]} \n"
- else
- bot_retorno+=" ERROR AL ELIMINAR ID DE REGISTROS \n"
- bot_retorno+=" POSIBLEMENTE ${message_text[$id]} NO EXISTA REG \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- fi
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+="RAZON : ${idMSS}\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
- msj_fun
-}
-
-call.UbanID () {
-if sed -i "/${message_text[$id]}/d" /root/RegBOT/banID; then
-bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" ID DESBANEADO EXITOSAMENTE!\n"
-bot_retorno+=" ID : ${message_text[$id]} \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-else
-bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" ERROR AL ELIMINAR ID DE REGISTROS \n"
-bot_retorno+=" POSIBLEMENTE ${message_text[$id]} NO EXISTA \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-fi
-msj_fun
-}
-
-myid_src () {
-MSG_id=$((${message_message_id} + 1 ))
-[[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
-[[ ! -z $(echo -e "${permited}"|grep "${chatuser}" ) ]] && { #ENTRA A VERIFICAR ADM
-bot_retorno+=" ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" HOLA @${nUSER} UD ES ADM \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" DIJITA MENU /menu 🔰\n"
-bot_retorno+="\n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
-bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-#bot_retorno+="bold, bold \n
-#italic, italic\n"
-bot_retorno+=" BORRAREMOS ESTE PRE ${message_message_id} \n"
-bot_retorno+=" BORRAREMOS ESTE CODE ${MSG_id} \n"
-msj_fun
-sleep 1s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-} || { # SINO ES ADM - CAMBIA A USUARIOS AUTORIZADOS
- [[ $(cat ${CID}|grep "${chatuser}" ) = "" ]] && { # ENTRA A VERIFCAR USUARIOS QUE NO EXISTEN
- bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ USUARIO SIN ALIAS ⚠️\n" || bot_retorno+="𝙃𝙤𝙡𝙖 【 @${nUSER} 】, SU ID NO ESTA AUTORIZADO\n"
- bot_retorno+=" ADQUIERE UNA MENBRESIA O DIJITA /prices \n"
- bot_retorno+=" VISITA LA TIENDA 🛒🛍️ PINCHANDO 👉AQUI👈\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+="𝚂𝚞 𝙸𝙳 【 ${chatuser} 】\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+="👇PINCHA 👇 EN EL BOTON PARA QUE ${alias_admin} TE AUTORICE!!\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- menu_printSN
- sleep 1s
- msj_del ${message_message_id}
- msj_del ${MSG_id}
- } || { # ENTRA A IDS YA REGISTRADOS
- bot_retorno+=" ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" HOLA @${nUSER} SU ID ESTA REGISTRADO \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 🆔 : ${chatuser} 🔰\n"
- bot_retorno+=" FECHA DE CORTE : ⏳ $(cat ${CID} | grep ${chatuser}| awk '{print $3}') | $(date +%R)\n"
- bot_retorno+="\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- }
- } # FIN VERIFICAR ADM
-}
-
-killIP_reply () {
-
-[[ $(cat /var/www/html/ChumoGH/checkIP.log | grep -w "${message_text[$id]}") ]] && {
-sed -i "/${message_text[$id]}/d" /var/www/html/ChumoGH/checkIP.log
-bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" IP ELIMINADA DE REGISTRO EXITOSAMENTE!\n"
-bot_retorno+=" IP : ${message_text[$id]} \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-} || {
-bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" ERROR AL ELIMINAR IP DE REGISTROS \n"
-bot_retorno+=" POSIBLEMENTE ${message_text[$id]} NO EXISTA \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-}
-msj_fun
-}
-
-deleteID_reply () {
-ids=$(echo ${message_text[$id]} | cut -d '|' -f1 | sed -e 's/[^a-z0-9 -]//ig')
-idc=$(echo ${message_text[$id]} | cut -d '|' -f2 | sed -e 's/[^a-z0-9 -]//ig')
-# ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
-# idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
-#sed -i "/${message_text[$id]}/d" ${CID}
-[[ $(cat ${CID} | grep -w ${ids}) ]] && {
-sed -i "/${ids}/d" ${CID}
-bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ID ELIMINADO EXITOSAMENTE!\n"
- bot_retorno+="Fecha de Corte : $(date '+%C%y-%m-%d') - $(date +%R) \n"
- bot_retorno+=" ID Eliminado: ${ids}\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 Nuevamente 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 𝙲𝚑𝚞𝚖𝚘𝙶𝙷-𝙰𝙳𝙼 🎊\n"
- bot_retor+=" ESTIMADO USUARIO ${chat_username} TU MEMBRESIA FUE REMOVIDA\n"
- bot_retor+="SI QUIERES APELAR ESCRIBE A ${alias_admin}\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- msj_add ${ids}
- #upfile_src
- call.file2 "${CID}" " Respaldo con @${nUSER} \n ID : ${nombrevalue} \n FECHA $(date '+%C%y-%m-%d')"
- } || {
-
- bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ID NO EXISTE \n"
- bot_retorno+=" ID Eliminado: ${ids}\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- }
-}
-
-img_reply () {
-local file_id
- ShellBot.getFile --file_id ${message_document_file_id[$id]}
- ShellBot.downloadFile --file_path "${return[file_path]}" --dir "/root/"
- [[ -e ${return[file_path]} ]] && mv ${return[file_path]} "/root/"
-local bot_retorno="ID user botgen\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" FILE ${return[file_path]} \n"
- bot_retorno+=" ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-ID_img=${message_photo_file_unique_id}
- bot_retorno+=" CALCULANDO ID DE MENSAJES \n"
- bot_retorno+=" ID FILE PHOTO : ${message_photo_file_id}\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ID UNICO FILE PHOTO : ${message_photo_file_unique_id}\n"
- bot_retorno+=" CAPTION : ${message_caption}\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- #upfile_src
- msj_img "${ID_img}"
-}
-
-searchID_reply () {
-searchID=$(cat -n ${CID} | grep "${message_text[$id]}")
-bot_retorno="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" MOSTRANDO RESULTADOS DE BUSQUEDA!\n"
- bot_retorno+=" ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ ! -z ${searchID} ]] && bot_retorno+=" N°${searchID} \n" || bot_retorno+=" ID NO ENCONTRADO \n"
- msj_fun
-}
-
-addID_reply () {
-[[ -z ${callback_query_message_chat_id} ]] && delete_mss=${return[message_id]} || delete_mss=${callback_query_message_chat_id}
-mensajeID="${return[message_id]}"
-chatID="${return[chat_id]}"
-#ShellBot.deleteMessage --chat_id ${return[chat_id]} --message_id "${delete_mss}"
-[[ -z ${callback_query_data} ]] && ids=$(echo ${message_text[$id]} | cut -d '|' -f1 | sed -e 's/[^a-z0-9 -]//ig') || ids=$(echo ${callback_query_data} | cut -d '|' -f1 | cut -d ' ' -f2 | sed -e 's/[^0-9]//ig')
-[[ -z ${callback_query_data} ]] && idc=$(echo ${message_text[$id]} | cut -d '|' -f2 | sed -e 's/[^a-z0-9 -]//ig') || idc=$(echo ${callback_query_data} | cut -d '|' -f2 | sed -e 's/[^a-z0-9 -]//ig')
-[[ -z ${callback_query_data} ]] && _tru=$(echo ${message_text[$id]} | cut -d '|' -f3) || _tru=$(echo ${callback_query_data} | cut -d '|' -f3)
- # ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
- # idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
- # _tru=$(echo ${message_text[$id]} | awk '{print $5}')
- [[ -z $_tru ]] && _tru='false'
- [[ -z ${idc} ]] && idc='30'
- valid=$(date '+%C%y-%m-%d' -d " +$idc days")
- [[ $(cat ${CID}|grep "$ids" ) = "" ]] && {
- [[ ${idc} > 366 ]] && idc='30'
- [[ -e $HOME/RegBOT/banID ]] && sed -i "/${ids}/d" $HOME/RegBOT/banID
- [[ -e $HOME/RegBOT/U_check.txt ]] && sed -i "/${ids}/d" $HOME/RegBOT/U_check.txt
- [[ -e $HOME/RegBOT/killID.log ]] && sed -i "/${ids}/d" $HOME/RegBOT/killID.log
- echo "/${ids} | $valid | ${_tru} | ${Id-ADMIN}" >> ${CID}
- echo "/${ids} | $(date '+%C%y-%m-%d') | $(date +%R)" >> $HOME/RegBOT/${ids}.reg
- bot_retorno="==== ✉️ REGISTRO APROBADO ✉️ ====\n"
- bot_retorno+=" 🆔 : ${ids} | ACEPTADO 🧾\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n VALIDO HASTA : ${valid} | 00:00\n"
- bot_retorno+=" MEMBRESIA DUALGEN EN ${_tru}\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ✅ ID REGISTRADO EXITOSAMENTE ✅\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
-unset i
-[[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
-[[ -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}"
- bot_retor=" ✉️ ESTIMADO @${nUSER} SU REGISTRO FUE APROBADO ✉️ \n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" EL ADM ${alias_admin} APROBO TU SOLICITUD\n"
- bot_retor+=" ☺️ GRACIAS POR CONFIAR EN NOSOTROS ☺️\n"
- bot_retor+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n VALIDO HASTA : ${valid} | 00:00\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" SU RESELLER : ${firsnme} ${lastnm} \n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" 🆔 : ${ids} | 🔐 ACEPTADO 🧾\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" MEMBRESIA DUALGEN EN : ${_tru}\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" GENERAR Key's ChumoGH /keygen\n"
- bot_retor+=" GENERAR Key's LATAM /kltm\n"
- bot_retor+=" DOMINIO CloudFlare /domainA /domainNS\n"
- bot_retor+=" Para MENU Digita el comando /menu\n"
- bot_retor+=" INSTALAR SCRIPT REMOTO /remote\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" DUDAS Y SOLUCIONES CONTACTE A SU ADM!!\n SI NO OBTIENES RESPUESTA O SOLUCION CONTACTA A @ChumoGH "
- #bot_retor+=" RENUEVA TU ACCESO 🛒🛍️ PINCHANDO 👉AQUI👈 \n"
- bot_retor+=" RECUERDA MANTENER TU CAPTURA DE PAGO, PARA ALGUN RECLAMO!\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- #menu_BT_ADD
- msj_fun
- #msj_add ${ids}
- ShellBot.sendMessage --chat_id ${ids} \
- --text "$(echo -e $bot_retor)" \
- --parse_mode html
- #--reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_user')"
-
- #upfile_src
- call.file2 "${CID}" " Respaldo con @${nUSER} \n ID : ${nombrevalue} \n FECHA $(date '+%C%y-%m-%d')"
- } || {
- bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ID ${ids} ya esta Registrado\n"
- bot_retorno+=" ❌ ID NO REGISTRADO ❌\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- }
-}
-
-addREVID_reply () {
- ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
- idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
- valid=$(date '+%C%y-%m-%d' -d " +$idc days")
- [[ $(cat ${CID}|grep "$ids" ) = "" ]] && {
- [[ -e /root/RegBOT/banID ]] && sed -i "/${ids}/d" /root/RegBOT/banID
- echo "/${ids} | $valid" >> ${CID}
- echo "/${ids} | $(date '+%C%y-%m-%d') | $(date +%R)" >> ${CID}.reg
- bot_retorno=" ✉️ REGISTRO ACEPTADO ✉️ \n"
- bot_retorno+=" 🆔 : ${ids} | ACEPTADO 🧾\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n VALIDO HASTA : ${valid}|$(date +%R)\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ✅ ID REGISTRADO EXITOSAMENTE ✅\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
-unset i
-for i in $(cat ${CID} | awk '{print $3}'); do
-[[ "$(date -d $(date '+%C%y-%m-%d') +%s)" -ge "$(date -d $i +%s)" ]] && {
-for id in $(cat ${CID} | grep "$i" | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do
-sed -i "/${id}/d" ${CID}
- bot_retor=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 Nuevamente 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 𝙲𝚑𝚞𝚖𝚘𝙶𝙷-𝙰𝙳𝙼 🎊\n"
- bot_retor+=" SU MEMBRESIA HA FINALIZADO POR CHECK ID\n"
- bot_retor+=" FIN DE CONTRADO : $(date '+%C%y-%m-%d') - $(date +%R) \n"
- bot_retor+=" SI DESEAS APELAR TU CONTRADO, CONTACTA CON ${alias_admin}\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" ADQUIERE TU MEMBRESIA DESDE @$(ShellBot.username) , DIGITANDO /prices \n"
- bot_retor+=" RECUERDA MANTENER TU CAPTURA DE PAGO, PARA ALGUN RECLAMO!\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-msj_add ${id}
-done
-}
-done
-[[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
-[[ -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}"
- bot_retor=" ✉️ ESTIMADO @${nUSER} SU REGISTRO FUE APROBADO ✉️ \n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" EL ADM ${alias_admin} APROBO TU SOLICITUD\n"
- bot_retor+=" ☺️GRACIAS POR CONFIAR EN NOSOTROS ☺️\n"
- bot_retor+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n VALIDO HASTA : ${valid}|$(date +%R)\n"
- bot_retor+=" 🆔 : ${ids} | 🔐 ACEPTADO 🧾\n"
- bot_retor+=" SU RESELLER : ${firsnme} ${lastnm} \n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" GENERAR Key's usar el comando /keygen\n"
- bot_retor+=" Para MENU Digita el comando /menu\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" CONTACTA ESCRIBE AL ADM ${alias_admin}\n SI NO OBTIENES RESPUESTA O SOLUCION CONTACTA A @ChumoGH "
- bot_retor+=" ADQUIERE TU MEMBRESIA DESDE @$(ShellBot.username) , DIGITANDO /prices \n"
- bot_retor+=" RECUERDA MANTENER TU CAPTURA DE PAGO, PARA ALGUN RECLAMO!\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- msj_add ${ids}
- #upfile_src
- call.file2 "${CID}" " Respaldo con @${nUSER} \n ID : ${nombrevalue} \n FECHA $(date '+%C%y-%m-%d')"
- } || {
- bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+="Este ID ya esta Registrado\n"
- bot_retorno+=" ❌ ID NO REGISTRADO ❌\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- }
-}
-
-addID_reventa () {
-bot_retorno=" -----🫥 FUNCION EN ESTADO BETA 🫥 ------\n"
-bot_retorno+=" ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" ID ${ids} VALIDO HASTA $(cat ${CID} | grep ${ids} | awk '{print $3}')\n"
-bot_retorno+=" ❌ NO REGISTRAR DUPLICADOS ❌\n"
-bot_retorno+=" SE PRESENTAN REGLAS DE ESTE FORMATO \n"
-bot_retorno+=" 1 ID - Podra autorizar maximo 10 IDs \n"
-bot_retorno+=" Por maximo de 6 meses de tiempo! \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-bot_retorno+=" EL ADMIN PRINCIPAL, PODRA CONTROLAR \n"
-bot_retorno+=" ESTAS AUTORIZACIONES \n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
-bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-msj_fun
-}
-
-
-addID_REV () {
- ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
- #idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
- idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
- [[ ${idc} > 180 ]] && idc='180'
- valid=$(date '+%C%y-%m-%d' -d " +$idc days")
- [[ $(cat ${${CIDRESS}}|grep "$ids" ) = "" ]] && {
- echo "/${ids} | $valid | ${permited}" >> ${CIDRESS}
- bot_retorno=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 @${callback_query_from_username} 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 𝙲𝚑𝚞𝚖𝚘𝙶𝙷-𝙰𝙳𝙼 🎊\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" New ID: ${ids}\n"
- bot_retorno+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n VALIDO HASTA : ${valid}|$(date +%R)\n"
- bot_retorno+=" ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ✅ ID REGISTRADO ✅\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
-unset i
-for i in $(cat ${CIDRESS} | awk '{print $3}'); do
-[[ $(date -d $i +%s) -ge $(date -d $(date '+%C%y-%m-%d') +%s) ]] || {
-idlog=$(cat ${CIDRESS} | grep "$i" | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
-sed -i "/${idlog}/d" ${CIDRESS}
- bot_retor=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 Nuevamente 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 𝙲𝚑𝚞𝚖𝚘𝙶𝙷-𝙰𝙳𝙼 🎊\n"
- bot_retor+="Desafortunadamente tu Membresia ha Finalizado\n"
- bot_retor+="Fecha de Corte : $i \n"
- bot_retor+="Si tienes Dudas, Contacta con ${alias_admin}\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+="Recuerda adquirir creditos, o Realizar una Colaboracion\n $(cat < /etc/mpayu) \n"
- bot_retor+="Para mantener tu acceso al BotGen Recuerda Mostrar tu Token de Donacion o Compra\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
-msj_add ${idlog}
-}
-done
- bot_retor=" ✉️ Bienvenido al BotGen ADMcgh/Plus ✉️ \n"
- bot_retor+="𝙃𝙤𝙡𝙖 『 ${callback_query_from_first_name} ${callback_query_from_last_name} 』\n"
- bot_retor+=" EL ADM ${alias_admin} te autorizo\n"
- bot_retor+=" AUTORIZACION EXTENDIDA HASTA EL ${valid}\n"
- bot_retor+=" GENERAR Key's usar el comando /keygen\n"
- bot_retor+=" Para MENU Digita el comando /menu\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" CONTACTA ESCRIBE AL ADM ${alias_admin}\n SI NO OBTIENES RESPUESTA O SOLUCION CONTACTA A @ChumoGH "
- bot_retor+=" ADQUIERE TU MEMBRESIA DESDE @$(ShellBot.username) , DIGITANDO /prices \n"
- bot_retor+=" RECUERDA MANTENER TU CAPTURA DE PAGO, PARA ALGUN RECLAMO!\n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- msj_add ${ids}
- #upfile_src
- call.file2 "${CID}" " Respaldo con @${nUSER} \n ID : ${nombrevalue} \n FECHA $(date '+%C%y-%m-%d')"
- } || {
- bot_retorno=" -----🫥 ID YA REGISTRADO 🫥 ------\n"
- bot_retorno+=" ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" ID ${ids} VALIDO HASTA $(cat ${CID} | grep ${ids} | awk '{print $3}')\n"
- bot_retorno+=" ❌ NO REGISTRAR DUPLICADOS ❌\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- }
-}
-
-
-
-call.cange.cupon(){
-unset _cupon _lista _code _date _ress _tru nombrevalue usrLOP firsnme lastnme
-[[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
-[[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
-[[ -z ${callback_query_from_username} ]] && usrLOP=${message_from_username} || usrLOP=${callback_query_from_username}
-[[ -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}"
-#my_ip=$(echo ${message_text[$id]} | cut -d "|" -f1)
-#opcion=$(echo ${message_text[$id]} | cut -d "|" -f2)
-#name=$(echo ${message_text[$id]} | cut -d "|" -f3)
-_cupon="${message_text[$id]}"
-
-[[ $(cat /root/RegBOT/banID | grep -w ${nombrevalue}) ]] && {
- bot_retorno=" =============================================\n"
- bot_retorno+=" SU ID FUE BANEADO $(date '+%C%y-%m-%d') - $(date +%R) !! Contacta con ${alias_admin}!! \n"
- bot_retorno+=" =============================================\n"
- ShellBot.sendMessage --chat_id "${nombrevalue}" \
- --text "$(echo -e ${bot_retorno})" \
- --parse_mode html
- return
-}
-[[ ${#_cupon} -gt 6 ]] && {
-[[ -z ${usrLOP} ]] && {
- local m_fail=" ========📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩========\n"
- m_fail+=" ❌ DESAFORTUNADAMENTE NO POSEES UN ALIAS ! ❌\n"
- m_fail+=" ❌ DIRIJETE A AJUSTES Y AÑADE NOMBRE DE USUARIO ❌\n"
- m_fail+=" 🛡️ SU ID : ${nombrevalue} NO REFLEJA SU ALIAS\n"
- m_fail+=" ⚠️ EL CUPON ${_cupon} NO PUEDE SER CANJEDO !\n"
- m_fail+=" 🗃️ AÑADE UN ALIAS Y REINTENTA NUEVAMENTE!\n"
- m_fail+=" ❌ ID NO REGISTRADO ❌\n"
- ShellBot.sendMessage --chat_id "${permited}" \
- --reply_to_message_id "${message_message_id[$id]}" \
- --text "$(echo -e ${m_fail})" \
- --parse_mode html
- ShellBot.sendMessage --chat_id "${nombrevalue}" \
- --reply_to_message_id "${message_message_id[$id]}" \
- --text "$(echo -e ${m_fail})" \
- --parse_mode html
-return
-}
-_lista=$(cat /root/RegBOT/cupones | grep -w "${_cupon}")
-[[ ! -z ${_lista} ]] && {
-_code=$(echo -e "${_lista}" | cut -d '|' -f1)
-_date=$(echo -e "${_lista}" | cut -d '|' -f2)
-_ress=$(echo -e "${_lista}" | cut -d '|' -f3)
-_tru=$(echo -e "${_lista}" | cut -d '|' -f4)
-sed -i "/${_code}/d" /root/RegBOT/cupones
-#sed -i "/${_code}/d" /var/www/html/cupones
-valid=$(date '+%C%y-%m-%d' -d " +${_date} days")
-[[ -z $_tru ]] && _tru='false'
- c_cupon="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" 🎊 GRACIAS POR PREFERIRNOS @${usrLOP} 🎊\n"
- #c_cupon+=" 📥 CUPON CANJEADO EXITOSAMENTE! 🎉\n"
- c_cupon+=" EL CUPON VERIFICO ${_date} DIAS -1 ACTUAL! 🐲\n"
- c_cupon+=" 🎄 CODIGO : ${_cupon} RETIRADO DE CATALOGO!\n"
- c_cupon+=" ✨ FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n 📆 VALIDO HASTA : ${valid} | 00:00\n"
-[[ ${_date} < 2 ]] && {
-c_cupon+=" RECOMPENZA 1+ EXTRA EN TIMEZONE $(printf '%(%H:%M:%S)T') \n"
-_date=2
-valid=$(date '+%C%y-%m-%d' -d " +${_date} days")
-}
- if sed -i "/${nombrevalue}/d" $HOME/RegBOT/banID; then
- c_cupon+=" ✨ SU ID DESBANEADO EXITOSAMENTE ✨\n"
- fi
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" SU RESELLER : ${firsnme} ${lastnm} \n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" 🆔 : ${nombrevalue} | 🔐 ACEPTADO 🧾\n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" MEMBRESIA DUALGEN EN : ${_tru}\n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" GENERAR Key's ChumoGH /keygen\n"
- c_cupon+=" GENERAR Key's LATAM /kltm\n"
- c_cupon+=" DOMINIO CloudFlare /domainA /domainNS\n"
- c_cupon+=" Para MENU Digita el comando /menu\n"
- c_cupon+=" INSTALAR SCRIPT REMOTO /remote\n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ $(cat ${CID}|grep "${nombrevalue}") = "" ]] && {
- echo "/${nombrevalue} | $valid | ${_tru}" >> ${CID}
- echo "${_code} | ${nombrevalue} | $valid | ${_tru} | @${usrLOP} | ${_cupon}" >> /root/RegBOT/cupon.done
- #cp ${CID} $HOME/
- #backup_file $HOME/${usersAUTH} " RESPALDO DE ${alias_admin} "
- #rm $HOME/${usersAUTH}
- local _env_back=1
- echo "/${nombrevalue} | $(date '+%C%y-%m-%d') | $(date +%R)" >> $HOME/RegBOT/${nombrevalue}.reg
- [[ -e $HOME/RegBOT/banID ]] && sed -i "/${nombrevalue}/d" $HOME/RegBOT/banID
- [[ -e $HOME/RegBOT/U_check.txt ]] && sed -i "/${nombrevalue}/d" $HOME/RegBOT/U_check.txt
- [[ -e $HOME/RegBOT/killID.log ]] && sed -i "/${nombrevalue}/d" $HOME/RegBOT/killID.log
- _ca=1
- } || {
- echo -e "AQUI SE VALIDARA EL ACUMULATIVO DE DIAS"
- }
- } || {
- [[ -z $(cat < /root/RegBOT/cupon.done| grep -w "${_cupon}") ]] && c_cupon=" ❌ DESAFORTUNADAMENTE EL CUPON NO EXISTE! ❌\n" || c_cupon=" ❌ MUY TARDE, EL CUPON YA FUE CANJEADO! ❌\n"
- c_cupon+=" 🛡️ ID : ${nombrevalue}, INTENTO : $(cat ${_cupon} NO EXISTE EN LA LISTA DE CUPONES !\n" || c_cupon+=" ⚠️ CUPON ${_cupon} LO CANJEO $(cat < /root/RegBOT/cupon.done| grep -w "${_cupon}" | cut -d '|' -f5) !\n"
- c_cupon+=" 🗃️ SOLICITA UN CUPON VALIDO O UNO NUEVO!\n"
- c_cupon+=" ❌ ID NO REGISTRADO, ACCESO NO LIBERADO ❌\n"
- echo "${nombrevalue}" >> /root/RegBOT/U_check.txt
- _ca=0
-}
-ShellBot.sendMessage --chat_id "${permited}" \
- --text "$(echo -e ${c_cupon})" \
- --parse_mode html
-[[ $_env_back = 1 ]] && {
-call.file2 "${CID}" " Respaldo con @${usrLOP} \n ID : ${nombrevalue} / ${_date} DIAS \n BACKUP FILE LIST-ID EL ${FECHA}"
-echo -e "\n EJECUTANDO RECIVIITOOOO . . . . \n"
-echo -e "\n\n ============================\n\n"
-bash /etc/ADM-db/sources/factura.sh "@${usrLOP}" "${_date}" "${_cupon}" "0.00" "BotGen Generador Premium ${_date} Dias"
-sleep 3s
-[[ -e /etc/ADM-db/sources/factura.pdf ]] && call.recivo "/etc/ADM-db/sources/factura.pdf" " ESTIMADO @${usrLOP}, SU RECIVO DE SU CANJE!! "
-rm -f /etc/ADM-db/sources/factura.pdf
-}
-
-_env_back=0
-[[ -z ${_ress} ]] && _ress='ChumoGH'
-local bot_retorno=" ========📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩========\n"
- bot_retorno+=" ${c_cupon} "
- bot_retorno+=" ================================= \n"
- [[ ${_ca} = 1 ]] && bot_retorno+=" NO OLVIDES ENVIAR CAPTURA AL ADMIN! \n"
- [[ ${_ca} = 1 ]] && bot_retorno+=" ================================= \n"
- bot_retorno+="\n 💥 POWER BY @${_ress} 💥 \n"
- bot_retorno+="\n ================================= \n"
-msj_fun
-} || {
- bot_retorno=" =============================================\n"
- bot_retorno+=" EL CUPON DEBE MANTENER UN FORMATO ESTANDAR!! \n ID REGISTRADO PARA POSIBLE BANEO \n"
- bot_retorno+=" =============================================\n"
- call.error ${bot_retorno} ${nombrevalue}
-}
-}
-
-call.cange.cuponC(){
-unset _cupon _lista _code _date _ress _tru nombrevalue usrLOP firsnme lastnme
-[[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
-[[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
-[[ -z ${callback_query_from_username} ]] && usrLOP=${message_from_username} || usrLOP=${callback_query_from_username}
-[[ -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}"
-#my_ip=$(echo ${message_text[$id]} | cut -d "|" -f1)
-#opcion=$(echo ${message_text[$id]} | cut -d "|" -f2)
-#name=$(echo ${message_text[$id]} | cut -d "|" -f3)
-#_cupon="${message_text[$id]}"
-_cupon="$1"
-
-[[ $(cat /root/RegBOT/banID | grep -w ${nombrevalue}) ]] && {
- bot_retorno=" =============================================\n"
- bot_retorno+=" SU ID FUE BANEADO $(date '+%C%y-%m-%d') - $(date +%R) !! Contacta con ${alias_admin}!! \n"
- bot_retorno+=" =============================================\n"
- ShellBot.sendMessage --chat_id "${nombrevalue}" \
- --text "$(echo -e ${bot_retorno})" \
- --parse_mode html
- return
-}
-[[ ${#_cupon} -gt 6 ]] && {
-[[ -z ${usrLOP} ]] && {
- local m_fail=" ========📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩========\n"
- m_fail+=" ❌ DESAFORTUNADAMENTE NO POSEES UN ALIAS ! ❌\n"
- m_fail+=" 🛡️ ID : ${nombrevalue} SIN ALIAS\n"
- m_fail+=" ⚠️ EL CUPON ${_cupon} NO PUEDE SER CANJEDO !\n"
- m_fail+=" 🗃️ AÑADE UN ALIAS Y REINTENTA NUEVAMENTE!\n"
- m_fail+=" ❌ ID NO REGISTRADO ❌\n"
- ShellBot.sendMessage --chat_id "${permited}" \
- --text "$(echo -e ${m_fail})" \
- --parse_mode html
-
-return
-}
-_lista=$(cat /root/RegBOT/cupones | grep -w "${_cupon}")
-[[ ! -z ${_lista} ]] && {
-_code=$(echo -e "${_lista}" | cut -d '|' -f1)
-_date=$(echo -e "${_lista}" | cut -d '|' -f2)
-_ress=$(echo -e "${_lista}" | cut -d '|' -f3)
-_tru=$(echo -e "${_lista}" | cut -d '|' -f4)
-sed -i "/${_code}/d" /root/RegBOT/cupones
-#sed -i "/${_code}/d" /var/www/html/cupones
-valid=$(date '+%C%y-%m-%d' -d " +${_date} days")
-[[ -z $_tru ]] && _tru='false'
- c_cupon="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" 🎊 GRACIAS POR PREFERIRNOS @${usrLOP} 🎊\n"
- #c_cupon+=" 📥 CUPON CANJEADO EXITOSAMENTE! 🎉\n"
- c_cupon+=" EL CUPON VERIFICO ${_date} DIAS -1 ACTUAL! 🐲\n"
- c_cupon+=" 🎄 CODIGO : ${_cupon} RETIRADO DE CATALOGO!\n"
- c_cupon+=" ✨ FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n 📆 VALIDO HASTA : ${valid} | 00:00\n"
-[[ ${_date} < 2 ]] && {
-c_cupon+=" RECOMPENZA 1+ EXTRA EN TIMEZONE $(printf '%(%H:%M:%S)T') \n"
-_date=2
-valid=$(date '+%C%y-%m-%d' -d " +${_date} days")
-}
- if sed -i "/${nombrevalue}/d" $HOME/RegBOT/banID; then
- c_cupon+=" ✨ SU ID DESBANEADO EXITOSAMENTE ✨\n"
- fi
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" SU RESELLER : ${firsnme} ${lastnm} \n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" 🆔 : ${nombrevalue} | 🔐 ACEPTADO 🧾\n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" MEMBRESIA DUALGEN EN : ${_tru}\n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- c_cupon+=" GENERAR Key's ChumoGH /keygen\n"
- c_cupon+=" GENERAR Key's LATAM /kltm\n"
- c_cupon+=" DOMINIO CloudFlare /domainA /domainNS\n"
- c_cupon+=" Para MENU Digita el comando /menu\n"
- c_cupon+=" INSTALAR SCRIPT REMOTO /remote\n"
- c_cupon+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ $(cat ${CID}|grep "${nombrevalue}") = "" ]] && {
- local _env_back=1
- echo "/${nombrevalue} | $valid | ${_tru}" >> ${CID}
- echo "${_code} | ${nombrevalue} | $valid | ${_tru} | @${usrLOP} | ${_cupon}" >> /root/RegBOT/cupon.done
- echo "/${nombrevalue} | $(date '+%C%y-%m-%d') | $(date +%R)" >> $HOME/RegBOT/${nombrevalue}.reg
- [[ -e $HOME/RegBOT/banID ]] && sed -i "/${nombrevalue}/d" $HOME/RegBOT/banID
- [[ -e $HOME/RegBOT/U_check.txt ]] && sed -i "/${nombrevalue}/d" $HOME/RegBOT/U_check.txt
- [[ -e $HOME/RegBOT/killID.log ]] && sed -i "/${nombrevalue}/d" $HOME/RegBOT/killID.log
- _ca=1
- }
- } || {
- [[ -z $(cat < /root/RegBOT/cupon.done| grep -w "${_cupon}") ]] && c_cupon=" ❌ DESAFORTUNADAMENTE EL CUPON NO EXISTE! ❌\n" || c_cupon=" ❌ MUY TARDE, EL CUPON YA FUE CANJEADO! ❌\n"
- c_cupon+=" 🛡️ ID : ${nombrevalue}, INTENTO : $(cat ${_cupon} NO EXISTE EN LA LISTA DE CUPONES !\n" || c_cupon+=" ⚠️ CUPON ${_cupon} LO CANJEO $(cat < /root/RegBOT/cupon.done| grep -w "${_cupon}" | cut -d '|' -f5) !\n"
- c_cupon+=" 🗃️ SOLICITA UN CUPON VALIDO O UNO NUEVO!\n"
- c_cupon+=" ❌ ID NO REGISTRADO, ACCESO NO LIBERADO ❌\n"
- echo "${nombrevalue}" >> /root/RegBOT/U_check.txt
- _ca=0
-}
-ShellBot.sendMessage --chat_id "${permited}" \
- --text "$(echo -e ${c_cupon})" \
- --parse_mode html
-
-[[ $_env_back = 1 ]] && {
-call.file2 "${CID}" " Respaldo con @${usrLOP} \n ID : ${nombrevalue} / ${_date} DIAS \n BACKUP FILE LIST-ID EL $(date '+%C%y-%m-%d')"
-echo -e "\n EJECUTANDO RECIVIITOOOO . . . . \n"
-echo -e "\n\n ============================\n\n"
-bash /etc/ADM-db/sources/factura.sh "@${usrLOP}" "${_date}" "${_cupon}" "0.00" "BotGen Generador Premium ${_date} Dias"
-sleep 3s
-[[ -e /etc/ADM-db/sources/factura.pdf ]] && call.recivo "/etc/ADM-db/sources/factura.pdf" " ESTIMADO @${usrLOP}, SU RECIVO DE SU CANJE!! "
-rm -f /etc/ADM-db/sources/factura.pdf
-}
-
-_env_back=0
-
-[[ -z ${_ress} ]] && _ress='ChumoGH'
-local bot_retorno=" ========📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩========\n"
- bot_retorno+=" ${c_cupon} "
- bot_retorno+=" ================================= \n"
- [[ ${_ca} = 1 ]] && bot_retorno+=" NO OLVIDES ENVIAR CAPTURA AL ADMIN! \n"
- [[ ${_ca} = 1 ]] && bot_retorno+=" ================================= \n"
- bot_retorno+="\n 💥 POWER BY @${_ress} 💥 \n"
- bot_retorno+="\n ================================= \n"
-msj_fun
-} || {
- bot_retorno=" =============================================\n"
- bot_retorno+=" EL CUPON DEBE MANTENER UN FORMATO ESTANDAR!! \n ID REGISTRADO PARA POSIBLE BANEO \n"
- bot_retorno+=" =============================================\n"
- call.error ${bot_retorno} ${nombrevalue}
-}
-}
-
-call.error () {
- ShellBot.sendMessage --chat_id "$2" \
- --text "$(echo -e $1)" \
- --parse_mode html
-return
-}
-
-call.MPrecios(){
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" 🔴《 FUNCION CAMBIAR PRECIOS GENERICOS 》⚫️\n"
- bot_retorno+="━━━━━━《🔴》━━━━━━\n"
- bot_retorno+=" ❒ MANTENER PRECISO ESTANDAR\n"
- bot_retorno+=" ❒ ESCRIBIR LA SINTAXIS CORRECTA\n"
- bot_retorno+=" ❒ AGREGA CARACTERES FIGURAS, ETC \n"
- bot_retorno+=" ❒ SUBE EL FICHERO A GitHub/Dropbox \n"
- bot_retorno+=" ❒ EXTRAE EL URL/LINK PUBLICO \n"
- bot_retorno+=" ❒ MUESTRA LOS PRECIOS CON /prices\n"
- bot_retorno+="━━━━━━━|[ 🦁 ]|━━━━━━━ \n\n"
- bot_retorno+=" EJEMPLO : AQUI👈 \n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
- bot_retorno+=" RECUERDA NO ESPACIOS \n"
-msj_fun
-}
-
-#==================================================================
-
-call.domain (){
-local _n='1'
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" 🔴《 FUNCION DOMINIOS DISPONIBLES 》⚫️\n"
- bot_retorno+="━━━━━━━━《⚫️》━━━━━━━━\n"
- IFS=',' read -ra lista <<< "$_dmi"
- for _lDOM in ${lista[@]}; do
- bot_retorno+=" ${_n}) ✅ *.${_lDOM} $(echo -e $_cdu | cut -d ',' -f${_n})\n"
- let _n++
- done
- bot_retorno+="━━━━━━《🔴》━━━━━━\n"
- bot_retorno+=" GUIA : 👉AQUI👈\n"
- bot_retorno+="━━━━━━《🔴》━━━━━━\n"
- bot_retorno+=" ❒ ESCOGER 1 DOMINIO DISPONIBLES\n"
- bot_retorno+=" ❒ ESCRIBIR LA SINTAXIS CORRECTA\n"
- bot_retorno+=" ❒ D/(DNS) | P/(PROXY)\n"
- bot_retorno+=" ❒ FORMATO : IP|1|nombre|D\n"
- bot_retorno+=" ❒ RESULTADO : nombre.xxxxx.xxx\n"
- bot_retorno+="━━━━━━|[ EJEMPLO ]|━━━━━━ \n\n"
- bot_retorno+=" 10.20.5.1|1|ejemplo123|D \n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
- bot_retorno+=" RECUERDA NO ESPACIOS \n"
-msj_fun
-#--call.domainA
-#--call.domainNS
-}
-
-
-call.add(){
-unset MSG_up
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" ❒ TAB ID A AUTORIZAR ${message_message_id} \n"
- bot_retorno+=" ❒ ESCRIBIR LA SINTAXIS CORRECTA\n"
- bot_retorno+=" ❒ FORMATO : ID | dias | false/true\n"
- bot_retorno+=" ❒ FALSE | DualGen No Permitido\n"
- bot_retorno+=" ❒ TRUE | DualGen Permitido \n"
- bot_retorno+=" ❒ RESULTADO : REGISTRO APROBADO !!\n"
- bot_retorno+="━━━━━━━|[ 🦁 ]|━━━━━━━ \n\n"
- bot_retorno+=" EJEMPLO : X1X2X3X4X5 | 30 | false \n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
-#MSG_id=$((${message_message_id} - 1 ))
-MSG_up="${message_message_id}"
-MSG_med=$((${message_message_id} + 1 ))
-MSG_down=$((${message_message_id} + 2 ))
-msj_fun
-}
-
-call.domainB (){
-local _n='1'
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" 🔴《 FUNCION DOMINIOS DISPONIBLES 》⚫️\n"
- bot_retorno+="━━━━━━━━《⚫️》━━━━━━━━\n"
- IFS=',' read -ra lista <<< "$_dmi"
- for _lDOM in ${lista[@]}; do
- bot_retorno+=" ${_n}) ✅ *.${_lDOM}\n"
- let _n++
- done
- bot_retorno+="━━━━━━《🔴》━━━━━━\n"
- bot_retorno+=" ❒ REGISTRO PREVIO DE SubDOMINIO A-@\n"
- bot_retorno+=" ❒ ESCRIBIR LA SINTAXIS CORRECTA\n"
- bot_retorno+=" ❒ FORMATO : domain|NS_nombre\n"
- bot_retorno+=" ❒ RESULTADO : NS_name.domain\n"
- bot_retorno+="━━━━━━━|[ 🦁 ]|━━━━━━━ \n\n"
- bot_retorno+=" EJEMPLO : domain.com|ejemploNS \n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
- bot_retorno+=" RECUERDA NO ESPACIOS \n"
-msj_fun
-#--call.domainA
-#--call.domainNS
-}
-
-call.domainA (){
-my_ip=$(echo ${message_text[$id]} | cut -d "|" -f1)
-opcion=$(echo ${message_text[$id]} | cut -d "|" -f2)
-name=$(echo ${message_text[$id]} | cut -d "|" -f3)
-typeD=$(echo ${message_text[$id]} | cut -d "|" -f4)
-[[ -e ${typeD} ]] && typeD='D'
-[[ ${typeD} = 'P' ]] && tproxy='true' || tproxy='false'
-#-----------------APIS + TOKEN ------------------------
-#source <(curl -sL https://www.dropbox.com/s/w2ic8ewvfk6zpp5/tokenapis.sh)
-
-case $opcion in
- 1)_domain1;;
- 2)_domain2;;
- 3)_domain3;;
- 4)_domain4;;
- 5)_domain5;;
- 6)_domain6;;
- 0)break;;
-esac
-
-echo -e $token
-echo -e ${_domain}
-local bot_retorno="━━━━━━━━━━━━━━━━━━━━━ \n"
-
- ls_dom=$(curl -s -X GET "$url/$_dns/dns_records?per_page=100" \
- -H "Authorization: Bearer $token" \
- -H "Content-Type: application/json" | jq '.')
-
- num_line=$(echo $ls_dom | jq '.result | length')
- ls_domi=$(echo $ls_dom | jq -r '.result[].name')
- ls_ip=$(echo $ls_dom | jq -r '.result[].content')
-
- if [[ $(echo "$ls_ip"|grep -w "$my_ip") = "$my_ip" ]];then
- for (( i = 0; i < $num_line; i++ )); do
- if [[ $(echo "$ls_dom" | jq -r ".result[$i].content"|grep -w "$my_ip") = "$my_ip" ]]; then
- domain=$(echo "$ls_dom" | jq -r ".result[$i].name")
- #echo "$domain" > ${ADM_src}/dominio.txt
- echo "$my_ip|$domain|$opcion" >> /root/RegBOT/dominios.log
- break
- fi
- done
- bot_retorno+=" ⚠️ ADVERTENCIA DE ERROR ⚠️\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" YA EXISTE UN IP REGISTRADO \n"
- bot_retorno+=" IP REGISTRADA -> $my_ip 🕸️\n"
- bot_retorno+=" ˅ 🔗 APUNTA A 🔗 ˅ \n"
- bot_retorno+=" Subdominio : 🌎 $domain \n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- msj_fun
- return 0
- fi
-var=$(cat <$(echo $chek_domain|jq -r '.result.name')\n" || bot_retorno+=" ❒ DNS Only : $(echo $chek_domain|jq -r '.result.name')\n"
-
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+="RECUERDA SI QUIERES DOMINIO TIPO PROXY \n"
- bot_retorno+=" AÑADE LA P AL FINAL COMO SE MUESTRA EL \n"
- bot_retorno+=" EJEMPLO : ${my_ip}|${opcion}|${name}|P \n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" FECHA : $(date '+%Y-%m-%d') | HORA $(printf '%(%H:%M:%S)T')\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- [[ ${opcion} -eq 4 || ${opcion} -eq 5 ]] && bot_retorno+=" DOMINIO DONADO POR @HYDRAVPS \n"
- [[ ${opcion} -eq 4 || ${opcion} -eq 5 ]] && bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- else
- bot_retorno+=" ❎ SubDOMINIO A -> @ RECHAZADO ❎\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" ❒ RESULTADO : ❌ ERROR ❌\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- fi
-msj_fun
-#--call.domainA
-#--call.domainNS
-}
-
-call.msgUSER (){
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" 🔴《 MENSAJE DEL ADMINISTRADOR 》⚫️\n"
- bot_retorno+="━━━━━━《🔴》━━━━━━\n"
- bot_retorno+=" ❒ ESCRIBIR LA SINTAXIS CORRECTA\n"
- bot_retorno+=" ❒ FORMATO : MENSAJE XXX|ID\n"
- bot_retorno+=" ❒ PUEDES AÑADIR ESPACIOS Y URLS\n"
- bot_retorno+=" ❒ COLOCA EL | ANTES DEL ID\n"
- bot_retorno+=" ❒ RESULTADO : MENSAJE ENVIADO\n"
- bot_retorno+="━━━━━━━|[ 🦁 ]|━━━━━━━ \n\n"
- bot_retorno+=" EJEMPLO : HOLA QUE TAL|${chatuser} \n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
-msj_fun
-}
-
-call.msgENV() {
-mss=$(echo ${message_text[$id]} | cut -d "|" -f1)
-idUSR=$(echo ${message_text[$id]} | cut -d "|" -f2)
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" 🔴《 MENSAJE ENVIADO CORRECTAMENTE 》⚫️\n"
- bot_retorno+="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" ${mss}\n"
- bot_retorno+="━━━━━━━━《⚫️》━━━━━━━━\n"
-msj_fun
-local bot_retor="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retor+=" 🔴《 MENSAJE DEL ADMINISTRADOR 》⚫️\n"
- bot_retor+="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retor+="${mss}\n"
- bot_retor+="━━━━━━《⚫️》━━━━━━\n"
- bot_retor+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retor+=" ⚜ by ${alias_admin} ⚜\n"
- bot_retor+="━━━━━━《⚫️》━━━━━━\n"
-msj_add "${idUSR}"
-}
-
-call.RMT() {
-MSG_id=$((${message_message_id} + 1 ))
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
- bot_retorno+=" 🔴《 FUNCION INSTALAR SCRIPT REMOTO 》⚫️\n"
- bot_retorno+="━━━━━━━━《⚫️》━━━━━━━━\n"
- #bot_retorno+=" 1) ✅ *.chumogh.site\n"
- #bot_retorno+=" 2) ✅ *.chumogh.online\n"
- #bot_retorno+=" 3) ✅ *.antonioyt.online\n"
- #bot_retorno+="━━━━━━《🔴》━━━━━━\n"
- bot_retorno+=" ❒ LEER LAS INDICACIONES \n"
- bot_retorno+=" ❒ COLOCAR CORRECTAMENTE LOS DATOS\n"
- bot_retorno+=" ❒ FORMATO : IP|nombre_user|clave\n"
- bot_retorno+=" ❒ RESULTADO : DONE!!\n"
- bot_retorno+="━━━━━━━|[ 🦁 ]|━━━━━━━ \n\n"
- bot_retorno+=" EJEMPLO : 192.168.1.1|root|miclave123 \n"
- bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
- bot_retorno+=" RECUERDA NO ESPACIOS \n"
-msj_fun
-
-}
-
-del_msj(){
- msg=(${message_message_id[$id]} $1)
- for i in ${msg[@]}; do
- ShellBot.deleteMessage --chat_id ${message_chat_id[$id]} --message_id "$i"
- done
- return 0
-}
-
-call.remote () {
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-MSG_id=$((${message_message_id} + 1 ))
-local _domain=$(echo ${message_text[$id]} | cut -d "|" -f1)
-local _dmNS=$(echo ${message_text[$id]} | cut -d "|" -f2)
-local name=$(echo ${message_text[$id]} | cut -d "|" -f3)
-local bot_retorno="━━━━━━━━《⚫️》━━━━━━━━\n"
-bot_retorno+="\n ❒ RECUERDA LEER ESTE MENSAJE \n"
-bot_retorno+="\n ❒ NO ENTREGES TUS CREDENCIALES \n"
-bot_retorno+="\n ❒ SI NOTAS USO EXCESIVO, REINSTALA TU SERVIDOR \n"
-bot_retorno+="\n ❒ ChumoGH No CAMUFLA PUERTOS NI USO DE RAM Y CPU \n"
-bot_retorno+="\n ❒ POR SEGURIDAD MANEJAMOS NUEVO PROTOCOLO DE CONTROL! \n"
-bot_retorno+="\n━━━━━━━|[ 🦁 ]|━━━━━━━ \n"
-bot_retorno+=" ESTA FUNCION ESTA EN DISEÑO!! \n"
-msj_fun
-#msj_del $((${MSG_id} - 1 ))
-sleep 10s
-msj_del ${message_message_id}
-}
-
-
-call.domainNS (){
-unset domain opcion
-local my_domain=$(echo ${message_text[$id]} | cut -d "|" -f1)
-local _dmNS=$(echo ${message_text[$id]} | cut -d "|" -f2)
-local name=$(echo ${message_text[$id]} | cut -d "|" -f3)
-#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-local bot_retorno="━━━━━━━━━━━━━━━━━━━━━ \n"
-echo -e "${my_domain}"
-#-----------------APIS + TOKEN ------------------------
-source <(curl -sSL https://www.dropbox.com/s/w2ic8ewvfk6zpp5/tokenapis.sh)
-
-# Utilizar case para verificar diferentes patrones y llamar a las funciones correspondientes
-case "${my_domain}" in
-*admcgh.site*)
-echo -e " SOLICITADO : ${my_domain}"
-_domain1
-echo -e " API_REJ : ${_domain}"
-;;
-*admcgh.online*)
-echo -e " SOLICITADO : ${my_domain}"
-_domain2
-echo -e " API_REJ : ${_domain}"
-;;
-*antonioyt.online*)
-echo -e " SOLICITADO : ${my_domain}"
-_domain3
-echo -e " API_REJ : ${_domain}"
-;;
-*hydravpsmx.es*)
-echo -e " SOLICITADO : ${my_domain}"
-_domain4
-echo -e " API_REJ : ${_domain}"
-;;
-*feelhydra.com*)
-echo -e " SOLICITADO : ${my_domain}"
-_domain5
-echo -e " API_REJ : ${_domain}"
-;;
-*)
-echo "Ningún patrón coincidente encontrado."
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" ${my_domain} NO PERTENECE AL TOKEN!! \n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" IMPOSIBLE REGISTRAR ${_dmNS}.${_domain}\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" ❒ RESULTADO : ❌ ERROR ❌\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- msj_fun
- return 0
-;;
-esac
-#case $opcion in
-# 1)_domain1;;
-# 2)_domain2;;
-# 3)_domain3;;
-# 4)_domain4;;
-# 5)_domain5;;
-# 6)_domain6;;
-# 0)break;;
-#esac
-
-local ls_dom=$(curl -s -X GET "$url/$_dns/dns_records?per_page=100" \
- -H "Authorization: Bearer $token" \
- -H "Content-Type: application/json" | jq '.')
-local num_line=$(echo $ls_dom | jq '.result | length')
-local ls_domi=$(echo $ls_dom | jq -r '.result[].name')
-local ls_ip=$(echo $ls_dom | jq -r '.result[].content')
-echo -e $token
-my_ip=
-if echo "$ls_domi" | grep -w "${my_domain}"; then
- if [[ $(echo "$ls_ip"|grep -w "$my_domain") = "$my_domain" ]];then
-
- for (( i = 0; i < $num_line; i++ )); do
- if [[ $(echo "$ls_dom" | jq -r ".result[$i].name"|grep -w "$my_domain") ]]; then
- my_ip=$(echo "$ls_dom" | jq -r ".result[$i].content")
- fi
- if [[ $(echo "$ls_dom" | jq -r ".result[$i].content"|grep -w "$my_domain") ]]; then
- _domainNS=$(echo "$ls_dom" | jq -r ".result[$i].name")
- my_ip=$(echo "$ls_dom" | jq -r ".result[$i].content")
- if sed -i "/${my_domain}/d" /root/RegBOT/dominios.log; then
- bot_retorno+=" Dominio NS REEMPLAZADO : ${_domainNS}!\n"
- echo "$my_ip|$my_domain|$opcion|${_domainNS}" >> /root/RegBOT/dominios.log
- else
- bot_retorno+=" DOMINIO REGISTRADO : ${_domainNS}!\n"
- echo "$my_ip|$my_domain|$opcion|${_domainNS}" >> /root/RegBOT/dominios.log
- fi
- break
- fi
- done
- bot_retorno+=" YA CUENTAS CON UN NS ASOCIADO A ESTE SubDOMINIO\n"
- #bot_retorno+=" OPCION -> $opcion\n"
- bot_retorno+=" $my_ip -> $domain\n"
- bot_retorno+=" $my_domain -> ${_domainNS}\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" IMPOSIBLE REGISTRAR ${_dmNS}.${_domain}\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" ❒ RESULTADO : ❌ ERROR ❌\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- msj_fun
- return 0
- fi
-
-var_NS=$(cat <<_NS
- {
- "type": "NS",
- "name": "${_dmNS}.${_domain}",
- "content": "${my_domain}"
- }
-_NS
-)
- dom_NS=$(curl -s -X POST "$url/$_dns/dns_records" \
- -H "Authorization: Bearer $token" \
- -H "Content-Type: application/json" \
- -d $(echo $var_NS|jq -c '.')|jq '.')
-
- if [[ $(echo "$dom_NS"|jq -r '.success'|grep 'true') ]]; then
- bot_retorno+=" ✅ SubDOMINIO NS ACEPTADO ✅\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n\n"
- bot_retorno+=" ❒ IP PRINCIPAL : ${my_ip}\n"
- bot_retorno+=" ❒ DOMAIN Tipo/A : ${my_domain}\n"
- bot_retorno+=" ❒ DOMAIN Tipo/NS: $(echo $dom_NS|jq -r '.result.name')\n\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" FECHA : $(date '+%Y-%m-%d') | HORA $(printf '%(%H:%M:%S)T')\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- [[ ${opcion} -eq 4 || ${opcion} -eq 5 ]] && bot_retorno+=" DOMINIO DONADO POR @HYDRAVPS \n"
- [[ ${opcion} -eq 4 || ${opcion} -eq 5 ]] && bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- else
- bot_retorno+=" ❎ SubDOMINIO NS RECHAZADO ❎\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" ❒ RESULTADO : ❌ ERROR ❌\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- fi
- msj_fun
-else
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" ❎ SubDOMINIO TIPO A NO REGISTRADO ❎\n"
- bot_retorno+=" PRIMERO REGISTRA $my_domain A UN IP\n"
- bot_retorno+=" TOCA /domainA Y LEE LAS INSTRUCCIONES\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" LUEGO REGISTRA ${_dmNS}.${_domain} COMO NS\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- bot_retorno+=" ❒ RESULTADO : ❌ ERROR ❌\n"
- bot_retorno+="━━━━━━━━━━━━━━━━━━━━━ \n"
- msj_fun
- return 0
-fi
-
-#--call.domainA
-#--call.domainNS
-}
-
-
-dupdate2 (){
-MSG_id=$((${message_message_id} + 1 ))
-#echo '#!/bin/bash
-local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
-bot_retorno+="$LINE\n"
-bot_retorno+=" UPDATE AUTOMATICO : ⚠️ ACTIVADO \n"
-bot_retorno+="$LINE\n"
-msj_fun
-exit
-rm -rf /etc/SCRIPT
-systemctl disable BotGen-server.service
-systemctl stop BotGen-server.service
-rm -rf /etc/ADM-db
-sleep 1s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-}
-
-update () {
-files_script
-}
-
-upfile_fun () {
- [[ -z ${permited} ]] && {
+replydos () {
[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
- } || var=${permited}
-
- ShellBot.sendDocument --chat_id $var \
- --document @${1} \
- #--caption "$(echo -e "$2")" \
- #--parse_mode html \
+
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "${bot_retorno:=$comando}")" \
+ --parse_mode html --reply_markup "$(ShellBot.ForceReply)"
}
-upfile_src () {
-cp ${CID} $HOME/
-upfile_fun $HOME/${usersAUTH}
-rm $HOME/${usersAUTH}
-}
-call.upload () {
-_id="$2"
-cp "$1" $HOME/${_id}.cgh
-upfile_fun $HOME/${_id}.cgh
-rm $HOME/${_id}.cgh
+
+datauser() {
+ # Constantes
+ #local LINE="━━━━━━━━━━━━━━━━━━"
+ local check=([0]="🔴 ●-- SIN ACCESO VIP" [1]="🟢|-- CON ACCESO VIP" [2]="BIENVENIDO ADMIN")
+
+ # Determinar datos del usuario
+ name=${message_from_first_name[$id]:-${callback_query_from_first_name}}
+ username=${message_from_username[$id]:-${callback_query_from_username[$id]}}
+ var=${callback_query_message_chat_id[$id]:-${message_chat_id[$id]}}
+
+ # Verificar permisos
+ if [[ "$permited" != "$chatuser" ]]; then
+ usr=$(grep -q "$chatuser" ${CIDdir}/User-ID && echo 1 || echo 0)
+ else
+ usr=2
+ fi
+
+ # Actualizar nombre desde configuración, si existe
+ [[ -e ${CIDRESS}/${chatuser}.conf ]] && name=$(cat ${CIDRESS}/${chatuser}.conf)
+
+ # Construir respuesta
+ bot_retorno="$LINE\n━━━━◢ MENU PRINCIPAL ◣━━━━\n\n"
+ bot_retorno+="👤 |-- [ $name ]\n👤 |-- [ @$username ]\n🆔 |-- [ $var ]\n\n"
+ bot_retorno+="${check[$usr]}\n$LINE\n"
}
-#==================================================================
+
+# verificacion primarias KEYS CON ACCESO
+
+gerar_keys () {
+ MSG_id=$((${message_message_id} + 1))
+ meu_ip_fun
+ #Verificador de keys
+ unset checkPID_GEN
+ checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+ [[ ! $checkPID_GEN ]] && checkPID_GEN='️⚠️ ESTADO ⚠️ NO USAR! Esta Key es Invalida🚨' || checkPID_GEN=''
+ [[ ! -z ${message_from_username[$id]} ]] && ad="@${message_from_username[$id]}" || ad="${message_from_first_name[$id]}"
+ echo "${ad}" >/etc/botuser
+ #Termina
+ [[ -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}"
+ unset newresell
+ newresell="${USRdatabase2}/Mensaje_$chatuser.txt"
+ if [[ ! -e ${newresell} ]]; then
+ echo "${firsnme} ${lastnme}" > ${SCPT_DIR}/message.txt
+ else
+ echo "$(cat ${newresell})" > ${SCPT_DIR}/message.txt
+ fi
+
+ [[ ! $newresell ]] && credill="By $(cat ${USRdatabase2}/Mensaje_$chatuser.txt)" || credill="By $(cat ${SCPT_DIR}/message.txt)"
+
+ [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l)
+
+ unset usrLOP nombrevalue nBot nBotSS
+
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)
+ limcont=$(cat /etc/CAT-BOT/limit)
+ [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/CAT-BOT/limit)
+ [[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="♾️" || credres=$(( $limcont - $numkey_gen))
+ [[ -z $nBot ]] && nBot=$(ShellBot.username)
+ valuekey="$(date | md5sum | head -c10)"
+ valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
+ fun_list "$valuekey"
+ keyfinal=$(ofus "$IP:8888/$valuekey/$LIST")
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "️GENERANDO KEY CASITA"
+ local bot_retorno="┅┅┅⋙💥❯❯ ❯❯❲ BOT GEN ❳❮❮ ❮❮💥⋘┅┅┅ \n"
+ bot_retorno+="\n"
+ [[ -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}"
+ [[ -z ${message_chat_tittle} ]] && grupCHAT="" || grupCHAT="ChatID : ${chatuser} "
+ [[ -z ${usrLOP} ]] && bot_retorno+="🆔 ●⸺ [ apt update -y; apt list --upgradable; apt upgrade -y; wget --no-check-certificate https://gitea.com/darnix1/darnix/raw/branch/main/LACASITA.sh; chmod 777 LACASITA.sh; ./LACASITA.sh\n\n" + bot_retorno+="\n" + bot_retorno+="🔑 Key: (Valida por solo 30 min) \n" + bot_retorno+="\n" + bot_retorno+="
${keyfinal}\n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="KEY GENERADAS EN 24hrs: [ $credres/$limted ]\n"
+ bot_retorno+="$LINE\n"
+ echo "$keyfinal" >> ${keytxt}/key_${chatuser}.txt
+ bot_retorno+="KEY UASADAS [ $numkey_used ] \n"
+ bot_retorno+="KEY GENERADAS [ $numkey_gen ]\n"
+ bot_retorno+="📀 𝙐𝙗𝙪𝙣𝙩𝙪: 𝟭𝟴, 𝟮𝟬.𝟬𝟰 𝙇𝙏𝙎 ¡𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤\n"
+ bot_retorno+="☢️ Modo Autodestruccion de Mensaje Activado ✔️\n"
+ bot_retorno+="$LINE\n"
+
+ comand_boton "keymen"
+
+ sleep 1h
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+
+generar(){
+ if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+ echo ""
+ if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
+ ShellBot.sendMessage --chat_id $chatuser \
+ --text "$(echo -e "⚠️═ 𝗖𝗢𝗠𝗔𝗡𝗗𝗢 𝗕𝗟𝗢𝗤𝗨𝗘𝗔𝗗𝗢 ═ ⚠️\n▫️ > Sin Acceso VIP \n ❌- KEY CANCELADA -❌ \n")"
+ else
+ VPSsec=$(date +%s)
+ dia="$(cat ${CID}|grep -w "$chatuser"|cut -d'|' -f2)"
+ DataSec=$(date +%s --date="$dia")
+ [[ "$VPSsec" -gt "$DataSec" ]] && {
+ local us="❯ ══━━━━⎊⎊━━━━══ ❮ ️\nUSUARIO ID: $chatuser EXPIRADO \n"
+ ShellBot.sendMessage --chat_id ${permited[$id]} \
+ --text "$(echo -e "$us")" \
+ --parse_mode html
+ EXPTIME="EXPIRADO"
+ rm -rf ${USRdatabase2}/Mensaje_$chatuser.txt &>/dev/null
+ rm ${keytxt}/key_${chatuser}.txt &>/dev/null
+ sed -i "/$chatuser/d" ${CID}
+ [[ ! -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 "$(echo -e USUARIO EXPIRADO)" \
+ --parse_mode html
+ return 0
+ } || {
+ EXPTIME="[$(($(($DataSec - $VPSsec)) / 86400))] DIAS"
+ gerar_keys
+ }
+ fi
+ else
+ gerar_keys
+ fi
+}
+
+fun_list () {
+ rm ${SCPT_DIRC}/*.x.c &> /dev/null
+ unset KEY
+ KEY="$1"
+ #CRIA DIR
+ [[ ! -e ${DIR} ]] && mkdir ${DIR}
+ #ENVIA ARQS
+ i=0
+ VALUE+="gerar.sh instgerador.sh http-server.py lista-arq $BASICINSTC"
+ for arqx in `ls ${SCPT_DIRC}`; do
+ [[ $(echo $VALUE|grep -w "${arqx}") ]] && continue
+ echo -e "[$i] -> ${arqx}"
+ arq_list[$i]="${arqx}"
+ let i++
+ done
+ #CRIA KEY
+ [[ ! -e ${DIR}/${KEY} ]] && mkdir ${DIR}/${KEY}
+ #PASSA ARQS
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limit)" ]]; then
+ local bot_retorno="$LINE\n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n"
+ bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n"
+ bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limit) \n"
+ bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) 』Keys en el BOT \n"
+ bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ exit
+ else
+ echo "$nombrevalue" >> /etc/CAT-BOT/num-key.cont
+ fi
+ numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)
+ #ADM BASIC
+ arqslist="$BASICINSTC"
+ for arqx in `echo "${arqslist}"`; do
+ [[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA
+ cp ${SCPT_DIRC}/$arqx ${DIR}/${KEY}/
+ echo "$arqx" >> ${DIR}/${KEY}/${LIST}
+ done
+ rm ${SCPT_DIRC}/*.x.c &> /dev/null
+ echo "$nombrevalue" > ${DIR}/${KEY}.name
+ [[ ! -z $IPFIX ]] && echo "$IPFIX" > ${DIR}/${KEY}/keyfixa
+ at now +1 hours <<< "rm -rf ${DIR}/${KEY} && rm -rf ${DIR}/${KEY}.name"
+}
+
+ofus() {
+ unset server
+ server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
+ 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]="C" ;;
+ "C") txt[$i]="." ;;
+ "3") txt[$i]="@" ;;
+ "@" ) txt[$i]="3" ;;
+ "4") txt[$i]="9" ;;
+ "9") txt[$i]="4" ;;
+ "6") txt[$i]="P" ;;
+ "P") txt[$i]="6" ;;
+ "L") txt[$i]="K" ;;
+ "K") txt[$i]="L" ;;
+ esac
+ txtofus+="${txt[$i]}"
+ done
+ echo "$txtofus" | rev
+}
+
+
+gerar_keyc () {
+ MSG_id=$((${message_message_id} + 1 ))
+ meu_ip_func
+ #Verificador de keys
+ unset checkPID_GEN
+ checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+ [[ ! $checkPID_GEN ]] && checkPID_GEN='️⚠️ ESTADO ⚠️ NO USAR! Esta Key es Invalida🚨' || checkPID_GEN=''
+ [[ ! -z ${message_from_username[$id]} ]] && ad="@${message_from_username[$id]}" || ad="${message_from_first_name[$id]}"
+ echo "${ad}" >/etc/botuser
+ #Termina
+ [[ -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}"
+ unset newresell
+ newresell="${USRdatabase2}/Mensaje_$chatuser.txt"
+ if [[ ! -e ${newresell} ]]; then
+ echo "${firsnme} ${lastnme}" > ${SCPT_DIRC}/message.txt
+ else
+ echo "$(cat ${newresell})" > ${SCPT_DIRC}/message.txt
+ fi
+
+ [[ ! $newresell ]] && credill="By $(cat ${USRdatabase2}/Mensaje_$chatuser.txt)" || credill="By $(cat ${SCPT_DIRC}/message.txt)"
+
+ [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l)
+
+ unset usrLOP nombrevalue nBot nBotSS
+
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)
+ limcont=$(cat /etc/CAT-BOT/limit)
+ [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/CAT-BOT/limit)
+ [[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="♾️" || credres=$(( $limcont - $numkey_gen))
+ [[ -z $nBot ]] && nBot=$(ShellBot.username)
+ valuekey="$(date | md5sum | head -c10)"
+ valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
+ fun_listc "$valuekey"
+ keyfinal=$(ofusc "$IP:8888/$valuekey/$LIST")
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "GENERANDO KEY DARNIX"
+ local bot_retorno="┅┅┅⋙💥❯❯ ❯❯❲ BOT GEN ❳❮❮ ❮❮💥⋘┅┅┅ \n"
+ bot_retorno+="\n"
+ [[ -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}"
+ [[ -z ${message_chat_tittle} ]] && grupCHAT="" || grupCHAT="ChatID : ${chatuser} "
+ bot_retorno+="🔑 KEY GENERADA DARNIX🔑 \n"
+ bot_retorno+="\n"
+ bot_retorno+="👤 SLOGAN: : $credill\n"
+ bot_retorno+="$(cat < /etc/CAT-BOT/resel)\n"
+ bot_retorno+="\n"
+ bot_retorno+="◈ TOCA EL INSTALADOR ◈:\n"
+ bot_retorno+="\n"
+ bot_retorno+="wget https://gitea.com/darnix1/darnix/raw/branch/main/darnix; chmod 777 darnix; ./darnix\n\n" + bot_retorno+="\n" + bot_retorno+="◈ TOCA PARA COPIAR LA KEY ◈\n" + bot_retorno+="\n" + bot_retorno+="
${keyfinal}\n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="\n"
+ bot_retorno+="$LINE\n"
+ echo "$keyfinal" >> ${keytxt}/key_${chatuser}.txt
+ bot_retorno+="🔰 KEY GENERADAS [ $numkey_gen ]\n"
+ bot_retorno+="📀 𝙐𝙗𝙪𝙣𝙩𝙪: 𝟭𝟴, 𝟮𝟬.𝟬𝟰 𝙇𝙏𝙎 ¡𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="☢️ Modo Autodestruccion de Mensaje Activado ✔️\n"
+
+ comand_boton "keymens"
+
+ sleep 1h
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+
+
+ fun_listc () {
+ rm ${SCPT_DIRC}/*.x.c &> /dev/null
+ unset KEY
+ KEY="$1"
+ #CRIA DIR
+ [[ ! -e ${DIR} ]] && mkdir ${DIR}
+ #ENVIA ARQS
+ i=0
+ VALUE+="gerar.sh instgerador.sh http-server.py lista-arq $BASICINSTC"
+ for arqx in `ls ${SCPT_DIRC}`; do
+ [[ $(echo $VALUE|grep -w "${arqx}") ]] && continue
+ echo -e "[$i] -> ${arqx}"
+ arq_list[$i]="${arqx}"
+ let i++
+ done
+ #CRIA KEY
+ [[ ! -e ${DIR}/${KEY} ]] && mkdir ${DIR}/${KEY}
+ #PASSA ARQS
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limit)" ]]; then
+ local bot_retorno="$LINE\n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n"
+ bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n"
+ bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limit) \n"
+ bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) 』Keys en el BOT \n"
+ bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ exit
+ else
+ echo "$nombrevalue" >> /etc/CAT-BOT/num-key.cont
+ fi
+ numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)
+ #ADM BASIC
+ arqslist="$BASICINSTC"
+ for arqx in `echo "${arqslist}"`; do
+ [[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA
+ cp ${SCPT_DIRC}/$arqx ${DIR}/${KEY}/
+ echo "$arqx" >> ${DIR}/${KEY}/${LIST}
+ done
+ rm ${SCPT_DIRC}/*.x.c &> /dev/null
+ echo "$nombrevalue" > ${DIR}/${KEY}.name
+ [[ ! -z $IPFIX ]] && echo "$IPFIX" > ${DIR}/${KEY}/keyfixa
+ at now +1 hours <<< "rm -rf ${DIR}/${KEY} && rm -rf ${DIR}/${KEY}.name"
+}
+
+ofusc() {
+ unset server
+ server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
+ 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]="C" ;;
+ "C") txt[$i]="." ;;
+ "3") txt[$i]="@" ;;
+ "@" ) txt[$i]="3" ;;
+ "4") txt[$i]="9" ;;
+ "9") txt[$i]="4" ;;
+ "6") txt[$i]="P" ;;
+ "P") txt[$i]="6" ;;
+ "L") txt[$i]="K" ;;
+ "K") txt[$i]="L" ;;
+ esac
+ txtofus+="${txt[$i]}"
+ done
+ echo "$txtofus" | rev
+}
+
+
+#TERMINA KEYS CON ACCESO
+
+
+
+
+
+
+
+
+#EMPIEZA KEYS SINNNNNN ACESSOOOOO
+
+gerar_key () {
+ MSG_id=$((${message_message_id} + 1 ))
+ meu_ip_fun
+ #Verificador de keys
+ unset checkPID_GEN
+ checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+ [[ ! $checkPID_GEN ]] && checkPID_GEN='️⚠️ ESTADO ⚠️ NO USAR! Esta Key es Invalida🚨' || checkPID_GEN=''
+ [[ ! -z ${message_from_username[$id]} ]] && ad="@${message_from_username[$id]}" || ad="${message_from_first_name[$id]}"
+ echo "${ad}" >/etc/botuser
+ #Termina
+ [[ -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}"
+ unset newresell
+ newresell="${USRdatabase2}/Mensaje_$chatuser.txt"
+ if [[ ! -e ${newresell} ]]; then
+ echo "$(cat ${newresell})" > ${SCPT_DIR}/message.txt
+ else
+ echo "$(cat ${newresell})" > ${SCPT_DIR}/message.txt
+ fi
+
+ [[ ! $newresell ]] && credill="By $(cat ${USRdatabase2}/Mensaje_$chatuser.txt)" || credill="By $(cat ${SCPT_DIR}/message.txt)"
+
+ [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l)
+
+ unset usrLOP nombrevalue nBot nBotSS
+
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)
+ limconta=$(cat /etc/CAT-BOT/limita)
+ [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita)
+ [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena))
+ [[ -z $nBot ]] && nBot=$(ShellBot.username)
+ valuekey="$(date | md5sum | head -c10)"
+ valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
+ fun_lista "$valuekey"
+ keyfinal=$(ofus "$IP:8888/$valuekey/$LIST")
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "️GENERANDO KEY DARNIX"
+ local bot_retorno="┅┅┅⋙💥❯❯ ❯❯❲ BOT GEN ❳❮❮ ❮❮💥⋘┅┅┅ \n"
+ bot_retorno+="\n"
+ [[ -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}"
+ [[ -z ${message_chat_tittle} ]] && grupCHAT="" || grupCHAT="ChatID : ${chatuser} "
+ [[ -z ${usrLOP} ]] && bot_retorno+="🆔 ●⸺ [ wget https://gitea.com/darnix1/darnix/raw/branch/main/darnix; chmod 777 darnix; ./darnix\n\n" + bot_retorno+="\n" + bot_retorno+="🔑 Key: (Valida por solo 30 min) \n" + bot_retorno+="\n" + bot_retorno+="
${keyfinal}\n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="KEY GENERADAS EN 24hrs: [ $credress/$limteda ]\n"
+ bot_retorno+="$LINE\n"
+ echo "$keyfinal" >> ${keytxt}/key_${chatuser}.txt
+ bot_retorno+="📀 𝙐𝙗𝙪𝙣𝙩𝙪: 𝟭𝟴, 𝟮𝟬.𝟬𝟰 𝙇𝙏𝙎 ¡𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤\n"
+ bot_retorno+="☢️ Modo Autodestruccion de Mensaje Activado ✔️\n"
+
+ bot_retorno+="$LINE\n"
+
+ comand_boton "keylat"
+
+ sleep 1h
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+
+}
+
+fun_lista () {
+ rm ${SCPT_DIR}/*.x.c &> /dev/null
+ unset KEY
+ KEY="$1"
+ #CRIA DIR
+ [[ ! -e ${DIR} ]] && mkdir ${DIR}
+ #ENVIA ARQS
+ i=0
+ VALUE+="gerar.sh instgerador.sh http-server.py lista-arq $BASICINST"
+ for arqx in `ls ${SCPT_DIR}`; do
+ [[ $(echo $VALUE|grep -w "${arqx}") ]] && continue
+ echo -e "[$i] -> ${arqx}"
+ arq_list[$i]="${arqx}"
+ let i++
+ done
+ #CRIA KEY
+ [[ ! -e ${DIR}/${KEY} ]] && mkdir ${DIR}/${KEY}
+ #PASSA ARQS
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limita)" ]]; then
+ local bot_retorno="$LINE\n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n"
+ bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n"
+ bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limita) \n"
+ bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) 』Keys en el BOT \n"
+ bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ exit
+ else
+ echo "$nombrevalue" >> /etc/CAT-BOT/num-keys.cont
+ fi
+ numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)
+ #ADM BASIC
+ arqslist="$BASICINST"
+ for arqx in `echo "${arqslist}"`; do
+ [[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA
+ cp ${SCPT_DIR}/$arqx ${DIR}/${KEY}/
+ echo "$arqx" >> ${DIR}/${KEY}/${LIST}
+ done
+ rm ${SCPT_DIR}/*.x.c &> /dev/null
+ echo "$nombrevalue" > ${DIR}/${KEY}.name
+ [[ ! -z $IPFIX ]] && echo "$IPFIX" > ${DIR}/${KEY}/keyfixa
+ at now +1 hours <<< "rm -rf ${DIR}/${KEY} && rm -rf ${DIR}/${KEY}.name"
+}
+
+#Key casita
+
+gerar_cas () {
+ MSG_id=$((${message_message_id} + 1 ))
+ meu_ip_fun
+ #Verificador de keys
+ unset checkPID_GEN
+ checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+ [[ ! $checkPID_GEN ]] && checkPID_GEN='️⚠️ ESTADO ⚠️ NO USAR! Esta Key es Invalida🚨' || checkPID_GEN=''
+ [[ ! -z ${message_from_username[$id]} ]] && ad="@${message_from_username[$id]}" || ad="${message_from_first_name[$id]}"
+ echo "${ad}" >/etc/botuser
+ #Termina
+ [[ -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}"
+ unset newresell
+ newresell="${USRdatabase2}/Mensaje_$chatuser.txt"
+ if [[ ! -e ${newresell} ]]; then
+ echo "$(cat ${newresell})" > ${SCPT_DIR}/message.txt
+ else
+ echo "$(cat ${newresell})" > ${SCPT_DIR}/message.txt
+ fi
+
+ [[ ! $newresell ]] && credill="By $(cat ${USRdatabase2}/Mensaje_$chatuser.txt)" || credill="By $(cat ${SCPT_DIR}/message.txt)"
+
+ [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l)
+
+ unset usrLOP nombrevalue nBot nBotSS
+
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)
+ limconta=$(cat /etc/CAT-BOT/limita)
+ [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita)
+ [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena))
+ [[ -z $nBot ]] && nBot=$(ShellBot.username)
+ valuekey="$(date | md5sum | head -c10)"
+ valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
+ fun_listaf "$valuekey"
+ keyfinal=$(ofusc "$IP:8888/$valuekey/$LIST")
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "GENERANDO KEY V11X"
+ local bot_retorno="┅┅┅⋙💥❯❯ ❯❯❲ BOT GEN ❳❮❮ ❮❮💥⋘┅┅┅ \n"
+ bot_retorno+="\n"
+ [[ -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}"
+ [[ -z ${message_chat_tittle} ]] && grupCHAT="" || grupCHAT="ChatID : ${chatuser} "
+ bot_retorno+="🔑 KEY GENERADA V11X🔑 \n"
+ bot_retorno+="\n"
+ bot_retorno+="👤 SLOGAN: : $credill\n"
+ bot_retorno+="$(cat < /etc/CAT-BOT/resel)\n"
+ bot_retorno+="\n"
+ bot_retorno+="◈ TOCA EL INSTALADOR ◈:\n"
+ bot_retorno+="\n"
+ bot_retorno+="apt update -y; apt list --upgradable; apt upgrade -y; wget --no-check-certificate https://gitea.com/darnix1/darnix/raw/branch/main/LACASITA.sh; chmod 777 LACASITA.sh; ./LACASITA.sh\n\n" + bot_retorno+="\n" + bot_retorno+="◈ TOCA PARA COPIAR LA KEY ◈\n" + bot_retorno+="\n" + bot_retorno+="
${keyfinal}\n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="\n"
+ bot_retorno+="$LINE\n"
+ echo "$keyfinal" >> ${keytxt}/key_${chatuser}.txt
+ bot_retorno+="🔰 KEY GENERADAS [ $numkey_gen ]\n"
+ bot_retorno+="📀 𝙐𝙗𝙪𝙣𝙩𝙪: 𝟭𝟴, 𝟮𝟬.𝟬𝟰 𝙇𝙏𝙎 ¡𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="☢️ Modo Autodestruccion de Mensaje Activado ✔️\n"
+
+ comand_boton "atras2"
+
+ sleep 1h
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+#casita
+fun_listaf () {
+ rm ${SCPT_DIRC}/*.x.c &> /dev/null
+ unset KEY
+ KEY="$1"
+ #CRIA DIR
+ [[ ! -e ${DIR} ]] && mkdir ${DIR}
+ #ENVIA ARQS
+ i=0
+ VALUE+="gerar.sh instgerador.sh http-server.py lista-arq $BASICINSTC"
+ for arqx in `ls ${SCPT_DIRC}`; do
+ [[ $(echo $VALUE|grep -w "${arqx}") ]] && continue
+ echo -e "[$i] -> ${arqx}"
+ arq_list[$i]="${arqx}"
+ let i++
+ done
+ #CRIA KEY
+ [[ ! -e ${DIR}/${KEY} ]] && mkdir ${DIR}/${KEY}
+ #PASSA ARQS
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limita)" ]]; then
+ local bot_retorno="$LINE\n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n"
+ bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n"
+ bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limita) \n"
+ bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) 』Keys en el BOT \n"
+ bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ exit
+ else
+ echo "$nombrevalue" >> /etc/CAT-BOT/num-keys.cont
+ fi
+ numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)
+ #ADM BASIC
+ arqslist="$BASICINSTC"
+ for arqx in `echo "${arqslist}"`; do
+ [[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA
+ cp ${SCPT_DIRC}/$arqx ${DIR}/${KEY}/
+ echo "$arqx" >> ${DIR}/${KEY}/${LIST}
+ done
+ rm ${SCPT_DIRC}/*.x.c &> /dev/null
+ echo "$nombrevalue" > ${DIR}/${KEY}.name
+ [[ ! -z $IPFIX ]] && echo "$IPFIX" > ${DIR}/${KEY}/keyfixa
+ at now +1 hours <<< "rm -rf ${DIR}/${KEY} && rm -rf ${DIR}/${KEY}.name"
+}
+
+
+#keydarnix
+autovpsf() {
+ MSG_id=$((${message_message_id} + 1 ))
+ meu_ip_fun
+ #Verificador de keys
+ unset checkPID_GEN
+ checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+ [[ ! $checkPID_GEN ]] && checkPID_GEN='️⚠️ ESTADO ⚠️ NO USAR! Esta Key es Invalida🚨' || checkPID_GEN=''
+ [[ ! -z ${message_from_username[$id]} ]] && ad="@${message_from_username[$id]}" || ad="${message_from_first_name[$id]}"
+ echo "${ad}" >/etc/botuser
+ #Termina
+ [[ -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}"
+ unset newresell
+ newresell="${USRdatabase2}/Mensaje_$chatuser.txt"
+ if [[ ! -e ${newresell} ]]; then
+ echo "$(cat ${newresell})" > ${SCPT_DIR}/message.txt
+ else
+ echo "$(cat ${newresell})" > ${SCPT_DIR}/message.txt
+ fi
+
+ [[ ! $newresell ]] && credill="By $(cat ${USRdatabase2}/Mensaje_$chatuser.txt)" || credill="By $(cat ${SCPT_DIR}/message.txt)"
+
+ [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l)
+
+ unset usrLOP nombrevalue nBot nBotSS
+
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)
+ limconta=$(cat /etc/CAT-BOT/limita)
+ [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita)
+ [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena))
+ [[ -z $nBot ]] && nBot=$(ShellBot.username)
+ valuekey="$(date | md5sum | head -c10)"
+ valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
+ fun_listad "$valuekey"
+ keyfinal=$(ofusc "$IP:8888/$valuekey/$LIST")
+ ShellBot.answerCallbackQuery --callback8_query_id ${callback_query_id[$id]} \
+ --text "️GENERANDO KEY DARNIX"
+ local bot_retorno="┅┅┅⋙💥❯❯ ❯❯❲ BOT GEN ❳❮❮ ❮❮💥⋘┅┅┅ \n"
+ bot_retorno+="\n"
+ [[ -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}"
+ [[ -z ${message_chat_tittle} ]] && grupCHAT="" || grupCHAT="ChatID : ${chatuser} "
+
+ [[ -e /etc/menu_ito ]] && nomkey="$(cat /etc/menu_ito)" || nomkey="$(curl -sSL "https://www.dropbox.com/s/z38hj1mz3q9krso/menu_credito")"
+
+ [[ -e ${CIDdir}/ress ]] && echo $nomkey > ${SCPT_DIR}/menu_credito || {
+ if [[ ! -e ${CIDRESS}/${chatuser}.conf ]]; then
+ echo -e "${firsnme} ${lastnme}" > ${SCPT_DIR}/menu_credito
+ else
+ cat ${CIDRESS}/${chatuser}.conf > ${SCPT_DIR}/menu_credito
+ fi
+ }
+ adminV="$(less ${SCPT_DIR}/menu_credito)";
+ bot_retorno+=" 🛡️ 𝚁𝙴𝚂𝙴𝙻𝙻𝙴𝚁 🛡️ : ${adminV}\n"
+ #bot_retorno+="👤 ●⸺ [ ${firsnme} ${lastnme} ] \n"
+ [[ -z ${usrLOP} ]] && bot_retorno+="🆔 ●⸺ [ wget https://gitea.com/darnix1/darnix/raw/branch/main/darnix; chmod 777 darnix; ./darnix\n\n" + bot_retorno+="\n" + bot_retorno+="◈ TOCA PARA COPIAR LA KEY ◈\n" + bot_retorno+="\n" + bot_retorno+="
${keyfinal}\n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="\n"
+ bot_retorno+="$LINE\n"
+ echo "$keyfinal" >> ${keytxt}/key_${chatuser}.txt
+ bot_retorno+="🔰 KEY GENERADAS [ $numkey_gen ]\n"
+ bot_retorno+="📀 𝙐𝙗𝙪𝙣𝙩𝙪: 𝟭𝟴, 𝟮𝟬.𝟬𝟰 𝙇𝙏𝙎 ¡𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤\n"
+ bot_retorno+="$LINE\n"
+
+ comand_boton "atras2"
+ sleep 1h
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+
+}
+
+
+fun_listad () {
+ rm ${SCPT_DIR}/*.x.c &> /dev/null
+ unset KEY
+ KEY="$1"
+ #CRIA DIR
+ [[ ! -e ${DIR} ]] && mkdir ${DIR}
+ #ENVIA ARQS
+ i=0
+ VALUE+="gerar.sh instgerador.sh http-server.py lista-arq $BASICINST"
+ for arqx in `ls ${SCPT_DIR}`; do
+ [[ $(echo $VALUE|grep -w "${arqx}") ]] && continue
+ echo -e "[$i] -> ${arqx}"
+ arq_list[$i]="${arqx}"
+ let i++
+ done
+ #CRIA KEY
+ [[ ! -e ${DIR}/${KEY} ]] && mkdir ${DIR}/${KEY}
+ #PASSA ARQS
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limita)" ]]; then
+ local bot_retorno="$LINE\n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n"
+ bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n"
+ bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limita) \n"
+ bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) 』Keys en el BOT \n"
+ bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ exit
+ else
+ echo "$nombrevalue" >> /etc/CAT-BOT/num-keys.cont
+ fi
+ numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)
+ #ADM BASIC
+ arqslist="$BASICINST"
+ for arqx in `echo "${arqslist}"`; do
+ [[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA
+ cp ${SCPT_DIR}/$arqx ${DIR}/${KEY}/
+ echo "$arqx" >> ${DIR}/${KEY}/${LIST}
+ done
+ rm ${SCPT_DIR}/*.x.c &> /dev/null
+ echo "$nombrevalue" > ${DIR}/${KEY}.name
+ [[ ! -z $IPFIX ]] && echo "$IPFIX" > ${DIR}/${KEY}/keyfixa
+ at now +1 hours <<< "rm -rf ${DIR}/${KEY} && rm -rf ${DIR}/${KEY}.name"
+}
+
+
+
+
+#Termina keys sin acceso
+
+comand_boton(){
+ if [[ ${comando[1]} = "edit" ]]; then
+ edit_msj_boton "botao_$1"
+ else
+ menu_print "botao_$1"
+ fi
+}
menu_print () {
-[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ [[ ! -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 "$(echo -e $bot_retorno)" \
- --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 "$(echo -e $bot_retorno)" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_conf')"
- fi
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "$bot_retorno")" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b "$1")"
+ return 0
}
-menu_printSN () {
-[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+edit_msj_boton(){
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ [[ ! -z ${callback_query_message_message_id[id]} ]] && message=${callback_query_message_message_id[id]} || message=${return[message_id]}
- if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
- ShellBot.sendMessage --chat_id $var \
- --text "$(echo -e $bot_retorno)" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_send_id')"
- fi
+ ShellBot.editMessageText --chat_id $var \
+ --text "$(echo -e "$bot_retorno")" \
+ --message_id "${message}" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b "$1")"
+ return 0
}
-call.botonADDrev () {
-[[ ! -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 "$(echo -e $bot_retorno)" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'boton_addREV')"
-# fi
-}
-
-menu_BT_ADD () {
-[[ ! -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 "$(echo -e $bot_retorno)" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'boton_addREV')"
- fi
-}
-
-
download_file () {
-# shellbot.sh editado linea 3986
-user=${usersAUTH}
-[[ -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="Copia de serguridad ${user}\n"
- bot_retorno+="$LINE\n"
- bot_retorno+="Se restauro con exito!!\n"
- bot_retorno+="$LINE\n"
- bot_retorno+="${return[file_path]}\n"
- bot_retorno+="$LINE\n"
- bot_retorno+="RESTAURADO ${user} con $(cat ${CID} | wc -l) ID´s\n"
- bot_retorno+="$LINE"
- ShellBot.sendMessage --chat_id "${message_chat_id[$id]}" \
- --reply_to_message_id "${message_message_id[$id]}" \
- --text "$(echo -e $bot_retorno)" \
- --parse_mode html
- #call.upload "${CID}" "${message_chat_id[$id]}"
- call.file2 "${CID}" "${message_chat_id[$id]}"
-return 0
-}
+ 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}"
+ echo "$(cat ${return[file_path]})" >${CID}
-call.mssFAC () {
- local bot_retorno="FACTURA CON CODIGO ${user}.cgh SERA RECEPTADA \n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" ${return[file_path]} < - https://$(wget -qO- ifconfig.me)/8799/${user}.cgh"
- bot_retorno+="$LINE\n"
- bot_retorno+=" CONTACTE A SU ADMIN PARA VERIFICAR SU COMPRA!!\n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" RECUERDA NOTIFICAR TU FORMATO DEL ARCHIVO \n EJEMPLO FILE.png"
- bot_retorno+="$LINE"
- boton_upfile
- msj_fun
-}
+ local bot_retorno="ID RESTABLECIDO\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="Se restauro con exito!!\nVolver: /menu\n"
+ bot_retorno+="$LINE"
+ ShellBot.sendMessage --chat_id "${message_chat_id[$id]}" \
+ --reply_to_message_id "${message_message_id[$id]}" \
+ --text "$(echo -e "$bot_retorno")" \
+ --parse_mode html
-download_FAC () {
-# shellbot.sh editado linea 4001
-user="$id"
-#[[ -e ${CIDimg}/${user}.cgh ]] && rm -f ${CIDimg}/${user}.cgh
-#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]} ${CIDimg}/${user}.cgh
- local bot_retorno="FACTURA CON CODIGO ${user}.cgh RECEPTADA \n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" ${return[file_path]} < - https://$(wget -qO- ifconfig.me)/8799/${user}.cgh"
- bot_retorno+="$LINE\n"
- bot_retorno+=" CONTACTE A SU ADMIN PARA VERIFICAR SU COMPRA!!\n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" FILE LOCAL ${return[file_path]} \n"
- bot_retorno+="$LINE"
- msj_fun
- #call.upload "${return[file_path]}" "${message_chat_id[$id]}"
- call.file2 "${CID}" " SU RECIVO DE FACTURA EN FORMATO TXT"
+ return 0
+ rm ${CIDdir}/${return[file_path]}
}
msj_add () {
-[[ -z $1 ]] && id_receptor=${chatuser} || id_receptor=$1
-[[ -z $2 ]] || bot_retor=$2
- ShellBot.sendMessage --chat_id "${id_receptor}" \
- --text "$(echo -e $bot_retor)" \
- --parse_mode html
+ ShellBot.sendMessage --chat_id ${1} \
+ --text "$(echo -e "$bot_retor")" \
+ --parse_mode html
}
-msj_newKEY () {
-[[ -z $1 ]] && id_receptor=${chatuser} || id_receptor=$1
-[[ -z $2 ]] || bot_retor=$2
- ShellBot.sendMessage --chat_id "${id_receptor}" \
- --text "$(echo -e $bot_retor)" \
- --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}
}
-call.ITEM.fijos () {
-local item_access=''
-[[ -z $1 ]] && id_receptor=${chatuser} || id_receptor=$1
-[[ -z $2 ]] || chatbot=$2
-[[ -z $3 ]] || no_valid=$3
-
-#BOTONES DE TOKEN DE AUTORIZACIONES FIJOS
-ShellBot.InlineKeyboardButton --button 'item_access' --line 1 --text '2 DIAS' --callback_data "/aggBT ${no_valid}|2"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 1 --text '4 DIAS' --callback_data "/aggBT ${no_valid}|4"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 1 --text '7 DIAS' --callback_data "/aggBT ${no_valid}|7"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 2 --text '15 DIAS' --callback_data "/aggBT ${no_valid}|15"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 2 --text '30 DIAS' --callback_data "/aggBT ${no_valid}|30"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 2 --text '60 DIAS' --callback_data "/aggBT ${no_valid}|60"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 3 --text '90 DIAS' --callback_data "/aggBT ${no_valid}|90"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 3 --text '179 DIAS' --callback_data "/aggBT ${no_valid}|179"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 3 --text '365 DIAS' --callback_data "/aggBT ${no_valid}|365"
-ShellBot.InlineKeyboardButton --button 'item_access' --line 4 --text 'DIAS CUSTOM' --callback_data "/add"
-
- ShellBot.sendMessage --chat_id ${id_receptor} \
- --text "$(echo -e "$chatbot")" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'item_access')"
-}
-
-backup_file () {
- #[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
- ShellBot.sendDocument --chat_id ${permited} \
- --document @${1} \
- --caption "$(echo -e "$2")" \
- --parse_mode html \
- #--reply_markup "$(ShellBot.ForceReply)"
-}
-
-call.file2 () {
- #[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
- ShellBot.sendDocument --chat_id "$(echo -e "${permited}")" \
- --document @${1} \
- --caption "$(echo -e "$2")" \
- --parse_mode html \
- ShellBot.pinChatMessage --chat_id "$permited" --message_id "${return[message_id]}"
- #--reply_markup "$(ShellBot.InlineKeyboardMarkup -b "$2")"
-ShellBot.pinChatMessage --chat_id "${chatuser}" --message_id "${return[message_id]}"
-}
-
-call.recivo () {
-[[ ! -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 "$2")" \
- --parse_mode html
- #ShellBot.pinChatMessage --chat_id "$permited" --message_id "${return[message_id]}"
- #--reply_markup "$(ShellBot.InlineKeyboardMarkup -b "$2")"
-unset _ID;
-}
-
-
-upimg_fun () {
- ShellBot.sendDocument --chat_id $(echo -e "${permited}") \
- --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"
- _endSHOPP="$(cat < $HOME/RegBOT/${chatuser}.reg | grep -w ${var} | tail -1)" #| awk '{print $5,$9}'
- [[ -z ${_endSHOPP} ]] && _endSHOPP="null"
- [[ $(cat < $HOME/RegBOT/killID.log | grep -w ${var}) ]] && {
- bot_retorno+=" =============================================\n"
- bot_retorno+=" SU 🆔 : ${chatuser} HA EXPIRADO 🚫"
- bot_retorno+=" =============================================\n"
- bot_retorno+=" ULTIMA COMPRA : ${_endSHOPP}\n"
- bot_retorno+=" =============================================\n"
- bot_retorno+=" VENCIDO EL $(cat < $HOME/RegBOT/killID.log | grep -w ${var}| awk '{print $5,$9}' | head -1)\n"
- bot_retorno+=" =============================================\n"
- bot_retorno+=" RENUEVA TU ACCESO 🛒🛍️ PINCHANDO \n"
- bot_retorno+=" =============================================\n"
- } || {
- [[ $(cat /root/RegBOT/banID | grep -w ${chatuser}) ]] && {
- bot_retorno+=" =============================================\n"
- bot_retorno+=" SU ID FUE BANEADO $(date '+%C%y-%m-%d') - $(date +%R) !! Contacta con ${alias_admin}!! \n"
- bot_retorno+=" =============================================\n"
- } || {
- bot_retorno+="$LINE\n"
- bot_retorno+=" COMANDO NO PERMITIDO !!\n Prueba usar este /menu para ver las opciones disponibles\n Clic aqui /prices o \n Contacta a $alias_admin y adquiere una subscripcion \n"
- bot_retorno+="$LINE\n"
- }
- }
- #menu_printSN
- ShellBot.sendMessage --chat_id $var \
- --text "$(echo -e $bot_retorno)" \
- --parse_mode html
- sleep 1s
- msj_del ${message_message_id}
- msj_del ${MSG_id}
- return 0
-}
-
-
-
-listID_GEN () {
-unset bot_lin
-n=1
-for i in $(cat ${CID} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do
-idlog=$(cat ${CID} | 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] > ${i}| $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"
-call.Chat_long $bot_retorno
-}
-
-listID_src () {
-local _ids=''
-local _line=1
-local lsid=''
-for _ids in $(cat < ${CID}| cut -d '|' -f1 |sed -e 's/[^a-z0-9 -]//ig') ; do
-_dateID=$(cat < ${CID}|grep -w ${_ids}| cut -d '|' -f2)
-_dual=$(cat < ${CID}|grep -w ${_ids}| cut -d '|' -f3)
-[[ -z ${_dual} ]] && _dual='false'
- lsid+=" ${_line}] - /${_ids} | ${_dateID} | ${_dual} \n"
- let _line++
-done
-#lsid="$(cat -n ${CID} | cut -d '|' -f1) | $(cat ${CID} | cut -d '|' -f) "
-local listIDSRC="=================================\n"
- listIDSRC+=" ID'S AUTORIZADOS -\n"
- listIDSRC+=". n] ===== ID ====== FECHA ====== DUAL ===\n"
- listIDSRC+=" ${lsid} "
- listIDSRC+="=================================\n"
-
-#max_length=4000
-
-call.Chat_long "${listIDSRC}"
-# ShellBot.sendMessage --chat_id "$(cat < /etc/ADM-db/Admin-ID| head -1)" \
-# --text "$(echo -e "${listIDSRC}")" \
-# --parse_mode html
-}
-
-listIDREV_src () {
-lsid=$(cat -n ${CIDRESS} | grep -v ${permited})
-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 ${CID} | grep ${idchek} )" ]] && {
- [[ "$(echo -e "${permited}")" == "${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"
-}
-call.Chat_long $bot_retorno
-}
-
-
-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
-}
-
-ayuda_src () {
-bot_retorno=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 $message_from_first_name $message_from_last_name 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 ADMcgh 🎊\n"
- if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
- if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
- #bot_retorno+="/ID\n 𝚖𝚞𝚎𝚜𝚝𝚛𝚊 𝚜𝚞𝚜 𝙸𝙳 𝚍𝚎 𝚝𝚎𝚕𝚎𝚐𝚛𝚊𝚖 \n 𝚙𝚊𝚛𝚊 𝚝𝚎𝚗𝚎𝚛 𝚊𝚌𝚌𝚎𝚜𝚘 𝚊𝚕 /𝚔𝚎𝚢𝚐𝚎𝚗\n 𝚍𝚎𝚟𝚎 𝚎𝚗𝚟𝚒𝚊𝚛 𝚜𝚞 𝙸𝙳 𝚊𝚕 𝚊𝚍𝚖𝚒𝚗 ${alias_admin}\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 ${alias_admin}\n"
- bot_retorno+="(Boton) Solicitar Acceso\n Envia una solicitud a ${alias_admin}\n"
- bot_retorno+="$LINE\n"
- bot_retorno+="/cupon Para canjear un cupon ADQUIRIDO\n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" /menu\n muestra el menu\n de comandos disponibles\n"
- bot_retorno+=" /domainA Te permite enlazar un Subdominio a tu IP VPS\n"
- bot_retorno+=" GUIA PARA DOMINIOS : https://youtu.be/1oPXnnoSSGQ\n"
- bot_retorno+=" /domainNS Te permite enlazar un Subdominio NS a tu Dominio\n"
- bot_retorno+="$LINE\n"
- bot_retorno+="/prices\n COSTOS DE ACCESO AL BOT\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 ${alias_admin}\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 ${alias_admin}\n"
- bot_retorno+="$LINE\n"
- bot_retorno+="/instal\n muestra el link de instalacion\n del script para usar sus key\n"
- bot_retorno+=" /domainA Te permite enlazar un Subdominio a tu IP VPS\n"
- bot_retorno+=" GUIA PARA DOMINIOS : https://youtu.be/1oPXnnoSSGQ\n"
- bot_retorno+=" /domainNS Te permite enlazar un Subdominio NS a tu Dominio\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+=" /domainA Te permite enlazar un Subdominio a tu IP VPS\n"
- bot_retorno+=" /domainNS Te permite enlazar un Subdominio NS a tu Dominio\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 ${alias_admin}\n"
- bot_retorno+="$LINE\n"
- bot_retorno+="/add\n añade nuevo ID\n para dar acceso /keygen\n modo de uso\n /add 123456789 | dias \n"
- bot_retorno+="$LINE\n"
- bot_retorno+="/del\n elimina los ID\n antes deves usar /list\n modo de uso\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 ${alias_admin}\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
-}
-
-call.revoc () {
-MSG_id=$((${message_message_id} + 1 ))
-screen -wipe &> /dev/null
-[[ -e ${CIDdir}/Fix ]] && {
-_Fix="$(netstat -tlpn | grep -w 8888)"
- netstat -tlpn | grep -w 8888 > /dev/null || {
- screen -r -S 'generador' -X quit
- kill $(ps x | grep -v grep | grep "/bin/http-server.sh" | cut -d ' ' -f1) &>/dev/null
- systemctl restart keygen-server &>/dev/null
- }
- local bot_retorno=" ✉️ ====== NOTIFICACION ====== ✉️ \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ -z ${_Fix} ]] && bot_retorno+=" LOCALHOST BASE GEN : REINICIADO ✅\n" || bot_retorno+=" LOCALGEN BASE : 🔥 FUNCIONAL 🔥 \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- [[ -z ${_Fix} ]] && bot_retorno+=" FIX CONEXION (PORT 8888 TCP) ✅ \n" || bot_retorno+=" PORT 8888 TCP FUNCIONAL ✅ \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
-} || {
- echo -e "$(date '+%C%y-%m-%d')|$(date +%R)" > ${CIDdir}/Fix
- kill $(ps x | grep -v grep | grep "/bin/http-server.sh" | cut -d ' ' -f1) &>/dev/null
- netstat -tlpn | grep -w 8888 > /dev/null || systemctl restart keygen-server &>/dev/null
- MSG_id=$((${message_message_id} + 1 ))
- [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
- local bot_retorno=" ✉️ ====== NOTIFICACION ====== ✉️ \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" LOCALHOST BASE GEN : REINICIADO ✅\n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retorno+=" FIX CONEXION (PORT 8888 TCP) ✅ \n"
- bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- bot_retor+=" - EL USUARIO @${nUSER} SOLICITO REINICIO -\n"
- bot_retor+=" FALLO DE CONEXION (PORT 8888 TCP) \n"
- bot_retor+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ \n"
- msj_fun
- ShellBot.sendMessage --chat_id ${permited} \
- --text "$(echo -e $bot_retor)" \
- --parse_mode html
- sleep 3s
- msj_del ${message_message_id}
- msj_del ${MSG_id}
- }
-}
-
-start_gen () {
-unset PIDGEN
-PIDGEN=$(ps aux|grep -v grep|grep "http-server.sh")
-if [[ ! $PIDGEN ]]; then
-systemctl restart keygen-server &>/dev/null
-MSG_id=$((${message_message_id} + 1 ))
- local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" Generador: REINICIADO ✅\n"
- bot_retorno+="$LINE\n"
-msj_fun
-sleep 3s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-else
-killall http-server.sh
-systemctl stop keygen-server &>/dev/null
-MSG_id=$((${message_message_id} + 1 ))
- local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" Generador: ⚠️ Offline ❌\n"
- bot_retorno+="$LINE\n"
-msj_fun
-sleep 3s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-fi
-}
-
-files_script() {
-MSG_id=$((${message_message_id} + 1 ))
-#echo '#!/bin/bash
-local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
-bot_retorno+="$LINE\n"
-wget -q --no-check-certificate -O /tmp/files.tar.gz https://www.dropbox.com/s/as1lrq3wedg5v5z/SCRIPT.tar.gz && bot_retorno+=" EJECUTANDO UPDATE MASIVO DE FUERZA BRUTA: ⚠️ DETECTADO POR @ChumoGH \n" || bot_retorno+=" EJECUCION FALLIDA : ⚠️ RECHAZADO POR @ChumoGH \n"
-bot_retorno+="$LINE\n"
-msj_fun
-sleep 1s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-rm -f /etc/SCRIPT/*
-MSG_id=$((${message_message_id} + 1 ))
-#echo '#!/bin/bash
-local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
-bot_retorno+="$LINE\n"
-[[ -e /tmp/files.tar.gz ]] && tar -xzvf /tmp/files.tar.gz -C /etc/SCRIPT && bot_retorno+=" RECOMPILANDO BotGen Server: ⚠️ DETECTADO POR @ChumoGH \n" || bot_retorno+=" EJECUCION FALLIDA : ⚠️ RECHAZADO POR @ChumoGH \n"
-chmod 666 /etc/SCRIPT/*
-[[ -e /etc/SCRIPT/http-server.py ]] && mv /etc/SCRIPT/http-server.py /bin/http-server.sh
-chmod +x /bin/http-server.sh
-bot_retorno+="$LINE\n"
-msj_fun
-sleep 1s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-genon
-MSG_id=$((${message_message_id} + 1 ))
-#echo '#!/bin/bash
-local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
-bot_retorno+="$LINE\n"
-cd $HOME
-[[ $(ls /etc/SCRIPT/ | wc -l) > 0 ]] && bot_retorno+=" Generador: ⚠️ ACTUALIZADO \n" || bot_retorno+=" ERROR AL ACTUALIZAR, INGRESE AL SERVIDOR\n"
-bot_retorno+="$LINE\n"
-msj_fun
-sleep 1s
-msj_del ${message_message_id}
-msj_del ${MSG_id}
-}
-
-
-send_admin(){
-
- local bot_retorno2="$LINE\n"
- bot_retorno2+="💥 Solicitud de autorizacion 💥\n"
- bot_retorno2+="$LINE\n"
- bot_retorno2+="Nombre: ${callback_query_from_first_name}\n"
- [[ ! -z ${callback_query_from_username} ]] && bot_retorno2+="Alias: @${callback_query_from_username}\n"
- bot_retorno2+="ID: ${callback_query_from_id}\n"
- bot_retorno2+="$LINE"
-
- bot_retorno="$LINE\n"
- bot_retorno+=" 💥 Bot ADMcgh GEN de KEY 💥\n"
- bot_retorno+=" ⚜ by @ChumoGH ⚜\n"
- bot_retorno+="$LINE\n"
- bot_retorno+=" ✅ SOLICITUD ENVIADA AL ADM ✅\n"
- bot_retorno+="$LINE"
- comand_boton "atras"
-
- saveID "${callback_query_from_id}"
- var=${permited}
- ShellBot.sendMessage --chat_id $var \
- --text "$(echo -e "$bot_retorno2")" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_save_id')"
-
- return 0
-}
-
-Call.MSG.ADM () {
-mensaje_chat=$1
-_idCHAT=$2
-[[ -z ${_idCHAT} ]] && _idCHAT=${permited}
- ShellBot.sendMessage --chat_id ${_idCHAT} \
- --text "$(echo -e "${mensaje_chat}")" \
- --parse_mode html
-
-}
-
-
msj_fun () {
-[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
-[[ -z $1 ]] || var=$1
- ShellBot.sendMessage --chat_id $var \
- --text "$(echo -e "$bot_retorno")" \
- --parse_mode html
-#[[ "$1" == "BotGen" ]] && systemctl stop BotGen-server.service
-return 0
+ [[ ! -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 "$(echo -e "$bot_retorno")" \
+ --parse_mode html
+ return 0
+}
+
+del_msj(){
+ msg=(${message_message_id[$id]} $1)
+ for i in ${msg[@]}; do
+ ShellBot.deleteMessage --chat_id ${message_chat_id[$id]} --message_id "$i"
+ done
+ return 0
}
msj_del () {
@@ -2418,189 +1001,2299 @@ local var
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"
+upfile_src () {
+ cp ${CID} $HOME/
+ upfile_fun $HOME/User-ID
+ rm $HOME/User-ID
+}
- #[[ ! -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 "$(echo -e $bot_retorno)" \
- --parse_mode html
-
- return 0
+#REINICIOS DEL BOT
+
+start_gen () {
+ MSG_id=$((${message_message_id} + 1))
+ unset PIDGEN
+ PIDGEN=$(ps aux | grep -v grep | grep "http-server.sh")
+ if [[ ! $PIDGEN ]]; then
+ screen -dmS generador /bin/http-server.sh -start
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Generador: Online ✅\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ else
+ killall http-server.sh
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Generador: ⚠️ Offline ❌\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ fi
+ sleep 5s
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+restart_genbotx () {
+ MSG_id=$((${message_message_id} + 1))
+ unset PIDGEN
+ PIDGEN=$(ps aux | grep -v grep | grep "http-server.sh")
+ [[ ! $PID_GEN ]] && PID_GEN='(APAGADA) ❌' || PID_GEN='(EN LINEA) ✅'
+
+ if [[ $PIDGEN ]]; then
+ killall http-server.sh
+ sleep 2s
+ fi
+
+ screen -dmS generador /bin/http-server.sh -start
+
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Generador: Reiniciado ♻️\n"
+ bot_retorno+="$LINE\n"
+
+ msj_fun
+
+ sleep 5s
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+restart_genbot () {
+ MSG_id=$((${message_message_id} + 1))
+ unset PIDGEN
+ PIDGEN=$(ps aux | grep -v grep | grep "http-server.sh")
+
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Verificando Estado del proceso NcT...\n"
+ bot_retorno+="$LINE\n"
+ msj_fun "${bot_retorno}"
+
+ sleep 5s
+
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Estado Verificado...\n"
+ bot_retorno+="$LINE\n"
+ msj_fun "${bot_retorno}"
+
+ sleep 5s
+
+ systemctl is-enabled http-server &> /dev/null
+ if [ $? -eq 0 ]; then
+ systemctl is-active http-server &> /dev/null
+ if [ $? -ne 0 ]; then
+ systemctl start http-server
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Generador: Iniciado ♻️\n"
+ bot_retorno+="$LINE\n"
+ msj_fun "${bot_retorno}"
+ else
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Generador: Anulacion de Reinicio NcT ✅\n"
+ bot_retorno+=" Todos Los Procesos \n"
+ bot_retorno+=" Funcionan Correctamente \n"
+ bot_retorno+="$LINE\n"
+ fi
+ else
+ killall http-server.sh
+ sleep 2s
+ screen -dmS generador /bin/http-server.sh -start
+ local bot_retorno=" ✉️ ==== NOTIFICACION ==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" Generador: Reiniciado ♻️\n"
+ bot_retorno+="$LINE\n"
+ msj_fun "${bot_retorno}"
+ fi
+
+ msj_fun
+
+ sleep 5s
+
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+
+#Termina Bot de reincios
+
+
+
+myid_src () {
+ MSG_id=$((${message_message_id} + 1))
+ [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+ [[ ! -z $(cat /etc/CAT-BOT/Admin-ID|grep "${chatuser}" ) ]] && {
+ bot_retorno=" $LINE\n"
+ bot_retorno+="▫️ Hola @${nUSER} \n"
+ bot_retorno+="▫️ Bienvenido ADMIN\n"
+ bot_retorno+="\n"
+ bot_retorno+=" 𝗜𝗗 𝗖𝗔𝗡𝗖𝗘𝗟𝗔𝗗𝗢 ❌\n"
+ bot_retorno+="\n"
+ bot_retorno+=" No es necesario\n"
+ bot_retorno+=" Mostrarte tu ID\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" BOT ELIMINANDO MESAJE ${message_message_id} \n"
+ bot_retorno+=" BORRAREMOS ESTE CODE ${MSG_id} \n"
+ msj_fun
+ } || {
+ [[ $(cat ${CID}|grep "${chatuser}" ) = "" ]] && {
+ bot_retorno="$LINE\n"
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} --text "VERIFICANDO ACCESO VIP"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ USUARIO SIN ALIAS ⚠️ SIN AUTORIZACION\n" || bot_retorno+="Hola【 @${nUSER} 】, Aviso ❗️ \n"
+ bot_retorno+="\n"
+ bot_retorno+="🔘 No cuentas con Acceso VIP, adquiere uno . \n"
+ bot_retorno+="\n"
+ bot_retorno+="❗️ 𝗦𝗜𝗡 𝗖𝗥𝗘𝗗𝗜𝗧𝗢𝗦 𝗗𝗜𝗦𝗣𝗢𝗡𝗜𝗕𝗟𝗘𝗦 ❗️ \n"
+ bot_retorno+="🆔 ●--【 ${chatuser} 】\n"
+ bot_retorno+="Usa el comando /menu \n"
+ bot_retorno+="$LINE\n"
+ comand_boton "atras"
+ } || {
+ bot_retorno=" $LINE\n"
+ data_user=$(cat ${CID}|grep "${chatuser}" | awk -F "|" '{print $2}')
+ data_sec=$(date +%s)
+ data_user_sec=$(date +%s --date="$data_user")
+ variavel_soma=$(($data_user_sec - $data_sec))
+ dias_use=$(($variavel_soma / 86400))
+ [[ "$dias_use" -le 0 ]] && dias_use=0 || dias_use=$(($dias_use + 1))
+ [[ -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}"
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} --text "ACCESO VIP VERIFICADO"
+ bot_retorno+="👤 ●-- [ ${firsnme} ${lastnme} ] \n"
+ bot_retorno+="🆔 ●-- [ ${chatuser} ] \n"
+ bot_retorno+="\n"
+ bot_retorno+="Actualmente tu acceso está activo ✅ \n"
+ bot_retorno+="Tu fecha límite de membresía en el BOT es \n"
+ datexp=$(date "+%F" -d " + $DIAS days") && valid=$(date '+%C%y-%m-%d' -d " + $DIAS days")
+ bot_retorno+="El día $data_user | $(date +%R)\n"
+ bot_retorno+="\n"
+ bot_retorno+="Para volver al menú pulsa el boton\n"
+ comand_boton "atras2"
+ }
+ }
+}
+
+deleteID_src () {
+ bot_retorno="/del"
+ reply
+ listID_src
+}
+
+deleteIDS_reply () {
+ ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
+ idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
+ sed -i "/${message_text[$id]}/d" /root/RegBOT/banID
+ sed -i "/${message_text[$id]}/d" /root/RegBOT/U_check.txt
+ bot_retorno="$LINE\n"
+ bot_retorno+=" ID ELIMINADO EXITOSAMENTE!\n"
+ bot_retorno+=" ID Eliminado: ${ids}\n"
+ bot_retorno+="$LINE\n"
+ bot_retor=" 🟢 𝗧𝗨 𝗜𝗗 𝗙𝗨𝗘 𝗗𝗘𝗦𝗕𝗟𝗢𝗤𝗨𝗘𝗔𝗗𝗔 🟢 \n"
+ bot_retor+="⚠️ Advertencia ⚠️ [ NO-SPAMEAR ] \n"
+ bot_retor+="Ahora puedes volver a usar el menu \n"
+ bot_retor+="Si tienes Dudas, Contacta con el ADM\n"
+ bot_retor+="$LINE\n"
+ comand_boton "atras"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+}
+
+addIDS_reply () {
+ ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
+ idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
+ echo "${message_text[$id]}" >> /root/RegBOT/banID
+ bot_retorno="$LINE\n"
+ bot_retorno+=" ID BLOQUEADO EXITOSAMENTE!\n"
+ bot_retorno+=" ID Bloqueado: ${ids}\n"
+ bot_retorno+="$LINE\n"
+ bot_retor="dev \n"
+ bot_retor+="$LINE\n"
+ comand_boton "atras"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+}
+
+list_IP () {
+ unset lsid
+ unset idchek
+ [[ -z ${idchek} ]] && idchek="${message_from_id}"
+ [[ -z ${idchek} ]] && idchek="${callback_query_from_id}"
+ [[ -z "$(cat /etc/CAT-BOT/User-ID | grep ${idchek} )" ]] && {
+ [[ "$(cat /etc/CAT-BOT/Admin-ID)" == "${idchek}" ]] && {
+ cat /var/www/html/dani/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/dani/checkIP.log | wc -l) IP´s CAPTURADAS \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ${lsid}\n"
+ bot_retorno+="$LINE\n"
+ }
+ } || {
+ cat /var/www/html/dani/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/dani/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
+}
+
+addID_src () {
+ bot_retorno="/add"
+ reply
+}
+
+
+deleteIDS_reply () {
+ ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
+ idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
+ sed -i "/${message_text[$id]}/d" /root/RegBOT/banID
+ sed -i "/${message_text[$id]}/d" /root/RegBOT/U_check.txt
+ bot_retorno="$LINE\n"
+ bot_retorno+=" ID ELIMINADO EXITOSAMENTE!\n"
+ bot_retorno+=" ID Eliminado: ${ids}\n"
+ bot_retorno+="$LINE\n"
+ bot_retor=" 🟢 𝗧𝗨 𝗜𝗗 𝗙𝗨𝗘 𝗗𝗘𝗦𝗕𝗟𝗢𝗤𝗨𝗘𝗔𝗗𝗔 🟢 \n"
+ bot_retor+="⚠️ Advertencia ⚠️ [ NO-SPAMEAR ] \n"
+ bot_retor+="Ahora puedes volver a usar el menu \n"
+ bot_retor+="Si tienes Dudas, Contacta con el ADM\n"
+ bot_retor+="xD \n"
+ bot_retor+="$LINE\n"
+ comand_boton "atras"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+}
+
+addIDS_reply () {
+ ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
+ idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
+ echo "${message_text[$id]}" >> /root/RegBOT/banID
+ bot_retorno="$LINE\n"
+ bot_retorno+=" ID BLOQUEADO EXITOSAMENTE!\n"
+ bot_retorno+=" ID Bloqueado: ${ids}\n"
+ bot_retorno+="$LINE\n"
+ bot_retor="dev \n"
+ bot_retor+="$LINE\n"
+ comand_boton "atras"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+}
+
+list_IP () {
+ unset lsid
+ unset idchek
+ [[ -z ${idchek} ]] && idchek="${message_from_id}"
+ [[ -z ${idchek} ]] && idchek="${callback_query_from_id}"
+ [[ -z "$(cat /etc/CAT-BOT/User-ID | grep ${idchek} )" ]] && {
+ [[ "$(cat /etc/CAT-BOT/Admin-ID)" == "${idchek}" ]] && {
+ cat /var/www/html/dani/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/dani/checkIP.log | wc -l) IP´s CAPTURADAS \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ${lsid}\n"
+ bot_retorno+="$LINE\n"
+ }
+ } || {
+ cat /var/www/html/dani/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/dani/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
+}
+
+addID_src () {
+ bot_retorno="/add"
+ reply
+}
+
+addID_reply () {
+ ids=$(echo ${message_text[$id]} | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
+ idc=$(echo ${message_text[$id]} | awk '{print $3}' | sed -e 's/[^a-z0-9 -]//ig')
+ valid=$(date '+%C%y-%m-%d' -d " +$idc days")
+ [[ $(cat ${CID}|grep "$ids" ) = "" ]] && {
+ [[ -e /root/RegBOT/banID ]] && sed -i "/${ids}/d" /root/RegBOT/banID
+ echo "${ids} | $valid" >> ${CID}
+ echo "${ids} | $(date '+%C%y-%m-%d') | $(date +%R)" >> ${CID}.reg
+ bot_retorno=" EL ID FUE REGISTRADO EXITOSAMENTE \n"
+ bot_retorno+=" 🆔 : ${ids} | ACEPTADO 🧾\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n VALIDO HASTA : ${valid}\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ✅ ID REGISTRADO EXITOSAMENTE ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ⚜ Power ⚜\n"
+ unset i
+ for i in $(cat /etc/CAT-BOT/User-ID | awk '{print $3}'); do
+ [[ "$(date -d $(date '+%C%y-%m-%d') +%s)" -ge "$(date -d $i +%s)" ]] && {
+ for id in $(cat /etc/CAT-BOT/User-ID | grep "$i" | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do
+ sed -i "${id}/d" /etc/CAT-BOT/User-ID
+ bot_retor=" ❗️ 𝗦𝗜𝗡 𝗔𝗖𝗖𝗘𝗦𝗢 𝗩𝗜𝗣 ❗️ \n"
+ bot_retor+=" Su acceso vip al bot a finalizado \n"
+ bot_retor+="❌ Fin : $(date '+%C%y-%m-%d') - $(date +%R) \n"
+ bot_retor+=" 🔘 Todavia no cuentas con alguna compra o activacion. \n"
+ bot_retor+=" $LINE\n"
+ msj_add ${id}
+ done
+ }
+ done
+ [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+ [[ -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}"
+ bot_retor=" 𝗛𝗢𝗟𝗔 𝗕𝗜𝗘𝗡𝗩𝗘𝗡𝗜𝗗𝗢 \n"
+ bot_retor+="\n"
+ bot_retor+="El ADM ${message_from_first_name[$id]} acepto tu acceso \n"
+ bot_retor+="\n"
+ bot_retor+="𝗔𝗛𝗢𝗥𝗔 𝗧𝗜𝗘𝗡𝗘𝗦 𝗔𝗖𝗖𝗘𝗦𝗢 𝗩𝗜𝗣 𝗔𝗟 𝗕𝗢𝗧\n"
+ bot_retor+="🔘 Inicio : $(date '+%C%y-%m-%d')|$(date +%R) \n🔘 Fin : ${valid}|$(date +%R)\n"
+ bot_retor+="\n"
+ bot_retor+="🆔 : ${ids} \n"
+ bot_retor+="🔘 Autorizado por: ${firsnme} ${lastnm} \n"
+ bot_retor+="\n"
+ bot_retor+="Digita el comando /menu\n"
+ bot_retor+="Adquiere nuevos creditos @$(ShellBot.username) \n"
+ bot_retor+=" $LINE\n"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+ } || {
+ bot_retorno="====ERROR====\n"
+ bot_retorno+="Este ID ya existe\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ }
+}
+
+link_src () {
+ bot_retorno="$LINE\n"
+ bot_retorno+="RESELLER OFICIALES BOTGEN\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="🔰BOT ACTIVACIONES\n"
+ bot_retorno+="\n"
+ bot_retorno+="🇲🇽 MEXICO\n"
+ bot_retorno+="👤 Nombre de usuario @drowkid01 \n"
+ bot_retorno+="👤 Nombre de usuario @droidalexander\n"
+ bot_retorno+="\n"
+ bot_retorno+="$LINE\n"
+ comand_boton "atras2"
+}
+
+
+listID_GEN () {
+ unset bot_lin
+ n=1
+ for i in $(cat /root/RegBOT/banID | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do
+ idlog=$(cat /root/RegBOT/banID | grep "$i" | awk '{print $3}')
+ bot_lin+=" $n] > ${chatuser} ] \n"
+ bot_retorno+="\n"
+ bot_retorno+="REGISTRO DE ACTIVACIONES \n"
+ bot_retorno+=" \n"
+ vencidas=()
+ while IFS= read -r data_user; do
+ data_sec=$(date +%s)
+ data_user_sec=$(date +%s --date="$data_user")
+ variavel_soma=$((data_user_sec - data_sec))
+ dias_use=$((variavel_soma / 86400))
+ [[ "$dias_use" -le 0 ]] && dias_use=0 || dias_use=$((dias_use + 1))
+ datexp=$(date "+%F" -d "$data_user + $dias_use day") && valid=$(date '+%C%y-%m-%d' -d "$data_user + $dias_use day")
+ vencidas+=("$datexp")
+ done <<< "$data_users"
+ if [[ ${#vencidas[@]} -gt 0 ]]; then
+ bot_retorno+="Registro de Fechas\n"
+ if [[ ${#vencidas[@]} -eq 1 ]]; then
+ bot_retorno+="Caducado Recientemente:\n"
+ bot_retorno+="Día ${vencidas[0]}\n"
+ bot_retorno+="\n"
+ else
+ bot_retorno+="Caducado Recientemente:\n"
+ bot_retorno+="Día ${vencidas[${#vencidas[@]}-1]}\n"
+ bot_retorno+="\n"
+ bot_retorno+="Fechas vencidas anteriores:\n"
+ for ((i=${#vencidas[@]}-2; i>=0; i--)); do
+ bot_retorno+="Día ${vencidas[$i]}\n"
+ done
+ fi
+ fi
+ comand_boton "atras2"
}
-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
+ayuda_id(){
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "💰 LISTA DE PRECIOS DISPONIBLES"
+ local bot_retorno="$LINE\n"
+ bot_retorno="$LINE\n"
+ bot_retorno+="ɪɴғᴏʀᴍᴀᴄɪᴏɴ sᴏʙʀᴇ ʟᴏs ᴘʀᴇᴄɪᴏs \n"
+ bot_retorno+="► PRECIO PAYPAL ► PRECIO MEXICANO\n"
+ bot_retorno+="► 7 DIAS💰1 USD ► 💰20 MXN\n"
+ bot_retorno+="► 13 DIAS💰1.70 USD ► 💰30 MXN\n"
+ bot_retorno+="► 35 DIAS💰2.84 USD ► 💰50 MXN\n"
+ bot_retorno+="► 90 DIAS💰4.54USD ► 💰80 MXN\n"
+ bot_retorno+="TRANSFERENCIA\n"
+ bot_retorno+="646180192100197089\n"
+ bot_retorno+="$LINE\n"
+ comand_boton "atras3"
+ return 0
+}
+dnxsub() {
+ if [[ $(cat $fsub | grep "$chatuser") ]]; then
+ unset sub
+ bot_retorno+="TUS SUBDOMINIOS\n"
+ for x in $(cat $fsub | grep "$chatuser"); do
+ bot_retorno+="🌐 ●⸺[ $(echo $x | awk -F '|' '{print $2}') ⟩ $(echo $x | awk -F "|" '{print $1}') ]\n"
+ done
+ bot_retorno+="$line\n"
+ fi
}
-call.Chat_long () {
-listIDSRC=$1
-ShellBot.sendChatAction --chat_id $chatuser --action typing
-max_length=4000
-# Dividir el texto en partes más pequeñas
-while [ -n "$listIDSRC" ]; do
- # Tomar una porción del texto dentro del límite de longitud
- local parte="${listIDSRC:0:$max_length}"
- # Enviar la parte como un mensaje
- ShellBot.sendMessage --chat_id "${permited}" \
- --text "$(echo -e "${parte}")" \
- --parse_mode html
- # Eliminar la parte ya enviada del texto largo
- listIDSRC="${listIDSRC:$max_length}"
-done
-return 0
+menu_src () {
+ bot_retorno="━━━━◢ MENU PRINCIPAL ◣━━━━\n"
+ datauser
+ [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+ numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)
+ limconta=$(cat /etc/CAT-BOT/limita)
+ [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita)
+ [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena))
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "REGRESANDO AL MENU INICIO"
+ unset usadas
+ usadas="$(cat /etc/http-instas)"
+ [[ ! $usadas ]] && k_used="0" || k_used="$usadas"
+
+ if [[ $(cat $fsub|grep "$chatuser") ]]; then
+ unset sub
+ bot_retorno+="SUBDOMINIOS\n"
+ for x in `cat $fsub|grep "$chatuser"`; do
+ bot_retorno+="🌐 ●⸺[ $(echo $x|awk -F '|' '{print $2}') ⟩⟩⟩ $(echo $x|awk -F "|" '{print $1}') ]\n"
+ done
+ bot_retorno+="$line\n"
+ fi
+ if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+ if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
+ [[ -e /root/RegBOT/banID ]] && idBAN=$(cat /root/RegBOT/banID) || idBAN=""
+ [[ -z "$(echo $idBAN | grep "${chatuser}")" ]] && {
+ local bot_retorno="$LINE\n"
+ bot_retorno="━━━━◢ MENU PRINCIPAL ◣━━━━\n"
+ datauser
+ bot_retorno+="🌐 |-- Instalaciones Totales [ $k_used ] \n"
+ bot_retorno+="\n"
+ bot_retorno+="🗓️ TOTAL DIAS DE ACCESO\n"
+ bot_retorno+="[ ❌ 𝗦𝗶𝗻 𝗮𝗰𝗰𝗲𝘀𝗼 𝗩𝗜𝗣 ❌ ]\n"
+ bot_retorno+="📅 VIGENCIA DEL ACCESO\n"
+ bot_retorno+="[ ❌ 𝗦𝗶𝗻 𝗮𝗰𝗰𝗲𝘀𝗼 𝗩𝗜𝗣 ❌ ]\n"
+ bot_retorno+="\n"
+ bot_retorno+="Hola :${firsnme} ${lastnme} \n"
+ bot_retorno+="\n"
+ bot_retorno+="🔑Total Instalado:『 $numkey_used 』\n"
+ bot_retorno+="⚠️Limite Actual (24hrs): [ $credress/$limteda ]\n"
+ bot_retorno+="🔘 Recuerda No hacer 𝗦𝗣𝗔𝗠 \n"
+ bot_retorno+="$LINE\n"
+ comand_boton "user1"
+ return 0
+ } || {
+ bot_retorno="$LINE\n"
+ bot_retorno+=" ⚠️ 𝗦𝗨 𝗜𝗗 𝗙𝗨𝗘 𝗕𝗔𝗡𝗘𝗔𝗗𝗢 ⚠️ \n"
+ bot_retorno+="\n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- [ ${firsnme} ${lastnme} ] \n"
+ bot_retorno+="🆔 ●-- [ ${chatuser} ] \n"
+ bot_retorno+="\n"
+ bot_retorno+="❗️ [ SPAM-BOT ] Detected ❗️ \n"
+ bot_retorno+="$LINE\n"
+ comand_boton "dex"
+ return 0
+ }
+ else
+ VPSsec=$(date +%s)
+ dia="$(cat ${CID}|grep -w "$chatuser"|cut -d'|' -f2)"
+ DataSec=$(date +%s --date="$dia")
+ [[ "$VPSsec" -gt "$DataSec" ]] && {
+ local us="❯ ══━━━━⎊⎊━━━━══ ❮ ️\nUSUARIO 🆔: $chatuser EXPIRADO\n"
+ ShellBot.sendMessage --chat_id ${permited[$id]} \
+ --text "$(echo -e "$us")" \
+ --parse_mode html
+ EXPTIME="EXPIRADO"
+ rm -rf ${USRdatabase2}/Mensaje_$chatuser.txt &>/dev/null
+ rm ${keytxt}/key_${chatuser}.txt &>/dev/null
+ sed -i "/$chatuser/d" ${CID}
+ [[ ! -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 "$(echo -e USUARIO EXPIRADO)" \
+ --parse_mode html
+ return 0
+ } || {
+ EXPTIME="[$(($(($DataSec - $VPSsec)) / 86400))] DIAS"
+ [[ -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}"
+ unset creditos
+ creditos="$(cat /etc/CAT-BOT/Creditos/Mensaje_$chatuser.txt)"
+ [[ ! $creditos ]] && credi="Defaul: ${firsnme} ${lastnme}" || credi="Personal: $creditos"
+
+ unset PID_GEN
+ PID_GEN=$(ps x|grep -v grep|grep "http-server.sh")
+ [[ ! $PID_GEN ]] && PID_GEN='(APAGADA) ❌' || PID_GEN='(EN LINEA) ✅'
+ unset checkPID_GEN
+ checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+ [[ ! $checkPID_GEN ]] && checkPID_GEN='⚠️ ESTADO!! BotGen Critico ⚠' || checkPID_GEN='🔥 Servicios En Estado Optimo ✅'
+ data_user=$(cat ${CID}|grep "${chatuser}" | awk -F "|" '{print $2}')
+ data_sec=$(date +%s)
+ data_user_sec=$(date +%s --date="$data_user")
+ variavel_soma=$(($data_user_sec - $data_sec))
+ dias_use=$(($variavel_soma / 86400))
+ [[ "$dias_use" -le 0 ]] && dias_use=0 || dias_use=$(($dias_use + 1))
+
+ unset usadas
+ usadas="$(cat /etc/http-instas)"
+ [[ ! $usadas ]] && k_used="0" || k_used="$usadas"
+ numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+ numkey_gen=$(grep -o -i $message_chat_id /etc/CAT-BOT/num-key.cont | wc -l)
+ unset nombrevalue
+ [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}"
+ [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}"
+ numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)
+ limcont=$(cat /etc/CAT-BOT/limit)
+ [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/CAT-BOT/limit)
+ [[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="🎊 Usted tiene keys Ilimitados" || credres="⚠️Keys Restantes a Generar: $(( $limcont - $numkey_gen))"
+ [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l)
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "VOLVIENDO AL MENU INICIO"
+ local bot_retorno="$LINE\n"
+ bot_retorno="━━━━◢ MENU PRINCIPAL ◣━━━━\n"
+ datauser
+ dnxsub
+ bot_retorno+="🗓 TOTAL DIAS DE ACCESO\n"
+ bot_retorno+="🔘 |-- Días Restantes $EXPTIME \n"
+ bot_retorno+="📅 TU ACCESO CADUCA \n"
+ bot_retorno+="🔘 |-- El dia [ $data_user ] \n"
+ bot_retorno+="\n"
+ bot_retorno+="📳 Notificacion del BOT \n"
+ bot_retorno+="$(cat < /etc/CAT-BOT/resell)\n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="\n"
+ bot_retorno+="📡 |-- BOT Status [ $PID_GEN ]\n"
+ bot_retorno+="🧑💻 Reseller $credi\n"
+ bot_retorno+="🔐 |-- Total Key Usadas:『 $numkey_used 』\n"
+ bot_retorno+="🔑 |-- Total Key Generadas: [ $kg ]\n"
+ bot_retorno+="🔰 $credres \n"
+ comand_boton "user"
+ return 0
+ }
+ fi
+ else
+ vv=$(ps x|grep -v grep|grep "veri")
+ [[ ! $vv ]] && ve="[ DESACTIVADO ]" || ve="[ ACTIVADO ]"
+ unset checkPID_GEN
+ checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+ [[ ! $checkPID_GEN ]] && checkPID_GEN='⚠️ ESTADO!! BotGen Critico ⚠' || checkPID_GEN='🔥 Servicios En Estado Optimo ✅'
+ [[ ! -z ${message_from_username[$id]} ]] && ad="@${message_from_username[$id]}" || ad="${message_from_first_name[$id]}"
+ echo "${ad}" >/etc/botuser
+ unset PID_GEN
+ PID_GEN=$(ps x|grep -v grep|grep "http-server.sh")
+ [[ ! $PID_GEN ]] && PID_GEN='(APAGADA) ❌' || PID_GEN='(EN LINEA) ✅'
+ [[ -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}"
+ unset creditos
+ creditos="$(cat /etc/CAT-BOT/Creditos/Mensaje_$chatuser.txt)"
+ [[ ! $creditos ]] && credi="Defaul: ${firsnme} ${lastnme}" || credi="Personal: $creditos"
+ $(cat /etc/CAT-BOT/User-ID| wc -l)
+ unset usadas
+ usadas="$(cat /etc/http-instas)"
+ [[ ! $usadas ]] && k_used="0" || k_used="$usadas"
+ [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l)
+ num_ips=${#user_connections[@]}
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "RETORNANDO AL MENU INICIO"
+ local bot_retorno="$LINE\n"
+ bot_retorno="━━━━◢ MENU PRINCIPAL ◣━━━━\n"
+ datauser
+ dnxsub
+ bot_retorno+="🆔 |-- USUARIOS 𝗩𝗜𝗣 ACTIVOS: $(cat /etc/CAT-BOT/User-ID| wc -l)\n"
+ bot_retorno+="🟢 |-- BOT STATUS: $PID_GEN \n"
+ bot_retorno+="📵 |-- AUTO-DEL: $ve \n"
+ bot_retorno+="🔔NOTY BOT USUARIOS \n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="$(cat < /etc/CAT-BOT/resell)\n"
+ bot_retorno+="🔐 |-- Key Activas Sin Usar 『 $(ls /etc/http-shell/ | grep name | wc -l) 』 🗝️ \n"
+ bot_retorno+="🌐 |-- Inst. Totales del SCRIPT [ $k_used ] \n"
+ bot_retorno+="🔑 |-- Keys Generadas del ADM [ $kg ] \n"
+ bot_retorno+="👤 |-- Reseller $credi\n"
+ bot_retorno+="🔌 |-- CONTROL REMOTO $num_ips\n"
+ [[ -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}"
+ bot_retorno+="🔰 |-- ADMIN: ${firsnme} ${lastnme} \n"
+ bot_retorno+="$LINE\n"
+ comand_boton "conf"
+ return 0
+ fi
}
-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 "$(echo -e "$bot_retorno")" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_donar')"
- return 0
-}
- ofusLTM() {
- unset server
- #server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
- 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]="v" ;;
- "v") txt[$i]="." ;;
- "1") txt[$i]="@" ;;
- "@") txt[$i]="1" ;;
- "2") txt[$i]="?" ;;
- "?") txt[$i]="2" ;;
- "4") txt[$i]="p" ;;
- "p") txt[$i]="4" ;;
- "-") txt[$i]="L" ;;
- "L") txt[$i]="-" ;;
- esac
- txtofus+="${txt[$i]}"
- done
- echo "$txtofus" | rev
+mensajecre() {
+ error_fun () {
+ local bot_retorno="$LINE\n"
+ bot_retorno+="USAR EL COMANDO DE ESTA MANERA\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="Ejemplo: /resell @d\n"
+ bot_retorno+="$LINE\n"
+ ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
+ --text "$(echo -e "$bot_retorno")" \
+ --parse_mode html
+ return 0
}
+ [[ -z $1 ]] && error_fun && 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"
+ echo "$1" > ${USRdatabase2}/Mensaje_$chatuser.txt
+ bot_retorno="$LINE\n"
+ bot_retorno+="✅Creditos Cambiado ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="Nuevo Reseller: $1\nPARA REGRESAR /menu\n"
+ bot_retorno+="$LINE"
+
+ [[ ! -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 "$(echo -e "$bot_retorno")" \
+ --parse_mode html
+
+ return 0
}
-Call.BT.ADM () {
-_ID=$1
-local _chat=" ========📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩========\n"
- _chat+=" FAVOR ESOGE UN ADM A REALIAZAR PETICION \n"
- _chat+=" ================================= \n"
+[[ -d /root/RegBOT ]] || mkdir /root/RegBOT
+autori() {
+ MSG_id=$((${message_message_id} + 1 ))
+ [[ -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}"
+ [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+ [[ -e /root/RegBOT/U_check.txt ]] && n_soli=$(cat /root/RegBOT/U_check.txt | grep ${chatuser} | wc -l) || n_soli=1
+ [[ $n_soli < 2 ]] && {
+ echo "${chatuser}" >> /root/RegBOT/U_check.txt
+ bot_retor="$LINE\n"
+ bot_retor+=" Cliente 『 ${firsnme} ${lastnme} 』Solicita Autorización\n"
+ [[ -z ${nUSER} ]] && bot_retor+=" ⚠️ USUARIO SIN ALIAS ⚠️\n" || bot_retor+=" ALIAS: @${nUSER} CON $n_soli INTENTO\n"
+ bot_retor+="$LINE\n"
+ bot_retor+=" EJEMPLO $MSG_id ${chatuser} ♨️\n"
+ bot_retor+="$LINE\n"
+ bot_retor+=" ANTES DE LA AUTORIZACION VERIFICAR PAGO\n"
+ bot_retor+="$LINE\n"
- ShellBot.sendMessage --chat_id ${_ID} \
- --text "$(echo -e "$_chat")" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'boton_ADMINS')"
+ while IFS= read -r id; do
+ msj_add "$id"
+ done < "${CIDdir}/Admin-ID"
+ bot_retor+="$LINE\n"
+ bot_retorno+="🆔 ●-- 【 ${chatuser} 】\n"
+ bot_retorno+="\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ❌ Añada un Alias Para no Banearte ❌ \n" || bot_retorno+=" 𝗦𝗼𝗹𝗰𝗶𝘁𝘂𝗱 𝗲𝗻𝘃𝗶𝗮𝗱𝗮 𝗮𝗹 𝗔𝗗𝗠 $(cat < /etc/ADM-db/resell)\n📌 Aprobación en proceso ⌛\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" Imposible verificar su ID \n Su ${n_soli} Solicitud es Invalida \n" || bot_retorno+=" Esta es su ${n_soli} Solicitud \n"
+ bot_retorno+="\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" SU ID FUE ENVIADO CON ADVERTENCIA (POSIBLE BANEO DE ID) ⚠️\n" || bot_retorno+=" ✅ ID ENVIADO EXITOSAMENTE ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ENVIE SU COMPROBANTE DE PAGO\n"
+ bot_retorno+="🔘 Evita hacer spam en el BOT\n"
+ bot_retorno+="🔘 De lo contrario se anulará tu solicitud \n"
+ bot_retorno+="$LINE\n"
+ comand_boton "atras"
+ } || {
+ bot_retorno="$LINE\n"
+ bot_retorno+="🆔 ●-- 【 ${chatuser} 】 \n"
+ #bot_retorno+="$LINE\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ USUARIO SIN ALIAS ⚠️\n" || bot_retorno+=" 🆔 ●⸺ Hola : @${nUSER} \n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ AÑADA UN ALIAS PARA PODER SOLICITAR DE MANERA EXITOSA ⚠️\n" || bot_retorno+="𝗜𝗻𝘁𝗲𝗻𝘁𝗼𝘀 𝗱𝗲 𝗦𝗼𝗹𝗶𝗰𝗶𝘁𝘂𝗱 ${n_soli} $(cat < /etc/ADM-db/resell)\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" IMPOSIBLE VERIFICAR ID SIN ALIAS\n SU ${n_soli} SOLITUD ES INVALIDA \n" || bot_retorno+="Su 🆔 No fue recibido por el ADM \n"
+ bot_retorno+=" 🔴 𝗧𝗨 𝗜𝗗 𝗙𝗨𝗘 𝗕𝗟𝗢𝗤𝗨𝗘𝗔𝗗𝗔 🔴 \n"
+ bot_retorno+="$LINE\n"
+ echo "${chatuser}" >> /root/RegBOT/banID
+ #bot_retorno+=" ⚜ Power botgen ⚜\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ }
}
-call.keygen () {
-local bot_chatBT=$1
-[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
-bss_boton=''
-echo -e "${chatuser}"
-echo -e "${bot_chatBT}"
-ShellBot.InlineKeyboardButton --button 'bss_boton' --line 1 --text ' 🗝️ NUEVO KEY 🗝️' --callback_data '/keygen'
- ShellBot.sendMessage --chat_id $var \
- --text "$(echo -e $bot_chatBT)" \
- --parse_mode html \
- --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'bss_boton')"
-#ShellBot.pinChatMessage --chat_id "${chatuser}" --message_id "${return[message_id]}"
+ipgeo_reply() {
+ local ip=$(echo "${message_text[$id]}" | awk -F '|' '{print $1}' | awk '{print $1}')
+ local chat_id="${message_chat_id[$id]}"
+
+ local bot_retorno="Datos de la IP: $ip\n\n"
+
+ # Obtener información de la IP utilizando ipinfo.io
+ local info_ip=$(curl -s "https://ipinfo.io/$ip/json")
+
+ if [[ -n $info_ip ]]; then
+ # Analizar y formatear la respuesta JSON
+ local ciudad=$(echo "$info_ip" | jq -r '.city')
+ local pais=$(echo "$info_ip" | jq -r '.country')
+ local proveedor=$(echo "$info_ip" | jq -r '.org')
+ local latitud=$(echo "$info_ip" | jq -r '.loc' | awk -F ',' '{print $1}')
+ local longitud=$(echo "$info_ip" | jq -r '.loc' | awk -F ',' '{print $2}')
+ local fecha_escaneo=$(date +'%Y-%m-%d %H:%M:%S')
+
+ bot_retorno+="Ciudad: $ciudad\n"
+ bot_retorno+="País: $pais\n"
+ bot_retorno+="Proveedor: $proveedor\n"
+ bot_retorno+="Latitud: $latitud\n"
+ bot_retorno+="Longitud: $longitud\n"
+ bot_retorno+="Fecha de escaneo: $fecha_escaneo\n"
+ else
+ bot_retorno+="❌ Error: No se pudo obtener información de la IP. ❌\n"
+ fi
+
+ ShellBot.sendMessage --chat_id "$chat_id" --text "$bot_retorno"
+}
+
+deleteID_reply2 () {
+ rm -rf ${USRdatabase2}/Mensaje_${message_text[$id]}.txt &>/dev/null
+ rm -rf ${keytxt}/key_${message_text[$id]}.txt &>/dev/null
+ sed -i "/${message_text[$id]}/d" ${CID}
+ local bot_retorno="$LINE\n"
+ bot_retorno+="🔴 ●-- 𝗜𝗗 𝗘𝗟𝗜𝗠𝗜𝗡𝗔𝗗𝗢 𝗖𝗢𝗡 𝗘𝗫𝗜𝗧𝗢\n"
+ bot_retorno+="🆔 ●-- : ${message_text[$id]}\n"
+ bot_retorno+="$LINE\n"
+
+ comand_boton "atras2"
}
+rmid(){
+ [[ ! -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 "𝙄𝙉𝙂𝙍𝙀𝙎𝙀 𝙀𝙇 𝙄𝘿 𝘿𝙀𝙇 𝙐𝙎𝙐𝘼𝙍𝙄𝙊" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+newid(){
+ [[ ! -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 "𝙄𝙉𝙂𝙍𝙀𝙎𝙀 𝙀𝙇 𝙉𝙐𝙀𝙑𝙊 𝙄𝘿" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+mensaje(){
+ [[ $(cat ${SCPT_DIR}|grep "${message_text[$id]}") = "" ]]
+ echo "${message_text[$id]}" > ${USRdatabase2}/Mensaje_$chatuser.txt
+ local bot_retorno="$LINE\n"
+ bot_retorno+="🟢 ●-- 𝗥𝗘𝗦𝗘𝗟𝗟𝗘𝗥 𝗔𝗚𝗥𝗘𝗚𝗔𝗗𝗢 \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="▫️ Nuevo Reseller: ${message_text[$id]}\nVolver: /menu\n"
+ bot_retorno+="$LINE"
+
+ [[ ! -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 "$(echo -e "$bot_retorno")" \
+ --parse_mode html
+ return 0
+}
+
+newres(){
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "✅ AGREGANDO RESELLER"
+ ShellBot.sendMessage --chat_id $var \
+ --text "☟INGRESE SU RESELLER ABAJO☟" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+newip(){
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "✅ INGRESA TU IP REMOTO "
+ ShellBot.sendMessage --chat_id $var \
+ --text "CONEXION REMOTA A VPS \n\n Requiere de informacion para la conexion remota\n\n IP|PUERTO|USUARIO|CONTRASEÑA\n\nEjemplo ✅ \n142.93.122.215|22|root|Dans862Jjw "
+
+ ShellBot.sendMessage --chat_id $var \
+ --text "☟INGRESE SU IP☟" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+idban(){
+ [[ ! -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 "INGRESE ID A BANEAR" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+ipgeo(){
+ [[ ! -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 "INGRESE SU IP" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+cupon() {
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ if [[ $cupon_activado == true ]]; then
+ ShellBot.sendMessage --chat_id $var \
+ --text "INGRESE SU CUPON" \
+ --reply_markup "$(ShellBot.ForceReply)"
+ else
+ ShellBot.sendMessage --chat_id $var \
+ --text "🥲 Me encuentro Desactivado, contacta al ADM"
+ fi
+}
+
+
+remoip(){
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "✅ INGRESA TU IP REMOTO "
+ ShellBot.sendMessage --chat_id $var \
+ --text "CONEXION REMOTA A VPS \n\n Requiere de informacion para la conexion remota\n\n IP|USUARIO|CONTRASEÑA\n\nEjemplo ✅ \nip|root|pass\n"
+
+ ShellBot.sendMessage --chat_id $var \
+ --text "INGRESE SU IP REMOTO" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+passip(){
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "✅ INGRESA TU IP REMOTO "
+ ShellBot.sendMessage --chat_id $var \
+ --text "CAMBIAR PASS A VPS \n\n Ingresa como el siguiente ejem \n\n IP|USUARIO|PASSWORD|NUEVOPASS \n"
+
+ ShellBot.sendMessage --chat_id $var \
+ --text "INGRESE SUS DATOS" \
+ --reply_markup "$(ShellBot.ForceReply)"
+}
+
+autodel_id() {
+ if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+ local bot="•────•──────────•────•\n"
+ bot+=" Usted no tiene permiso para usar este comando\n"
+ bot+="•────•──────────•────•\n"
+ [[ ! -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 "$bot" \
+ --parse_mode html
+ return 0
+ else
+ local bot=" = 𝘼𝙐𝙏𝙊-𝘿𝙀𝙇 𝙄𝘿'𝙎=\n"
+
+ local verificar
+ PIDV=$(ps aux|grep -v grep|grep "veri")
+ if [[ -z $PIDV ]]; then
+ echo ""
+ screen -dmS verificar /etc/CAT-BOT/veri &
+ verificar="𝘼𝘾𝙏𝙄𝙑𝘼𝘿𝙊 -- 𝘾𝙊𝙉 𝙀𝙓𝙄𝙏𝙊\n 𝙖𝙪𝙩𝙤-𝙞𝙣𝙞𝙘𝙞𝙤 𝙘𝙖𝙙𝙖 1𝙝"
+ else
+ kill -9 $(ps aux |grep -v grep |grep -w "veri"|grep dmS|awk '{print $2}') &>/dev/null
+ kill -9 $(ps aux |grep -v grep |grep -w "verificar"|grep dmS|awk '{print $2}') &>/dev/null
+ verificar="𝘿𝙀𝙎𝘼𝘾𝙏𝙄𝙑𝘼𝘿𝙊 -- 𝘾𝙊𝙉 𝙀𝙓𝙄𝙏𝙊"
+ fi
+ bot+="•────•──────────•────•\n"
+ bot+=" $verificar\n"
+ bot+="•────•──────────•────•\n"
+ [[ ! -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 "$bot" \
+ --parse_mode html
+ return 0
+ fi
+}
+
+rm_resell(){
+ rm ${USRdatabase2}/Mensaje_$chatuser.txt
+ [[ -z ${USRdatabase2}/Mensaje_$chatuser.txt ]] && rs="$(cat ${USRdatabase2}/Mensaje_$chatuser.txt)" || rs="Sin-Reseller"
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "❌ ELIMINANDO RESELLER"
+ bot_retorno="$LINE\n"
+ bot_retorno+="🔴 ●-- 𝗥𝗘𝗦𝗘𝗟𝗟𝗘𝗥 𝗘𝗟𝗜𝗠𝗜𝗡𝗔𝗗𝗢\n"
+ bot_retorno+="▫️ Verificador de reseller: ${rs}\nVolver Pulsa /menu\n"
+ bot_retorno+="$LINE\n"
+ [[ ! -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 "$(echo -e "$bot_retorno")" \
+ --parse_mode html
+ return 0
+}
+
+
+
+addADM_reply () {
+ [[ $(cat /etc/CAT-BOT/Admin-ID | grep "${message_text[$id]}") = "" ]] && {
+ echo "${message_text[$id]}" >> /etc/CAT-BOT/Admin-ID
+
+ bot_retorno="$LINE\n"
+ bot_retorno+="*ID agregado *\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="New ID: ${message_text[$id]}\n"
+ bot_retorno+="$LINE"
+
+ bot_retor="$LINE\n"
+ bot_retor+="Bienvenido Nuevo Administrador\n"
+ bot_retor+="❌ NO REGISTRAR ID DUPLICADOS ❌\n"
+ bot_retor+="\n"
+ bot_retor+="EL ADMIN principal puede controlar sus Altas\n"
+ bot_retor+="Para Comenzar pulsa /menu"
+ bot_retor+="$LINE\n"
+
+ msj_fun
+ msj_add ${message_text[$id]}
+ upfile_src
+ } || {
+ bot_retorno="====ERROR====\n"
+ bot_retorno+="Este ID ya existe\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ }
+}
+
+cupon_activado=false
+
+cupon_reply() {
+ # Verificar si el botón está activado
+ if [[ $cupon_activado == true ]]; then
+ local github_url="https://raw.githubusercontent.com/DanssBot/Generador-BOT/main/cup.txt"
+ local cupon_ingresado="${message_text[$id]}"
+
+ # Obtener el ID de usuario de manera alternativa
+ local user_id="${callback_query_message_chat_id[$id]:-${message_chat_id[$id]}}"
+
+
+ # Descargar los cupones válidos del archivo en GitHub
+ cupones_validos=$(curl -s "$github_url")
+
+ # Verificar si el cupón ya ha sido canjeado previamente
+ if grep -q "^${cupon_ingresado}$" /etc/CAT-BOT/Cupones-Canjeados; then
+ # El cupón ya ha sido canjeado anteriormente
+ bot_retorno="🎟️CUPON INVALIDO🎟️.\n"
+ bot_retorno+="\n"
+ bot_retorno+="⚠️ No canjeado ⚠️\n"
+ bot_retorno+="Cupon usado anteriormente\n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- [ ${firsnme} ${lastnme} ] \n"
+ bot_retorno+="🆔 ●-- [ ${chatuser} ] \n"
+ bot_retorno+="\n"
+ bot_retorno+="$LINE\n"
+
+ ## Contar cuántos usuarios han intentado usar el mismo cupón
+ usuarios_que_intentaron=$(grep -c "^${cupon_ingresado}$" /etc/CAT-BOT/Intentos-Canje)
+
+ # Envía el mensaje al administrador (debes proporcionar el ID del administrador)
+ send_message_to_admin "${mensaje_admin}"
+ msj_fun
+ return
+ fi
+
+ # Buscar el cupón ingresado en la lista de cupones válidos
+ local fecha_expiracion=""
+ IFS=$'\n' read -r -d '' -a cupon_array <<< "$cupones_validos"
+ for cupon_info in "${cupon_array[@]}"; do
+ local cupon=($(echo "$cupon_info" | tr '|' ' '))
+ if [ "${cupon[0]}" == "$cupon_ingresado" ]; then
+ # El cupón es válido, obtener la fecha de expiración
+ fecha_expiracion="${cupon[1]}"
+ break
+ fi
+ done
+
+ if [ -n "$fecha_expiracion" ]; then
+ # Cupón válido, guardar el ID de usuario y la fecha de expiración en un archivo de texto plano
+ echo "${user_id}|${fecha_expiracion}" >> /etc/CAT-BOT/User-ID
+ echo "${user_id}|${fecha_expiracion}" >> /etc/CAT-BOT/regcup
+
+ # Marcar el cupón como canjeado en el archivo de cupones canjeados
+ echo "${cupon_ingresado}" >> /etc/CAT-BOT/Cupones-Canjeados
+
+ bot_retorno="$LINE\n"
+ bot_retorno+="=====📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩=====\n"
+ bot_retorno+="\n"
+ bot_retorno+="🎊FELICIDADES LO LOGRASTE 🎊 \n"
+ [[ -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}"
+ bot_retorno+="👤 ●-- [ ${firsnme} ${lastnme} ] \n"
+ bot_retorno+="🆔 ●-- [ ${chatuser} ] \n"
+ bot_retorno+="\n"
+ bot_retorno+=" ✅ CUPÓN CANJEADO EXISTOSAMENTE 🎊\n"
+ bot_retorno+="Favor de agradecer al owner 👽\n"
+ bot_retorno+="\n"
+ bot_retorno+="\n"
+ bot_retorno+="Pulsa /menu para ingresar al bot\n"
+
+ # Resto de tu código...
+ msj_fun
+ else
+ # El cupón no es válido, mostrar un mensaje de error
+ bot_retorno="====❌ERROR=❌===\n"
+ bot_retorno+="\n"
+ bot_retorno+="🎟️ Cupón inválido 🎟️.\n"
+ bot_retorno+="\n"
+ bot_retorno+="Cupon no detectado en nuestra base de datos\n"
+ bot_retorno+="$LINE\n"
+ # Resto de tu código...
+ msj_fun
+ fi
+else
+ echo "El botón de cupón está desactivado"
+ fi
+}
+
+declare -A user_connections
+
+addIP_reply() {
+ local ip=$(echo "${message_text[$id]}" | awk -F '|' '{print $1}' | awk '{print $1}')
+ local puerto=$(echo "${message_text[$id]}" | awk -F '|' '{print $2}' | awk '{print $1}')
+ local usuario=$(echo "${message_text[$id]}" | awk -F '|' '{print $3}' | awk '{print $1}')
+ local contrasena=$(echo "${message_text[$id]}" | awk -F '|' '{print $4}' | awk '{print $1}')
+
+ local salida=$(sshpass -p "$contrasena" ssh -o StrictHostKeyChecking=no -p "$puerto" "$usuario@$ip" echo "Conexión exitosa")
+
+ if [[ $salida == "Conexión exitosa" ]]; then
+ # Guardar los datos de conexión en el diccionario correspondiente al ID de usuario
+ #user_connections["${message_chat_id[$id]}"]="IP: $ip | Puerto: $puerto | Usuario: $usuario"
+ user_connections["${message_chat_id[$id]}"]="IP: $ip | Puerto: $puerto | Usuario: $usuario | Contraseña: $contrasena"
+
+ local bot_retorno="🌐 Conexión a VPS exitosa 🌐\n\n"
+ bot_retorno+="IP: $ip\n"
+ bot_retorno+="Puerto: $puerto\n"
+ bot_retorno+="Usuario: $usuario\n"
+ bot_retorno+="Estado: Conectado a la VPS ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="\n"
+
+ #ShellBot.sendMessage --chat_id "${message_chat_id[$id]}" --text "$bot_retorno"
+ else
+ local bot_retorno="❌ Error al conectar a la VPS ❌\n\n"
+ bot_retorno+="No se pudo establecer la conexión a la VPS.\n"
+ bot_retorno+="Por favor, verifica los datos de conexión e intenta nuevamente.\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="\n"
+
+ #ShellBot.sendMessage --chat_id "${message_chat_id[$id]}" --text "$bot_retorno"
+ fi
+ comand_boton "menudos"
+}
+
+criarteste2() {
+ if [[ -n ${user_connections["${callback_query_message_chat_id}"]} ]]; then
+ local connection_info="${user_connections["${callback_query_message_chat_id}"]}"
+
+
+ ip_server3=$(echo "$connection_info" | awk -F '|' '{print $1}' | awk -F ' ' '{print $2}')
+ senha_server2=$(echo "$connection_info" | awk -F '|' '{print $4}' | awk -F ' ' '{print $2}')
+
+ # Resto del código permanece igual
+ #usuario="$(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 4 | head -n 1)$((RANDOM % 1000))"
+ [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+
+ usuario=$(echo "@${nUSER}" | sed 's/@//')$((RANDOM % 1000))
+
+ senha=$((RANDOM% + 99999))
+ limite='50'
+ tempo='7'
+ tuserdate=$(date '+%C%y/%m/%d' -d " +7 days")
+
+ if sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 echo "ok" 1>/dev/null 2>/dev/null; then
+ sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 << EOF
+ tuserdate=$(date '+%C%y/%m/%d' -d " +7 days")
+ useradd -M -N -s /bin/false $usuario -e $tuserdate > /dev/null 2>&1
+ (echo "$senha";echo "$senha") | passwd $usuario > /dev/null 2>&1
+ echo "$senha" > /etc/SSHPlus/senha/$usuario
+ echo "$usuario $limite" >> /root/usuarios.db
+ echo "#!/bin/bash
+ pkill -f "$usuario"
+ userdel --force $usuario
+ grep -v ^$usuario[[:space:]] /root/usuarios.db > /tmp/ph ; cat /tmp/ph > /root/usuarios.db
+ rm /etc/SSHPlus/senha/$usuario > /dev/null 2>&1
+ rm -rf /etc/SSHPlus/userteste/$usuario.sh" > /etc/SSHPlus/userteste/$usuario.sh
+ chmod +x /etc/SSHPlus/userteste/$usuario.sh
+ at -f /etc/SSHPlus/userteste/$usuario.sh now + $tuserdate > /dev/null 2>&1
+
+EOF
+ echo ${callback_query_from_id} >> lista
+ #echo ${callback_query_from_id} >> lista
+ infox="$ip_server3:443@$usuario:$senha"
+
+ info="◇━━━━━━━━━━━━━━━━━◇\n"
+ info+="SSH PREMIUM BOT\n"
+ info+="◇━━━━━━━━━━━━━━━━━◇\n\n"
+ info+="IP: $ip_server3\n"
+ info+="USUARIO $usuario\n"
+ info+="Contraseña: $senha\n"
+ info+="Dias: $tempo\n\n"
+ info+="HTTP CUSTOM:\n"
+ info+="${infox}"
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e "$info")" \
+ --parse_mode html
+
+
+
+ else
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e Error intente luego!)" \
+ --parse_mode html
+ return 0
+ fi
+ else
+ # Acción a realizar si no existe información de conexión
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e ⚠️Por favor configura una conexion ip ⚠️!)" \
+ --parse_mode html
+
+ return 0
+ fi
+ #comand_boton "atras2"
+}
+
+criarteste3() {
+ if [[ -n ${user_connections["${callback_query_message_chat_id}"]} ]]; then
+ local connection_info="${user_connections["${callback_query_message_chat_id}"]}"
+
+
+ ip_server3=$(echo "$connection_info" | awk -F '|' '{print $1}' | awk -F ' ' '{print $2}')
+ senha_server2=$(echo "$connection_info" | awk -F '|' '{print $4}' | awk -F ' ' '{print $2}')
+
+ # Resto del código permanece igual
+ #usuario="$(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 4 | head -n 1)$((RANDOM % 1000))"
+ [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+
+ usuario=$(echo "@${nUSER}" | sed 's/@//')$((RANDOM % 1000))
+
+ senha=$((RANDOM% + 99999))
+ limite='50'
+ tempo='3'
+ tuserdate=$(date '+%C%y/%m/%d' -d " +3 days")
+
+ if sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 echo "ok" 1>/dev/null 2>/dev/null; then
+ sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 << EOF
+ tuserdate=$(date '+%C%y/%m/%d' -d " +7 days")
+ useradd -M -N -s /bin/false $usuario -e $tuserdate > /dev/null 2>&1
+ (echo "$senha";echo "$senha") | passwd $usuario > /dev/null 2>&1
+ echo "$senha" > /etc/SSHPlus/senha/$usuario
+ echo "$usuario $limite" >> /root/usuarios.db
+ echo "#!/bin/bash
+ pkill -f "$usuario"
+ userdel --force $usuario
+ grep -v ^$usuario[[:space:]] /root/usuarios.db > /tmp/ph ; cat /tmp/ph > /root/usuarios.db
+ rm /etc/SSHPlus/senha/$usuario > /dev/null 2>&1
+ rm -rf /etc/SSHPlus/userteste/$usuario.sh" > /etc/SSHPlus/userteste/$usuario.sh
+ chmod +x /etc/SSHPlus/userteste/$usuario.sh
+ at -f /etc/SSHPlus/userteste/$usuario.sh now + $tuserdate > /dev/null 2>&1
+
+EOF
+ echo ${callback_query_from_id} >> lista
+ #echo ${callback_query_from_id} >> lista
+ #local info
+ infox="$ip_server3:443@$usuario:$senha"
+
+ info="◇━━━━━━━━━━━━━━━━━◇\n"
+ info+="SSH PREMIUM BOT\n"
+ info+="◇━━━━━━━━━━━━━━━━━◇\n\n"
+ info+="IP: $ip_server3\n"
+ info+="USUARIO $usuario\n"
+ info+="Contraseña: $senha\n"
+ info+="Dias: $tempo\n\n"
+ info+="HTTP CUSTOM:\n"
+ info+="${infox}"
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e "$info")" \
+ --parse_mode html
+
+
+ else
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e Error intente luego!)" \
+ --parse_mode html
+ return 0
+ fi
+ else
+ # Acción a realizar si no existe información de conexión
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e ⚠️Por favor configura una conexion ip ⚠️!)" \
+ --parse_mode html
+
+ return 0
+ fi
+ #comand_boton "atras2"
+}
+
+
+
+show_connected_ip() {
+ if [[ -n ${user_connections["${callback_query_message_chat_id}"]} ]]; then
+ local connection_info="${user_connections["${callback_query_message_chat_id}"]}"
+ local password=$(echo "$connection_info" | awk -F '|' '{print $4}' | awk '{print $1}')
+
+
+ echo ${callback_query_from_id} >> lista
+ # - ENVIA SSH
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e "✅ CONEXION SSH ACTIVA ✅\n\n$connection_info")" \
+ --parse_mode html
+ return 0
+else
+ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e No hay ninguna activacion con tu ID de usuario )" \
+ --parse_mode html
+ return 0
+fi
+}
+
+
+menu_dos() {
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "🔌CONTROL REMOTO VPS"
+ bot_retorno="$LINE\n"
+ bot_retorno+="┌────────═━┈┈━═───────┐\n"
+ bot_retorno+="╰┈┈➤ ❝ [HOLA BIENVENIDO ]\n"
+ bot_retorno+="└────────═━┈┈━═───────┘\n\n"
+ bot_retorno+="👥 CONTROL REMOTO Beta \n"
+ bot_retorno+="🇲🇽◢SSH MANAGER REMOTO◣🇲🇽"
+ bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n"
+ bot_retorno+="Genera tu usuario ✅\n"
+ bot_retorno+="Abrir puertos de tu vps\n"
+
+ bot_retorno+="$LINE\n"
+ comand_boton "atras4"
+ return 0
+}
+
+menublok() {
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "🔌CONTROL DE BLOQUEOS"
+ bot_retorno="$LINE\n"
+ bot_retorno+="👥 CONTROL DE ID BLOQUEADOS \n"
+ bot_retorno+="◢USO ADMIN BOTGEN◣"
+ bot_retorno+="▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n"
+ bot_retorno+="Desbloquear ID\n"
+ bot_retorno+="Banear ID\n"
+
+ bot_retorno+="$LINE\n"
+ comand_boton "menubi"
+ return 0
+}
+
+updates() {
+ [[ ! -e "$HOME/update.sh" ]] && wget -O $HOME/update.sh https://www.dropbox.com/s/69irea3hknl8uyh/update.sh &> /dev/null
+ chmod +x $HOME/update.sh
+ screen -dmS teleBotGen $HOME/update.sh
+ sleep 2
+ #killall BotGen.sh
+}
+
+sshfre() {
+ MSG_id=$((${message_message_id} + 1))
+
+ ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
+ --text "🔌CONTROL REMOTO VPS"
+ local bot_retorno="$LINE\n"
+ bot_retorno+="👥 SSH GRATIS DIRECTO EN EL BOT \n"
+ bot_retorno+="⚠️LOS USUARIOS REPETIDOS ⚠️\n"
+ bot_retorno+="SERAN BLOQUEADOS\n"
+ bot_retorno+="Cada id tendra su propio usuario\n"
+ bot_retorno+="Tienes 40 segundos para elegir\n"
+ bot_retorno+="Ingresa al BOT ✅ 👇👇\n"
+
+ bot_retorno+="$LINE\n"
+ comand_boton "shfre"
+ sleep 40s
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+criarteste4() {
+ ip_server3="104.245.35.217"
+ senha_server2="9CEqvBz4kYamjGww"
+
+ [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+
+ usuario=$(echo "@${nUSER}" | sed 's/@//')$((RANDOM % 1000))
+
+ senha=$((RANDOM% + 99999))
+ limite='50'
+ tempo='7'
+ tuserdate=$(date '+%C%y/%m/%d' -d " +7 days")
+
+ if sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 echo "ok" 1>/dev/null 2>/dev/null; then
+ sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 << EOF
+ tuserdate=$(date '+%C%y/%m/%d' -d " +7 days")
+ useradd -M -N -s /bin/false $usuario -e $tuserdate > /dev/null 2>&1
+ (echo "$senha";echo "$senha") | passwd $usuario > /dev/null 2>&1
+ echo "$senha" > /etc/SSHPlus/senha/$usuario
+ echo "$usuario $limite" >> /root/usuarios.db
+ echo "#!/bin/bash
+ pkill -f "$usuario"
+ userdel --force $usuario
+ grep -v ^$usuario[[:space:]] /root/usuarios.db > /tmp/ph ; cat /tmp/ph > /root/usuarios.db
+ rm /etc/SSHPlus/senha/$usuario > /dev/null 2>&1
+ rm -rf /etc/SSHPlus/userteste/$usuario.sh" > /etc/SSHPlus/userteste/$usuario.sh
+ chmod +x /etc/SSHPlus/userteste/$usuario.sh
+ at -f /etc/SSHPlus/userteste/$usuario.sh now + $tuserdate > /dev/null 2>&1
+EOF
+ echo ${callback_query_from_id} >> lista
+ infox="$ip_server3:443@$usuario:$senha"
+ infoxx="$ip_server3:80@$usuario:$senha"
+
+ info="◇━━━━━━━━━━━━━━━━━◇\n"
+ info+="SSH PREMIUM BOT\n"
+ info+="Grupo @botlatmx\n\n"
+ info+="IP: $ip_server3\n"
+ info+="USUARIO $usuario\n"
+ info+="Contraseña: $senha\n"
+ info+="Dias: $tempo\n\n"
+ info+="Dominio Cloudflare:\n"
+ info+="80- danx1.hnetcol.online\n\n"
+ info+="443 - danx1.netcol.nl\n\n"
+ info+="SSL PEGA EN HTTP CUSTOM:\n"
+ info+="${infox}\n\n"
+ info+="WEBSOCKET EN HTTP CUSTOM:\n"
+ info+="${infoxx}\n\n>"
+ info+="PROTOCOLOS ABIERTOS\n\n"
+ info+="OPENSSH PUERTO: 22\n"
+ info+="SSL TUNNEL PUERTO: 443\n"
+ info+="WEBSOKET PRO PUERTO: 80\n"
+ #info+="Si necesitas udp al inbox\n"
+ info+="Agradecer al Grupo con tu usuario OBLIGATORIO\n"
+
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e "$info")" \
+ --parse_mode html
+
+ else
+ ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
+ --text "$(echo -e Error intente luego!)" \
+ --parse_mode html
+ return 0
+ fi
+}
+
+remo_reply() {
+ ip=$(echo "${message_text[$id]}" | cut -d'|' -f1)
+ user=$(echo "${message_text[$id]}" | cut -d'|' -f2)
+ pass=$(echo "${message_text[$id]}" | cut -d'|' -f3)
+ TOKEN="${bot_token}"
+ ID="${chatuser}"
+ URL="https://api.telegram.org/bot$TOKEN/sendMessage"
+
+ # Leer el contenido de message.txt
+ if [[ -f "${SCPT_DIR}/message.txt" ]]; then
+ message_content=$(<"${SCPT_DIR}/message.txt")
+ else
+ message_content="Mensaje predeterminado"
+ fi
+
+ if sshpass -p "$pass" ssh -o StrictHostKeyChecking=no $user@$ip true; then
+ curl -s -X POST $URL -d chat_id=$ID -d text="Conexión Remoto Exitosa. ✅" &>/dev/null
+
+ # Se instala script en la VPS
+ curl -s -X POST $URL -d chat_id=$ID -d text="Iniciando Instalacion Remoto Latam" &>/dev/null
+ sleep 4s
+ curl -s -X POST $URL -d chat_id=$ID -d text="Instalando Dependencias" &>/dev/null
+ sleep 2s
+ curl -s -X POST $URL -d chat_id=$ID -d text="por favor espere, no inicie sesion en su vps, solo dentro de 4 minutos" &>/dev/null
+
+ sshpass -p "$pass" ssh $user@$ip <wget https://gitlab.com/fdarnix/script/-/raw/main/setup;chmod 777 setup;./setup --Darnix\n\n" + bot_retorno+="\n" + bot_retorno+="◈ TOCA PARA COPIAR LA KEY ◈\n" + bot_retorno+="\n" + bot_retorno+="
${keyfinal}\n"
+ bot_retorno+="$checkPID_GEN\n"
+ bot_retorno+="\n"
+ bot_retorno+="$LINE\n"
+ echo "$keyfinal" >> ${keytxt}/key_${chatuser}.txt
+ bot_retorno+="🔰 KEY GENERADAS [ $numkey_gen ]\n"
+ bot_retorno+="📀 𝙐𝙗𝙪𝙣𝙩𝙪: 𝟭𝟴, 𝟮𝟬.𝟬𝟰 𝙇𝙏𝙎 ¡𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤\n"
+ bot_retorno+="$LINE\n"
+
+ comand_boton "keymenss"
+ sleep 1h
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+
+}
+
+sslt() {
+ if [[ -n ${user_connections["${callback_query_message_chat_id}"]} ]]; then
+ local connection_info="${user_connections["${callback_query_message_chat_id}"]}"
+
+ #ip_server3=$(echo "$connection_info" | awk -F '|' '{print $1}')
+ ip_server3=$(echo "$connection_info" | awk -F '|' '{print $1}' | awk -F ' ' '{print $2}')
+ senha_server2=$(echo "$connection_info" | awk -F '|' '{print $4}' | awk -F ' ' '{print $2}')
+
+ TOKEN="${bot_token}"
+ ID="${chatuser}"
+ URL="https://api.telegram.org/bot$TOKEN/sendMessage"
+
+ if sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 true; then
+
+ curl -s -X POST $URL -d chat_id=$ID -d text="Conexión Remota Exitosa. ✅" &>/dev/null
+
+ # Se instala script en la VPS
+ curl -s -X POST $URL -d chat_id=$ID -d text="Configurando Puerto SSL443+80" &>/dev/null
+ sleep 4s
+ curl -s -X POST $URL -d chat_id=$ID -d text="Configuracion check" &>/dev/null
+ sshpass -p "$senha_server2" ssh -o ConnectTimeout=2 -o StrictHostKeyChecking=no root@$ip_server3 << EOF
+ wget https://raw.githubusercontent.com/darnix1/UDP-Custom/main/check.sh; chmod 777 check.sh; ./check.sh
+ rm -rf check.sh
+ rm -rf proxy.py
+ curl -s -X POST $URL -d chat_id=$ID -d text="✅ INSTALACCON COMPLETADA ✅" &>/dev/null
+
+EOF
+ else
+ curl -s -X POST $URL -d chat_id=$ID -d text="No se pudo conectar a la VPS mediante SSH. ❌" &>/dev/null
+ fi
+ fi
+}
+
+pass_reply() {
+ # Dirección IP o nombre de host de la VPS remota
+ ip=$(echo "${message_text[$id]}" | cut -d'|' -f1)
+ # Nombre de usuario en la VPS remota
+ user=$(echo "${message_text[$id]}" | cut -d'|' -f2)
+ # Nueva contraseña que quieres establecer
+ pass=$(echo "${message_text[$id]}" | cut -d'|' -f3)
+ new_password=$(echo "${message_text[$id]}" | cut -d'|' -f4)
+ TOKEN="${bot_token}"
+ ID="${chatuser}"
+ URL="https://api.telegram.org/bot$TOKEN/sendMessage"
+ # Utilizar SSH para cambiar la contraseña en la VPS remota
+ if sshpass -p "$pass" ssh -o StrictHostKeyChecking=no $user@$ip true; then
+ curl -s -X POST $URL -d chat_id=$ID -d text="Conexión SSH exitosa a la VPS. ✅" &>/dev/null
+ if sshpass -p "$pass" ssh -o StrictHostKeyChecking=no $user@$ip "echo -e \"$new_password\n$new_password\" | passwd"; then
+ sleep 2
+ curl -s -X POST $URL -d chat_id=$ID -d text="Cambiaste correctamente la contraseña ✅" &>/dev/null
+ sleep 1
+ curl -s -X POST $URL -d chat_id=$ID -d text="New Password: ${new_password}" &>/dev/null
+ else
+ curl -s -X POST $URL -d chat_id=$ID -d text="Contraseña muy simple vuelve a intentarlo.. ❌" &>/dev/null
+ fi
+ else
+ curl -s -X POST $URL -d chat_id=$ID -d text="ERROR -> conectar VPS ❌" &>/dev/null
+ fi
+
+}
+
+valip() {
+ local ip=$1
+ local stat=1
+ if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
+ OIFS=$IFS
+ IFS='.'
+ ip=($ip)
+ IFS=$OIFS
+ [[ ${ip[0]} -le 255 && ${ip[1]} -le 255 && ${ip[2]} -le 255 && ${ip[3]} -le 255 ]]
+ stat=$?
+ fi
+ return $stat
+}
+
+subd(){
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && {
+ var=${callback_query_message_chat_id[$id]}
+ } || {
+ var=${message_chat_id[$id]}
+ }
+subdlog=$fsub
+[[ ! -e $subdlog ]] && touch $subdlog
+datauser
+unset bot_retorno data
+local bsb='' data=($@)
+if [[ -z $2 ]]; then
+ error='FALTA EL SUBDOMINIO'
+ if [[ -z $1 ]]; then
+ error='FALTA IP Y SUBDOMINIO'
+ fi
+ bot_retorno="$line\n${error}\n$line\n"
+ bot_retorno+=" Lista de dominios disponibles:\n$line\n"
+ bot_retorno+=" ${space}[01] polarcho.online\n${space} [02] alawistore.biz.id❗\n${space} [03] alawivpn.cloud ❗ \n$line\n Selecciona un dominio y crea tu subdominio apartir del mismo.\n\n Ejemplo: eseldrowkid01.my.id ó eselkidpa.vpssantri.my.id\n$line\n"
+ menu_print 'atras'&&return $?
+fi
+if((${#@}));then
+ local ip=${data[0]}
+ local subd[1]=${data[1]/./@} subd[0]=${data[1]}
+ local var1=$(echo ${subd[1]}|awk -F "@" '{print $2}')
+
+ if valip "${data[0]}" ; then
+ unset ip&&ip="${data[0]}"
+ else
+ bot_retorno="$line\n❌IP ${data[0]} INVÁLIDA❌\n$line\n"
+ menu_print 'atras'&&return $?
+ fi
+
+ case $var1 in
+ 'polarcho.online'|'vpsvpn.my.id')domain="$var1";;
+ *)unset domain;;
+ esac
+ if [[ -z $domain ]]; then
+ bot_retorno="$line\n ❌ ELIGE UN DOMINIO DE LA LISTA Y PARTIENDO DEL MISMO, CREA TU SUBDOMINIO ❌\n$line\n"
+ msj_fun&&sleep 2
+ datauser
+ bot_retorno+=" Lista de dominios disponibles x:\n$line\n"
+ bot_retorno+=" ${space}[01] polarcho.online \n${space} [02] xdarnix.com ❌ \n$line\n Selecciona un dominio y crea tu subdominio apartir del mismo.\n\n Ejemplo: dan.darnixmx.com \nCopia y cambia el x x.polarcho.online\n$line\n"
+ menu_print 'atras'
+ return $?
+ else
+ if [[ $(cat $subdlog|grep "${subd[0]}") ]]; then
+ bot_retorno="$line\n❌ EL SUBDOMINIO: ${subd[0]} YA ES UTILIZADO POR OTRO USUARIO ❌\n$line\n¡reintenta de nuevo @${usrname}!\n$line\n"
+ menu_print 'atras'&&return $?
+ else
+ datauser
+ bot_retorno+=" [~] ENLAZAR IP => SUBDOMAIN [~]\n\nIP: ${subd[0]}\n$line\n⚡Powered by: @drowkid01⚡\n$line\n"
+
+ ShellBot.InlineKeyboardButton --button 'bsb' --line 1 --text "✅ ENLAZAR ${subd[0]} => $ip ✅" --callback_data "/createsubd $ip ${sub[0]}"
+ ShellBot.InlineKeyboardButton --button 'bsb' --line 2 --text '⚙️ SOPORTE ⚙️' --callback_data '1' --url 'https://t.me/drowkid01'
+ ShellBot.InlineKeyboardButton --button 'bsb' --line 3 --text '<<< volver o cancelar' --callback_data '/menu'
+
+ ShellBot.sendMessage --chat_id $var --text "$(echo -e "$bot_retorno")" --parse_mode html --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'bsb')"
+ fi
+ fi
+else
+ return $?
+fi
+}
+
+domain-IP(){
+local subd=''
+fsubd=$fsub
+[[ ! -e $fsubd ]] && touch $fsubd
+numsubd=$(cat $fsubd|wc -l)
+[[ -z $numsubd ]] && numsubd=0
+ [[ -z $1 ]] && {
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ space=' '
+ bot_retorno="$line\n [~] SUBDOMAINS => IP [~]\n$line\n"
+ bot_retorno+="\nSubdominios: $numsubd\n\n$line\n"
+ bot_retorno+="Modo de uso:\n\nSólamente necesitas ingresar una IP y colocar un subdominio creado apartir de la lista de dominios disponibles.\n$line\n"
+ ShellBot.sendMessage --chat_id $var --text "$(echo -e $bot_retorno)" --parse_mode html --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'domain')"
+ } || {
+ case $1 in
+ -ip)bot_retorno="$line\n [•] INGRESA LA IP DE TU VPS [•]\n$line\n"
+ msj_fun&&unset bot_retorno&&bot_retorno="${txt[0]}"&&reply;;
+ "${txt[0]}")
+ datauser
+ if valip "${message_text[$id]}"; then
+ unset ip
+ ip="${message_text[$id]}"&&space=' '
+ bot_retorno+=" Lista de subdominios disponibles:\n$line\n"
+ #bot_retorno+=" ${space}[01] alawistore.my.id\n${space} [02] alawistore.biz.id\n${space} [03] alawivpn.cloud\n${space} [04] cakdayat.my.id\n${space} [05] petapan.my.id\n${space} [06] sayasantri.my.id\n${space} [07] serverssh.biz.id\n${space} [08] sshserver.my.id\n${space} [09] udpserver.my.id\n${space} [10] vmesserver.my.id\n${space} [11] vpnbagus.my.id \n${space} [12] vpnssh.biz.id \n${space} [13] vpssantri.my.id \n${space} [14] vpsvpn.my.id\n${space} [15] wush.my.id\n${space} [16] wussh.my.id \n$line\n Selecciona un dominio y crea tu subdominio apartir del mismo.\n\n Ejemplo: eseldrowkid01.my.id ó eselkidpa.vpssantri.my.id\n$line\n"
+ bot_retorno+=" ${space}[01] polarcho.online \n${space} [02] xdhharnix.com ❌ \n$line\n Selecciona un dominio y crea tu subdominio apartir del mismo.\n\n Ejemplos: dan.polarcho.online \nCopia y cambia la X x.polarcho.online\n$line\n"
+ msj_fun&&unset bot_retorno
+ bot_retorno="${txt[1]}"&&reply
+ else
+ bot_retorno="$line\n❌ LA IP: ${message_text[$id]} ES INVÁLIDA! ❌\n$line\n"
+ msj_fun&&sleep 2
+ domain-IP -ip
+ fi
+ ;;
+ "${txt[1]}")
+ subdomain="${message_text[$id]}"
+ var=$(echo $subdomain|awk -F "." '{print $2}')
+ case $var in
+ "polarcho"|"xdarnix"|"alawivpn"|"cakdayat"|"petapan"|"sayasantri"|"serverssh"|"sshserver"|"udpserver"|"vmesserver"|"vpnbagus"|"vpnssh"|"vpssantri"|"vpsvpn"|"wush"|"wussh")valuesubd="✅ SUBDOMINIO $value VÁLIDO ✅";;
+ *)unset valuesubd;;
+ esac
+
+ if [[ -z $valuesubd ]]; then
+ bot_retorno="$line\n❌ ¡EL SUBDOMINIO: eseldrowkid01.my.id ó eselkidpa.vpssantri.my.id\n$line\n"
+ bot_retorno+=" ${space}[01] polarcho.online \n${space} [02] xdarnix.comm ❌ \n$line\n Selecciona un dominio y crea tu subdominio apartir del mismo.\n\n Ejemplo: dan.darnixmx.com \Copia dan.polarcho.online\n$line\n"
+ msj_fun&&bot_retorno='Ingresa otro subdominio:'&&reply
+ return $?
+ fi
+
+ if [[ $(cat $fsubd|grep "$subdomain") ]]; then
+ bot_retorno="$line\n❌ EL SUBDOMINIO: $subdomain YA ES UTILIZADO POR OTRO USUARIO!, INGRESE UNO DISTINTO ❌\n$line\n"
+ msj_fun&&unset bot_retorno&&unset subdomain
+ bot_retorno='Ingresa otro subdominio:'&&reply
+ else
+ unset bot_retorno&&datauser
+ bot_retorno+=" [•] ENLAZAR SUBDOMAIN => IP [•]\n$line\nIP: $ip\nSubdominio: $subdomain\n$line\n¿los datos son correctos?\n$line\n"
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+
+ ShellBot.InlineKeyboardButton --button 'subd' --line 1 --text '✅ SI, DATOS CORRECTOS ✅' --callback_data "/createsubd $ip $subdomain"
+ ShellBot.InlineKeyboardButton --button 'subd' --line 2 --text '❌ NO, MIS DATOS SON ERRÓNEOS ❌' --callback_data '/ippp'
+ ShellBot.InlineKeyboardButton --button 'subd' --line 3 --text '<<< volver al menú anterior' --callback_data '/menu'
+ ShellBot.sendMessage --chat_id $var --text "$(echo -e $bot_retorno)" --parse_mode html --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'subd')"
+ fi
+ ;;
+ esac
+ }
+}
+
+createsubd(){
+fsubd=$fsub&&space=' '
+ipP=$1
+sub1=$2
+subdomain="$(echo $sub1|awk -F "." '{print $1}')."
+DOMAIN16=${sub1##$subdomain}
+
+SUB_DOMAIN16=${sub1}
+#SUB_DOMAIN016=zoomcares.zoom.us.${sub1}
+CF_ID=sdkdevelopers99@gmail.com
+CF_KEY=454b481abff177a259ba945af40f265ee312d
+IP1=$ipP
+
+ZONE=$(curl -sLX GET "https://api.cloudflare.com/client/v4/zones?name=${DOMAIN16}&status=active" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" | jq -r .result[0].id)
+RECORD=$(curl -sLX GET "https://api.cloudflare.com/client/v4/zones/${ZONE}/dns_records?name=${SUB_DOMAIN16}" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" | jq -r .result[0].id)
+if [[ "${#RECORD}" -le 10 ]]; then
+RECORD=$(curl -sLX POST "https://api.cloudflare.com/client/v4/zones/${ZONE}/dns_records" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" \
+--data '{"type":"A","name":"'${SUB_DOMAIN16}'","content":"'${IP1}'","ttl":120,"proxied":false}' | jq -r .result.id)
+fi
+RESULT=$(curl -sLX PUT "https://api.cloudflare.com/client/v4/zones/${ZONE}/dns_records/${RECORD}" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" \
+--data '{"type":"A","name":"'${SUB_DOMAIN16}'","content":"'${IP1}'","ttl":120,"proxied":false}')
+#zoomcares.zoom.us
+ZONE=$(curl -sLX GET "https://api.cloudflare.com/client/v4/zones?name=${DOMAIN16}&status=active" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" | jq -r .result[0].id)
+RECORD=$(curl -sLX GET "https://api.cloudflare.com/client/v4/zones/${ZONE}/dns_records?name=${SUB_DOMAIN016}" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" | jq -r .result[0].id)
+if [[ "${#RECORD}" -le 10 ]]; then
+RECORD=$(curl -sLX POST "https://api.cloudflare.com/client/v4/zones/${ZONE}/dns_records" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" \
+--data '{"type":"A","name":"'${SUB_DOMAIN016}'","content":"'${IP1}'","ttl":120,"proxied":false}' | jq -r .result.id)
+fi
+RESULT=$(curl -sLX PUT "https://api.cloudflare.com/client/v4/zones/${ZONE}/dns_records/${RECORD}" \
+-H "X-Auth-Email: ${CF_ID}" \
+-H "X-Auth-Key: ${CF_KEY}" \
+-H "Content-Type: application/json" \
+--data '{"type":"A","name":"'${SUB_DOMAIN016}'","content":"'${IP1}'","ttl":120,"proxied":false}')
+
+
+datauser
+echo -e "$ipP|$sub1|$var" >> $fsubd
+
+bot_retorno+="${space}DETALLES DEL PROCESO \n$line\n"
+bot_retorno+="${space}🌐 ●⸺[ DOMINIO: $sub1 ]\n"
+
+bot_retorno+="$line\n✅ SUBDOMINIO CREADO EXITOSAMENTE ✅\n"
+bot_retorno+="$line\n ⚠️ Si deseas ya no usar el subdominio avisa al ADMiN ⚠️ \n$line\n"
+
+comand_boton "atras2"
+#menu_print 'atras'
+}
+
+
+
+
+filesdos() {
+ MSG_id=$((${message_message_id} + 1))
+ local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" PRUEBA DE MENSAJE\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ sleep 5s
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+}
+
+
+
+unset botao_conf
botao_conf=''
+unset botao_user
botao_user=''
-botao_donar=''
-botao_send_id=''
-boton_add=''
-boton_addREV=''
-boton_upfile=''
-boton_ADMINS=''
-boton_key=''
-_pos=1
-for A in $(echo -e "${permited}" | cut -d '|' -f1); do
-ShellBot.InlineKeyboardButton --button 'boton_ADMINS' --line ${_pos} --text "$(echo -e "${permited}"| grep -w ${A} | cut -d '|' -f2)" --callback_data "/hsjdhsdhjsgdf ${A}"
-let _pos++
-done
-
-ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text " MI ID " --callback_data '/id'
-ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 2 --text "SOLICITAR ACCESO" --callback_data '/sendid'
-#ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text " 🔎 WHATSAPP" --callback_data '1' --url "https://wa.me/$(cat < /etc/numctc)"
-#ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 2 --text "CANAL ORG" --callback_data '1' --url "https://t.me/ChumoGHADM"
-#ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 2 --text "GRUPO ORG" --callback_data '1' --url "https://t.me/ChumoGH_ADM"
-#ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 3 --text " 👨🏾💻 ADMIN ORIGINAL 👨🏾💻" --callback_data '1' --url 'https://t.me/ChumoGH'
-ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text " 💲 PRECIOS 💰" --callback_data '/prices'
-ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text " 💻 Key FREE 💻 " --callback_data '/kfree'
-ShellBot.InlineKeyboardButton --button 'boton_key' --line 1 --text " 💻 Key FREE 💻 " --callback_data '/keygen'
-
-ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text ' AÑADIR ID' --callback_data '/add'
-ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text ' BORRAR ID' --callback_data '/del'
-ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text ' ID REG' --callback_data '/list'
-ShellBot.InlineKeyboardButton --button 'boton_add' --line 1 --text ' AÑADIR ' --callback_data '/add'
-ShellBot.InlineKeyboardButton --button 'boton_add' --line 1 --text ' BORRAR ' --callback_data '/del'
-ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text ' BUSCAR ID' --callback_data '/buscar'
-#[[ -e /etc/systemd/system/btkill ]] && ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text ' ON | OFF ' --callback_data '/killon'
-ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text '💩 GEN KEY LTM 🥜' --callback_data '/kltm'
-#ShellBot.InlineKeyboardButton --button 'boton_addREV' --line 1 --text ' AÑADIR REVENDEDOR' --callback_data '/addrev'
-#ShellBot.InlineKeyboardButton --button 'boton_addREV' --line 1 --text ' BORRAR REVENDEDOR' --callback_data '/delrev'
-ShellBot.InlineKeyboardButton --button 'botao_conf' --line 4 --text '🔑 GEN KEY CGH 🔥' --callback_data '/keygen'
+unset botao_atras
+botao_atras=''
+unset botao_atras2
+botao_atras2=''
+unset botao_atras3
+botao_atras3=''
+unset botao_atras4
+botao_atras4=''
+unset botao_shfre
+botao_shfre=''
+unset botao_keymen
+botao_keymen=''
+unset botao_keymens
+botao_keymens=''
+unset botao_keymenss
+botao_keymenss=''
+unset botao_keylat
+botao_keylat=''
+unset botao_dex
+botao_dex=''
+unset botao_menudos
+botao_menudos=''
+unset botao_menubi
+botao_menubi=''
+unset botao_user1
+botao_user1=''
+atras=''&&domain=''&&keys=''
+ShellBot.InlineKeyboardButton --button 'botao_user1' --line 1 --text "ID" --callback_data '/id edit'
+ShellBot.InlineKeyboardButton --button 'botao_user1' --line 2 --text 'INSTALADOR REMOTO LATAM' --callback_data '/rem'
+ShellBot.InlineKeyboardButton --button 'botao_user1' --line 1 --text "GRUPO" --callback_data '1' --url 'https://t.me/botlatmx'
+ShellBot.InlineKeyboardButton --button 'botao_user1' --line 3 --text "KEY DARNIX" --callback_data '/keylat edit'
+ShellBot.InlineKeyboardButton --button 'botao_user1' --line 3 --text "KEY CASITA" --callback_data '/keylatf edit'
+ShellBot.InlineKeyboardButton --button 'botao_user1' --line 4 --text "📋REGISTRO DE ACTIVACIONES" --callback_data '/cambiar edit'
+ShellBot.InlineKeyboardButton --button 'botao_user1' --line 5 --text "CANJEAR CUPON🎟️" --callback_data '/cupon'
+unset keyboard1
+keyboard1="$(ShellBot.InlineKeyboardMarkup -b 'botao_user1')"
-ShellBot.InlineKeyboardButton --button 'botao_user' --line 1 --text '🔑 GEN KEY CGH 🔥' --callback_data '/keygen'
-ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text '💩 GEN KEY LTM 🥜' --callback_data '/kltm'
-ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text ' 🧿 Ban|IP 📲' --callback_data '/banIP' # '1' --url "https://t.me/${alias_admin}"
-#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 '/kltm' #'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 ' DOMINIO 🌎 A-@' --callback_data '/domainA'
-ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text ' DOMINIO 🌎 NS ' --callback_data '/domainNS'
-ShellBot.InlineKeyboardButton --button 'botao_user' --line 4 --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)"
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text '✅ ADD' --callback_data '/add'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text '❌ DELL' --callback_data '/del'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text '👥 LIST' --callback_data '/list edit'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text '❌ POWER ✅' --callback_data '/power'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text '📵AUTO-DEL' --callback_data '/autodel'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text '🎟️CUPONLIST' --callback_data '/liscup edit'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 3 --text '🔑 KEYLATM' --callback_data '/keylatam edit'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 3 --text '🔑 KEYGEN' --callback_data '/keygens edit'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 4 --text '🔰AGREGAR RESELLER🔰' --callback_data '/reseller'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 4 --text '🗑QUITAR RESELLER🗑' --callback_data '/delresell'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 5 --text "🌐ACTUALIZARBOT" --callback_data '/up'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 5 --text "🧿REINCIARBOT" --callback_data '/reser'
+#ShellBot.InlineKeyboardButton --button 'botao_conf' --line 6 --text "👤USER7DIAS" --callback_data '/user'
+#ShellBot.InlineKeyboardButton --button 'botao_conf' --line 6 --text "👤USER3DIAS" --callback_data '/user3'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 7 --text "🔰MENUBLOQUEAR" --callback_data '/menub edit'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 7 --text "⚙️INSTALADOR REMOTO" --callback_data '/menurem edit'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 8 --text "⌛ON/OFF CUPONES" --callback_data '/cupd'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 8 --text "🔌SUBDOMINIO" --callback_data '/ippp'
+unset keyboard2
+keyboard2="$(ShellBot.InlineKeyboardMarkup -b 'botao_conf')"
+
+
+
+
+
+
+
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 1 --text '🔑 KEY CASITA' --callback_data '/keylatam edit'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 1 --text '🔑 KEY DARNIX' --callback_data '/keygens edit'
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 1 --text '🔑 KEYDARNIX' --callback_data '/darnix edit'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text 'ℹ️INFO' --callback_data '/id edit'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text "📋REGISTROS" --callback_data '/cambiar edit'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text '🤖GEOIP' --callback_data '/ip'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text '🌐SLOGAN' --callback_data '/reseller'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text '🗑DEL SLOGAN' --callback_data '/delresell'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 5 --text '💠CONTROL VPS' --callback_data '/menurem edit'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 5 --text "🔌CREAR SUBDOMINIO" --callback_data '/ippp'
+
+unset keyboard3
+keyboard3="$(ShellBot.InlineKeyboardMarkup -b 'botao_user')"
+
+
+
+#menu botones para entrar y salir
+ShellBot.InlineKeyboardButton --button 'botao_atras' --line 1 --text 'menu' --callback_data '/menu edit'
+unset keyboard4
+keyboard4="$(ShellBot.InlineKeyboardMarkup -b 'botao_atras')"
+
+
+
+ShellBot.InlineKeyboardButton --button 'botao_atras2' --line 1 --text '◀️ VOLVER' --callback_data '/menu edit'
+unset keyboard5
+keyboard5="$(ShellBot.InlineKeyboardMarkup -b 'botao_atras2')"
+
+
+
+ShellBot.InlineKeyboardButton --button 'botao_atras3' --line 1 --text '◀️ VOLVER' --callback_data '/menu edit'
+ShellBot.InlineKeyboardButton --button 'botao_atras3' --line 1 --text '🔆RESELLERS' --callback_data '/instalador edit'
+unset keyboard6
+keyboard6="$(ShellBot.InlineKeyboardMarkup -b 'botao_atras3')"
+
+
+
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 1 --text "🌐ADDIP" --callback_data '/addip'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 1 --text "🧿VERIP" --callback_data '/iplist'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 2 --text "👤USER7DIAS" --callback_data '/user'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 2 --text "👤USER3DIAS" --callback_data '/user3'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 3 --text "🔌SSL443-80" --callback_data '/ssl'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 3 --text "📱BADVPN" --callback_data '/ss'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 4 --text "⚙️CAMBIAR PASS" --callback_data '/pass'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 4 --text "🎮INSTALARLATAM" --callback_data '/rem'
+ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 5 --text "↩️MENU" --callback_data '/menu edit'
+
+
+#ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 1 --text "🌐AÑADIRIP" --callback_data '/addip'
+#ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 1 --text "🧿SHOWIP" --callback_data '/iplist'
+ShellBot.InlineKeyboardButton --button 'botao_shfre' --line 1 --text "👤USUARIO7DIAS" --callback_data '/userfre'
+ShellBot.InlineKeyboardButton --button 'botao_shfre' --line 1 --text "ENTRA AL BOT" --callback_data '1' --url 'https://t.me/botgenmx_bot'
+#ShellBot.InlineKeyboardButton --button 'botao_atras4' --line 3 --text "↩️MENU" --callback_data '/menu edit'
+
+
+
+
+
+ShellBot.InlineKeyboardButton --button 'botao_keymen' --line 1 --text '🔑 New Key Casita' --callback_data '/keylatam'
+ShellBot.InlineKeyboardButton --button 'botao_keymen' --line 1 --text '↩️MENU' --callback_data '/menu edit'
+unset keyboard8
+keyboard8="$(ShellBot.InlineKeyboardMarkup -b 'botao_keymen')"
+
+
+ShellBot.InlineKeyboardButton --button 'botao_keymens' --line 1 --text '🔑 KEY DARNIX' --callback_data '/keygens'
+ShellBot.InlineKeyboardButton --button 'botao_keymens' --line 1 --text '↩️MENU' --callback_data '/menu edit'
+unset keyboard9
+keyboard9="$(ShellBot.InlineKeyboardMarkup -b 'botao_keymens')"
+
+ShellBot.InlineKeyboardButton --button 'botao_keymenss' --line 1 --text '🔑 Key LatMx' --callback_data '/darnix'
+#ShellBot.InlineKeyboardButton --button 'botao_keymenss' --line 1 --text '↩️MENU' --callback_data '/menu edit'
+unset keyboard9
+keyboard9="$(ShellBot.InlineKeyboardMarkup -b 'botao_keymens')"
+
+
+
+ShellBot.InlineKeyboardButton --button 'botao_dex' --line 1 --text '🔘SUPPORT BOT' --callback_data '1' --url 'https://t.me/suppbotgen'
+unset keyboard10
+keyboard10="$(ShellBot.InlineKeyboardMarkup -b 'botao_dex')"
+
+ShellBot.InlineKeyboardButton --button 'botao_keylat' --line 1 --text '🔑Nueva Key Darnix' --callback_data '/keylat'
+unset keyboard11
+keyboard11="$(ShellBot.InlineKeyboardMarkup -b 'botao_keylat')"
+
+ShellBot.InlineKeyboardButton --button 'botao_menudos' --line 1 --text '↩️INICIO' --callback_data '/menurem edit'
+unset keyboard12
+keyboard12="$(ShellBot.InlineKeyboardMarkup -b 'botao_menudos')"
+
+
+ShellBot.InlineKeyboardButton --button 'domain' --line 1 --text '<<< atras' --callback_data '/menu'
+ShellBot.InlineKeyboardButton --button 'domain' --line 2 --text 'ENLAZAR SUBDOMINIO A UNA IP' --callback_data '/ippp'
+
+
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 1 --text '🔍BUSCRID' --callback_data '/buscar'
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 1 --text '🆔BLOQDS' --callback_data '/idgen edit'
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 1 --text '🆔UNLOCK' --callback_data '/delid'
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 2 --text '🌐IPS REG' --callback_data '/catip edit'
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 2 --text '🔑KEYID' --callback_data '/liskey edit'
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 3 --text '⛔️BANID' --callback_data '/addban edit'
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 3 --text 'IPGEO' --callback_data '/ip'
+ShellBot.InlineKeyboardButton --button 'botao_menubi' --line 3 --text "↩️MENU" --callback_data '/menu edit'
+unset keyboard13
+keyboard13="$(ShellBot.InlineKeyboardMarkup -b 'botao_menubi')"
+
+txt[0]='Ingresa tu IP: '
+txt[1]='Ingresa el subdominio:'
+#txt[2]='Ingresa tu reseller:'
+
+nws(){
+unset bot_retorno
+bot_retorno="$comando"
+reply
+}
# 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]})
+ chatuser="$(echo ${message_chat_id[$id]}|cut -d'-' -f2)"
+ [[ -z $chatuser ]] && chatuser="$(echo ${callback_query_from_id[$id]}|cut -d'-' -f2)"
+ echo $chatuser >&2
+
+ comando=(${message_text[$id]})
[[ -z $comando ]] && comando=(${callback_query_data[$id]})
#echo "comando $comando"
- comand
+ [[ "${chatuser}" == @('6409531194'|'5733463012'|'8028381101') ]] && {
+ permited="${chatuser}"
+ }
+ [[ -z $permited ]] && permited=$(cat ${CIDdir}/Admin-ID)
+
+
+ if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+ if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
+ if [[ ${message_reply_to_message_message_id[$id]} ]]; then
+ case ${message_reply_to_message_text[$id]} in
+ '☟INGRESE SU RESELLER ABAJO☟') mensaje;;
+ 'INGRESE SU CUPON') cupon_reply;;
+ 'INGRESE SU IP REMOTO') remo_reply;;
+ *) invalido_fun;;
+ esac
+ elif [[ ${message_text[$id]} || ${callback_query_data[$id]} ]]; then
+ case ${comando[0]} in
+ /[Ii]d|/[Ii]D) myid_src &;;
+ /[Aa]cceso|[Aa]cceso) autori &;;
+ /MI_ACCESO|/[Mm]enu|[Mm]enu|/[Ss]tart|[Ss]tart|[Cc]omensar|/[Cc]omensar) menu_src &;;
+ /[Aa]yuda|[Aa]yuda|[Hh]elp|/[Hh]elp) ayuda_id && return 0;;
+ /[Kk]eylat|/[Gg]elat|[Gg]elat|[Kk]eylat) gerar_key &;;
+ /[Kk]eylatam|/[Gg]elatam|[Gg]arnux|[Dd]arnix) autovpsf &;;
+ /[Kk]eylatf|/[Gg]elat|[Gg]elatf|[Kk]eygenf) gerar_cas &;;
+ /[Cc]ambiar) showHistory &;;
+ /[Ii]nstalador) link_src &;;
+ /sendid) send_ID;;
+ /[Ss]sh) sshfre &;;
+ /[Uu]serfre) criarteste4 &;;
+ /[Rr]em) remoip;;
+ /[Cc]upon) cupon;;
+ *) invalido_fun &;;
+ esac
+ fi
+ del_msj
+ else
+ if [[ ${message_reply_to_message_message_id[$id]} ]]; then
+ case ${message_reply_to_message_text[$id]} in
+ '☟INGRESE SU RESELLER ABAJO☟') mensaje;;
+ 'INGRESE SU IP') ipgeo_reply;;
+ 'INGRESE SU IP REMOTO') remo_reply;;
+ 'INGRESE SUS DATOS') pass_reply;;
+ '☟INGRESE SU IP☟') addIP_reply;;
+ 'Ingresa tu IP:'|"${txt[0]}")domain-IP "${txt[0]}" "${message_text[$id]}";;
+ 'Ingresa el subdominio:'|'Ingresa otro subdominio:')domain-IP "${txt[1]}";;
+ *) invalido_fun;;
+ esac
+ elif [[ ${message_text[$id]} || ${callback_query_data[$id]} ]]; then
+ case ${comando[0]} in
+ /MI_ACCESO|/[Mm]enu|[Mm]enu|/[Ss]tart|[Ss]tart|[Cc]omensar|/[Cc]omensar) menu_src &;;
+ /[Rr]eseller) newres;;
+ /[Dd]elresell) rm_resell &;;
+ /[Ii]d|/[Ii]D) myid_src &;;
+ /[Ii]nstalador) link_src &;;
+ /[Ii]nfosys) infosys_src &;;
+ /[Kk]eygens|/[Gg]erar|[Gg]erar|[Kk]eygens) gerar_keyc &;; #darnix
+ #/[Kk]eylat|/[Gg]elat|[Gg]elat|[Kk]eylat) gerar_key &;;
+ /[Kk]eylatam|/[Gg]elatam|[Gg]elatam|[Kk]eylatam) generar &;; #casita
+ /[Cc]ambiar) showHistory &;;
+ /[Ii]p) ipgeo;;
+ /[Aa]ddip) newip &;;
+ /[Rr]em) remoip;;
+ /[Pp]ass) passip;;
+ /[Uu]ser) criarteste2 &;;
+ /[Uu]ser3) criarteste3 &;;
+ /[Uu]serfre) criarteste4 &;;
+ /[Ss]sl) sslt &;;
+ /[Mm]enurem) menu_dos &;;
+ /[Ii]plist) show_connected_ip &;;
+ /[Rr]eip) remove_connection &;;
+ /[Ss]sh) sshfre &;;
+ /[Dd]arnix) autovps &;;
+ /ippp)domain-IP -ip&;;
+ /createsubd)createsubd "${comando[1]}" "${comando[2]}" &;;
+ /*|*) invalido_fun &;;
+ esac
+ fi
+ del_msj
+ fi
+ else
+ if [[ ${message_reply_to_message_message_id[$id]} ]]; then
+ case ${message_reply_to_message_text[$id]} in
+ '𝙄𝙉𝙂𝙍𝙀𝙎𝙀 𝙀𝙇 𝙄𝘿 𝘿𝙀𝙇 𝙐𝙎𝙐𝘼𝙍𝙄𝙊') deleteID_reply2;;
+ '𝙄𝙉𝙂𝙍𝙀𝙎𝙀 𝙀𝙇 𝙉𝙐𝙀𝙑𝙊 𝙄𝘿')
+ echo "${message_text[$id]}" >/tmp/id.$chatuser
+ tmp=/tmp/id.$chatuser
+ ID=$(sed -n '1 p' $tmp | cut -d' ' -f1)
+ ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
+ --text "FECHA DE EXPIRACION👇" \
+ --reply_markup "$(ShellBot.ForceReply)"
+ ;;
+ 'FECHA DE EXPIRACION👇')
+ echo "${message_text[$id]}" >>/tmp/id.$chatuser
+ DIAS=$(sed -n '2 p' $tmp | cut -d' ' -f1)
+ [[ $(cat ${CID}|grep "$ID") = "" ]] && {
+ datexp=$(date "+%F" -d " + $DIAS days") && valid=$(date '+%C%y-%m-%d' -d " + $DIAS days")
+ echo -e "$ID|$datexp" >> ${CID} #|| return 1
+
+ local bot_retorno="$LINE\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="✅ * ACCESO ACTIVADO * ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="🆔 ●⸺: $ID\n"
+ bot_retorno+="Vigencia De Expiracion : $datexp\n"
+ #
+ bot_retorno+="$LINE\n"
+
+ msj_fun
+ upfile_src
+ #enviar notificacion al usuario
+
+
+ ShellBot.sendMessage --chat_id $ID \
+ --text "$(echo -e "$LINE\n𝗛𝗢𝗟𝗔 𝗕𝗜𝗘𝗡𝗩𝗘𝗡𝗜𝗗𝗢 \n\nEl ADM: $(cat < /etc/CAT-BOT/ressx) Aprobo tu acceso\n\n𝗔𝗛𝗢𝗥𝗔 𝗧𝗜𝗘𝗡𝗘𝗦 𝗔𝗖𝗖𝗘𝗦𝗢 𝗩𝗜𝗣 𝗔𝗟 𝗕𝗢𝗧\n🆔 ●⸺: $ID \n🔘 Fin: $valid\n\nIngresa al Generador: /MI_ACCESO\n[ Acceso Activado ] 📌\n$LINE")" \
+ --parse_mode html
+ return 0
+
+ tmp=/tmp/id.$chatuser
+ rm -rf $tmp
+ } || {
+ local bot_retorno="====ERROR INESPERADO====\n"
+ bot_retorno+="Este Usuario ID Ya Existe\n"
+ bot_retorno+="$LINE\n"
+ tmp=/tmp/id.$chatuser
+ rm -rf $tmp
+ msj_fun
+ }
+ ;;
+ '☟INGRESE SU RESELLER ABAJO☟') mensaje;;
+ '/buscar') searchID_reply;;
+ '/delid') deleteIDS_reply;;
+ 'INGRESE ID A BANEAR') addIDS_reply;;
+ 'INGRESE SU IP') ipgeo_reply;;
+ 'INGRESE SU IP REMOTO') remo_reply;;
+ 'INGRESE SUS DATOS') pass_reply;;
+ '☟INGRESE SU IP☟') addIP_reply;;
+ 'Ingresa tu IP:'|"${txt[0]}")domain-IP "${txt[0]}" "${message_text[$id]}";;
+ 'Ingresa el subdominio:'|'Ingresa otro subdominio:')domain-IP "${txt[1]}";;
+ '/dari') addADM_reply ;;
+ *) invalido_fun;;
+ esac
+ elif [[ ${message_document_file_id[$id]} ]]; then
+ download_file
+ elif [[ ${message_text[$id]} || ${callback_query_data[$id]} ]]; then
+ case ${comando[0]} in
+ '/cupd')
+ if $cupon_activado; then
+ cupon_activado=false
+ verificar="𝘿𝙀𝙎𝘼𝘾𝙏𝙄𝙑𝘼𝘿𝙊 -- 𝘾𝙊𝙉 𝙀𝙓𝙄𝙏𝙊"
+ else
+ cupon_activado=true
+ verificar="𝘼𝘾𝙏𝙄𝙑𝘼𝘿𝙊 -- 𝘾𝙊𝙉 𝙀𝙓𝙄𝙏𝙊\n Boton cupones"
+ fi
+ local bot=" = 𝙉𝙊𝙏𝙄𝙁𝙄𝘾𝘼𝘾𝙄𝙊𝙉\n"
+ local verificar
+ bot+="•────•──────────•────•\n"
+ bot+=" $verificar\n"
+ bot+="•────•──────────•────•\n"
+ [[ ! -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 "$bot" \
+ --parse_mode html
+ return 0
+ ;;
+ /MI_ACCESO|/[Mm]enu|[Mm]enu|/[Ss]tart|[Ss]tart|[Cc]omensar|/[Cc]omensar) menu_src &;;
+ /[Aa]yuda|[Aa]yuda|[Hh]elp|/[Hh]elp) ayuda_src &;;
+ /[Ii]d|/[Ii]D) myid_src &;;
+ /[Aa]dd)newid;;
+ /[Dd]el)rmid;;
+ /[Ii]p) ipgeo;;
+ /[Rr]em) remoip;;
+ /[Pp]ass) passip;;
+ /[Pp]ower) start_gen &;;
+ /[Rr]eseller) newres;;
+ /[Aa]utodel|[Aa]utodel) autodel_id;;
+ /[Dd]elresell) rm_resell &;;
+ /[Kk]eylatam|/[Gg]elatam|[Gg]elatam|[Kk]eylatam) generar &;;
+ #/[Kk]eylat|/[Gg]elat|[Gg]elat|[Kk]eylat) gerar_key &;;
+ /[Kk]eygens|/[Gg]erar|[Gg]erar|[Kk]eygens) gerar_keyc &;;
+ /[Bb]uscar|[Bb]uscar) reply &;;
+ /[Ii]nfosys) infosys_src &;;
+ /[Ii]dgen|[Ii]dgen) listID_GEN &;;
+ /[Cc]atip|[Cc]atip) list_IP &;;
+ /[Dd]elid) replydos &;;
+ /[Aa]ddban) idban &;;
+ /[Ll]ist) listID_src &;;
+ /[Ll]iscup) listIDcup_src &;;
+ /[Uu]ser) criarteste2 &;;
+ /[Uu]ser3) criarteste3 &;;
+ /[Ss]sl) sslt &;;
+ /[Mm]enub) menublok &;;
+ /[Mm]enurem) menu_dos &;;
+ /[Uu]p) updates &;;
+ /[Ii]plist) show_connected_ip&;;
+ /[Rr]eip) remove_connection &;;
+ /[Ll]iskey) listkey_src &;;
+ /[Dd]ari) replydos & ;;
+ /[Ii]nstalador) link_src &;;
+ /[Cc]a) filesdos &;;
+ /[Dd]arnix) autovps &;;
+ /[Rr]eser) restart_genbot &;;
+ /ippp)domain-IP -ip &;;
+ /[Dd]omain|[.@/+-_!?][Dd]omain)domain-IP&;;
+ /createsubd)createsubd "${comando[1]}" "${comando[2]}" &;;
+ /[Aa]ddip) newip &;;
+ /[Dd]omain)domain-IP&;;
+ /*|*) invalido_fun &;;
+ esac
+ fi
+ del_msj
+ fi
done
done