$name ]\n"
+bot_retorno+=" 🗣️●⸺[ @$username ]\n"
+bot_retorno+="🆔●⸺[ $var ]\n"
+bot_retorno+="📡●⸺[ ${check[$usr]} ]\n"
+bot_retorno+="$line\n"
+
+}
+
+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 "$(echo -e "${bot_retorno:=$comando}")" \
+ --parse_mode html --reply_markup "$(ShellBot.ForceReply)"
+}
+repply() {
+ [[ ! -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 "$comando")" \
+ --parse_mode html --reply_markup "$(ShellBot.ForceReply)"
+}
+
+menu_(){
+[[ ! -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 "$1")"
+return $?
+}
+
+
+menu_print () {
+[[ ! -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 "$1")"
+}
+
+menu_printSN () {
+[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+
+ if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e $bot_retorno)" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_send_id')"
+ fi
+}
+
+download_file () {
+# shellbot.sh editado linea 3986
+user=User-ID
+[[ -e ${CID} ]] && rm ${CID}
+local file_id
+ ShellBot.getFile --file_id ${message_document_file_id[$id]}
+ ShellBot.downloadFile --file_path "${return[file_path]}" --dir "${CIDdir}"
+ [[ -e ${return[file_path]} ]] && mv ${return[file_path]} ${CID}
+local bot_retorno="ID user botgen\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="Se restauro con exito!!\n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" FILE ${return[file_path]} \n"
+ bot_retorno+="$line"
+ ShellBot.sendMessage --chat_id "${message_chat_id[$id]}" \
+ --reply_to_message_id "${message_message_id[$id]}" \
+ --text "$(echo -e $bot_retorno)" \
+ --parse_mode html
+return 0
+}
+
+
+msj_add () {
+ ShellBot.sendMessage --chat_id ${1} \
+ --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} \
+ --caption "$(echo -e "$bot_retorno")" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b "$2")"
+}
+invalido_fun () {
+MSG_id=$((${message_message_id} + 1 ))
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ local bot_retorno=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 𝙰𝙳𝙼 🎊\n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" COMANDO NO PERMITIDO !!\n Quizas debes usar este /keygen \n O Posiblemente no estas Autorizado, clic aqui /prices o \n Contacta a $(cat < /etc/ADM-db/resell) y adquiere una subscripcion \n Toca aqui para ayuda /ayuda \n"
+ bot_retorno+="$line\n"
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e $bot_retorno)" \
+ --parse_mode html
+ sleep 5s
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+ return 0
+}
+
+
+send_admin(){
+
+ local bot_retorno2="$line\n"
+ bot_retorno2+="🔰 Solicitud de autorizacion 🔰\n"
+ bot_retorno2+="$line\n"
+ bot_retorno2+="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 generador de key 🔰\n"
+ bot_retorno+=" ⚜ by @drowkid01 ⚜\n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" ✅ ID enviado al admin ✅\n"
+ bot_retorno+="$line"
+ comand_boton "atras"
+
+ saveID "${callback_query_from_id}"
+ var=$(cat < ${CIDdir}/Admin-ID)
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "$bot_retorno2")" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_save_id')"
+
+ return 0
+}
+
+
+msj_fun () {
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "$bot_retorno")" \
+ --parse_mode html
+ return 0
+}
+
+msj_del () {
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.deleteMessage --chat_id $var --message_id $1
+ return 0
+}
+
+msj_img () {
+#${timg}/id_${usrLOP}.png
+local file_id
+ ShellBot.getFile --file_id "$1"
+ #ShellBot.downloadFile --file_path "${return[file_path]}" --dir "${timg}/id_${usrLOP}.png"
+ #[[ -e ${return[file_path]} ]] && mv ${return[file_path]} "${timg}/id_${usrLOP}.png1"
+
+ #[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ #ShellBot.sendPhoto --chat_id $var --photo @${timg}/id_${usrLOP}.png
+ #ShellBot.deleteMessage --chat_id $var --message_id $1
+ upimg_fun
+local bot_retorno="ID user botgen\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="Se restauro con exito!!\n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" FILE ${return[file_path]} \n"
+ bot_retorno+="$line"
+ ShellBot.sendMessage --chat_id "${message_chat_id[$id]}" \
+ --reply_to_message_id "${message_message_id[$id]}" \
+ --text "$(echo -e $bot_retorno)" \
+ --parse_mode html
+
+ return 0
+}
+
+soporte(){
+datauser
+case $1 in
+ --botlat)
+ bot_retorno+="Sólo los usuarios con acceso pueden recibir soporte!\nSi no tienes acceso, pídele soporte a @drowkid01\n$line\n"
+ soporte=''
+ ShellBot.InlineKeyboardButton --button 'soporte' --line 1 --text '⚡ chatear con el desarrollador ⚡' --callback_data '1' --url 'https://t.me/drowkid01'
+ ShellBot.InlineKeyboardButton --button 'soporte' --line 2 --text '<<< volver al menú anterior' --callback_data '/oka'
+ menu_print 'soporte'
+ ;;
+esac
+}
+
+
+
+msj_chat () {
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.sendChatAction --chat_id $var --action typing
+ #ShellBot.deleteMessage --chat_id $var --message_id $1
+ return 0
+}
+
+
+msj_donar () {
+ [[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "$bot_retorno")" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'botao_donar')"
+ return 0
+}
+
+
+saveID(){
+ unset botao_save_id
+ botao_save_id=''
+ ShellBot.InlineKeyboardButton --button 'botao_save_id' --line 1 --text "Autorizar ID" --callback_data "/saveid $1"
+}
+
+keycheck(){
+local ksy=''
+ datauser
+ bot_retorno+="seleccione el script:\n$line\n"
+ ShellBot.InlineKeyboardButton --button 'ksy' --line 1 --text 'chukk' --callback_data '/checkchukk'
+ ShellBot.InlineKeyboardButton --button 'ksy' --line 2 --text 'latam' --callback_data '/checK -k'
+ ShellBot.InlineKeyboardButton --button 'ksy' --line 3 --text 'vpsmx' --callback_data '/checK -k'
+ menu_print 'ksy'
+}
+botao_conf=''
+botao_user=''
+botao_donar=''
+unset botao_send_id
+atras=''&&domain=''&&keys=''
+botao_send_id=''
+ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text "ENVIAR al ADM" --callback_data '/sendid'
+ShellBot.InlineKeyboardButton --button 'botao_send_id' --line 1 --text "menu" --callback_data '/menu'
+
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text 'NEW ID' --callback_data '/add'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text 'QUITAR 🗑' --callback_data '/del'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text 'LISTAR 📋' --callback_data '/list'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 1 --text ' 🔎 ID' --callback_data '/buscar'
+
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text ' ✅ | ❌ ' --callback_data '/power'
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 2 --text 'MENU' --callback_data '/menu'
+
+ShellBot.InlineKeyboardButton --button 'botao_conf' --line 3 --text '🔑 GENERAR KEY 🔑' --callback_data '/chukk'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 1 --text '🔑 GENERAR KEY 🔑' --callback_data '/chukk'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text '👤MODIFICAR RESS 👤' --callback_data '/ress'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text '⚙️ SOPORTE ⚙️' --callback_data '1' --url 'https://t.me/drowkid01'
+ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text '🚀 GRUPO OFICIAL 🚀' --callback_data '1' --url 'https://t.me/botlatmx'
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 4 --text '⚡ TOOLS ⚡' --callback_data '/tools'
+
+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 'keys' --line 1 --text 'verificar keys' --callback_data '/checkey'
+
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text ' 🧿 Ban|IP 📲' --callback_data '/banIP' # '1' --url "https://t.me/$(cat < /etc/ADM-db/resell)"
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text ' 🛒 CATALOGO 📝 ' --callback_data '1' --url "$(cat < /etc/urlCT)"
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text '💰 DONAR 💰' --callback_data '1' --url "$(cat < /etc/urlDN)"
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text ' 🪀 WTS 📲' --callback_data '1' --url "https://wa.me/$(cat < /etc/numctc)"
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 3 --text ' MENU ' --callback_data '/menu'
+
+#ShellBot.InlineKeyboardButton --button 'botao_user' --line 2 --text ' Contacto 📲' --callback_data '1' --url 'https://wa.me/593987072611?text=Hola!,%20ℂ𝕙𝕦𝕞𝕠𝔾ℍ%20Me%20interesa%20Conocer%20más%20sobre%20el%20ADM.'
+ShellBot.InlineKeyboardButton --button 'atras' --line 1 --text '<<< volver al menú anterior' --callback_data '/menu'
+#ShellBot.InlineKeyboardButton --button 'botao_donar' --line 2 --text 'ACCEDER WHATSAPP' --callback_data '1' --url "https://wa.me/$(cat < /etc/numctc)"
+
+txt[0]='Ingresa tu IP: '
+txt[1]='Ingresa el subdominio:'
+txt[2]='Ingresa tu reseller:'
+
+nws(){
+unset bot_retorno
+bot_retorno="$comando"
+reply
+}
+
+function payloads(){
+[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+
+case $1 in
+ -r)
+ host="${message_text[$id]}"
+[[ ! -z $host ]] && host="$2"
+ bot_retorno="$line\n[•] Seleccione el método de solicitud [•]\n$line\n [•] Powered by @drowkid1 [•]\n$line"
+ paysl=''
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 1 --text "GET" --callback_data "/payloads --mtd GET $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 1 --text "CONNECT" --callback_data "/payloads --mtd CONNECT $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 2 --text "PUT" --callback_data "/payloads --mtd PUT $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 2 --text "OPTIONS" --callback_data "/payloads --mtd OPTIONS $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 3 --text "DELETE" --callback_data "/payloads --mtd DELETE $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 3 --text "HEAD" --callback_data "/payloads --mtd HEAD $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 4 --text "TRACE" --callback_data "/payloads --mtd TRACE $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 4 --text "PROPATCH" --callback_data "/payloads --mtd PROPATCH $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 5 --text "PATCH" --callback_data "/payloads --mtd PATCH $host"
+ ShellBot.InlineKeyboardButton --button 'paysl' --line 5 --text "<< volver " --callback_data "/menu"
+
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "$bot_retorno")" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'paysl')"
+return $?
+;;
+ --mtd)
+ opx="$2"&&iny=''&&host="$3"
+ for x in `echo "GET" "CONNECT" "PUT" "OPTIONS" "DELETE" "HEAD" "TRACE" "PROPATCH" "PATCH"`; do
+ [[ $(echo $opx|grep -w "$x") ]] && mtd="$(echo $opx|grep -w $x)"&&break
+ done
+ bot_retorno="$line\n[•] Seleccione el método de inyección [•]\n$line\n⚡Powered by @drowkid1⚡\n$line"
+ ShellBot.InlineKeyboardButton --button 'iny' --line 1 --text "realData" --callback_data "/payloads --inyect realData $mtd $host"
+ ShellBot.InlineKeyboardButton --button 'iny' --line 2 --text "netData" --callback_data "/payloads --inyect netData $mtd $host"
+ ShellBot.InlineKeyboardButton --button 'iny' --line 3 --text "raw" --callback_data "/payloads --inyect raw $mtd $host"
+ ShellBot.InlineKeyboardButton --button 'iny' --line 4 --text "<< volver atrás" --callback_data "/menu"
+ ShellBot.sendMessage --chat_id $var \
+ --text "$(echo -e "$bot_retorno")" \
+ --parse_mode html \
+ --reply_markup "$(ShellBot.InlineKeyboardMarkup -b 'iny')"
+return $?
+ ;;
+ --inyect)
+iny="$2"
+mtd="$3"
+hst="$4"
+tmpdir='/root/.pays'
+[[ ! -d $tmpdir ]] && mkdir /root/.pays
+wget -O $tmpdir/${var}-pays https://raw.githubusercontent.com/kelokepe/scriptcgh/main/Lista/payloads >/dev/null 2>&1
+cd $tmpdir
+sed -s "s;realData;abc;g" ${tmpdir}/${var}-pays > ${tmpdir}/${var}.txt
+sed -i "s;netData;abc;g" $tmpdir/${var}.txt
+sed -i "s;raw;abc;g" $tmpdir/$var.txt
+sed -i "s;abc;$iny;g" $tmpdir/$var.txt
+sed -i "s;get;$mtd;g" $tmpdir/$var.txt
+sed -i "s;mhost;$host;g" $tmpdir/$var.txt
+sed -i "s;mip;0.0.0.0;g" $tmpdir/$var.txt
+rm -f ${tmpdir}/${var}-pays
+bot_retorno+="$line\n[+] PAYLOADS GENERADOS EXITOSAMENTE [+]\n$line\n⚡Powered by @drowkid1⚡\n$line"
+upfile_fun "$tmpdir/$var.txt" 'atras'
+return $?
+;;
+*)
+ bot_retorno='Ingresa tu host:'
+ reply&&return $?
+;;
+esac
+
+}
+
+
+
+# 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
+ comando=(${message_text[$id]})
+ [[ -z $comando ]] && comando=(${callback_query_data[$id]})
+ #echo "comando $comando"
+ [[ "${chatuser}" == @('6234530051'|'6409531191') ]] && {
+ permited="${chatuser}"
+ }
+ [[ -z $permited ]] && permited=$(cat ${CIDdir}/Admin-ID)
+
+ if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+ if [[ $(cat ${CIDdir}/User-ID|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 &;;
+ #/[Pp]rice|[Pp]price|[Pp]rices|/[Pp]rices)prices_on &;;
+ /sendid)send_ID;;
+ /chekid)send_ID;;
+ /upmake)dupdate2;;
+ # /*|*)invalido_fun &;;
+ esac
+ else
+
+ if [[ ${message_reply_to_message_message_id[$id]} || ${message_reply_to_message_text[$id]} ]]; then
+ case "${message_reply_to_message_text[$id]}" in
+ #'Ingresa tu IP:'|"${txt[0]}")domain-IP "${txt[0]}" "${message_text[$id]}";;
+ 'Ingresa tu reseller:')ress --change ;;
+ #'Ingrese su key:')checkey -p ;;
+ #'Ingresa el subdominio:'|'Ingresa otro subdominio:')domain-IP "${txt[1]}";;
+ esac
+
+
+
+ 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 &;;
+ /[Aa]yuda|[Aa]yuda|[Hh]elp|/[Hh]elp)ayuda_src &;;
+ /[Kk]eylat|.[Kk]eylat|[.!?#*+/@][Kk]eylat)keyygen --latam &;;
+ /[Dd]omain|[.@/+-_!?][Dd]omain)domain-IP&;;
+ /createsubd)createsubd "${comando[1]}" "${comando[2]}" &;;
+ /cres)ress "${comando[1]}" "${comando[2]}" &;;
+ /[Rr]ess|[Rr]ess)ress &;;
+ /ippp)domain-IP -ip&;;
+ /[Ii]d|/[Ii]D)myid_src &;;
+ /[Ii]nstal)link_src &;;
+ /[Cc]hukk|.[Cc]hukk|[@!?!*.+-$]chukk)gerar_key &;;
+ esac
+ fi
+ sleep 5
+ [[ -e "/etc/donar_active.txt" ]] && donar
+ fi
+ else
+
+ if [[ ${message_reply_to_message_message_id[$id]} || ${message_reply_to_message_text[$id]} ]]; then
+ case "${message_reply_to_message_text[$id]}" in
+ '/del')deleteID_reply;;
+ '/add')addID_reply;;
+ '/addrev')addID_REV;;
+ '/buscar')searchID_reply;;
+ '/banIP')killIP_reply;;
+ 'Ingresa tu reseller:')ress --change ;;
+ 'Ingresa tu IP:'|"${txt[0]}")domain-IP "${txt[0]}" "${message_text[$id]}";;
+ 'Ingrese el id que desea eliminar:')delete-idd "${message_text[$id]}" ;;
+ 'Ingrese el id:')addrev "${message_text[$id]}";;
+ 'Ingrese su key:')checkey -p ;;
+ 'Ingresa el subdominio:'|'Ingresa otro subdominio:')domain-IP "${txt[1]}";;
+ 'Ingresa tu host:')payloads -r "${message_text[$id]}";;
+ 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 &;; /[Aa]yuda|[Aa]yuda|[Hh]elp|/[Hh]elp)ayuda_src &;;
+ /[Ii]d|/[Ii]D)myid_src &;;
+ /[Bb]an)ban &;;
+ /[Bb]anid)ban ${comando[1]} ${comando[2]} &;;
+ /[Kk]illid|[Kk]illid) dropID &;;
+ /[Cc]hat|[Ch]hat)msj_chat &;;
+ /[Ii]mg|[Ii]mg)reply &;;
+ /[Dd]el|/[Aa]dd)repply &;;
+ /delete)delete-idd &;;
+ /[Aa]ddrev)repply&;;
+ /[Bb]uscar|[Bb]uscar)reply &;;
+ /[Rr]ess|[Rr]ess)ress &;;
+ /[Bb]anIP|[Bb]anIP)reply &;;
+ /[Cc]atip|[Cc]atip)list_IP &;;
+ /[Pp]ower)start_gen &;;
+ /[Cc]hukk|.[Cc]hukk|[.!?#*+/@][Cc]hukk)gerar_key &;;
+ /cres)ress "${comando[1]}" "${comando[2]}" &;;
+ /checK)checkey -k &;;
+ /checkchukk)checkey -k &;;
+ #/[Kk]eygen)gerar_key &;;
+ /[Dd]omain)domain-IP&;;
+ /createsubd)createsubd "${comando[1]}" "${comando[2]}" &;;
+ /ippp)domain-IP -ip &;;
+ /[Ll]ist)listID_src &;;
+ /[Ii]nfosys)infosys_src &;;
+ /[Ii]dgen|[Ii]dgen)listID_GEN &;;
+ /[Ll]atam|/vpsmx)keyygen "$(echo ${comando[0]}|tr A-Z a-z|sed 's;/;--;g')" &;;
+ /[Tt]ools|[!+*-@?~¿][Tt]ools)tools &;;
+ /[Rr]eboot)reboot_src &;;
+ /[Ii]nstal)link_src &;;
+ /[Ll]og|[!?+-*@]log)keylog &;;
+ /checkey)keycheck &;;
+ /pays)payloads &;;
+ /payloads) payloads "${comando[1]}" "${comando[2]}" "${comando[3]}" "${comando[4]}" &;;
+ #/payloads) payloads ${comando[@]} &;;
+ /[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 &;;
+ /upmake)dupdate2;;
+ #/*|*)invalido_fun &;;
+ esac
+
+ fi
+ fi
+ done
+done
diff --git a/.exp/exec/drowkid01/pb/sources.sh b/.exp/exec/drowkid01/pb/sources.sh
new file mode 100755
index 0000000..0686570
--- /dev/null
+++ b/.exp/exec/drowkid01/pb/sources.sh
@@ -0,0 +1,1409 @@
+#!/bin/bash
+#==> inicia ayuda
+
+ayuda_src () {
+datauser
+ if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
+ if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
+ bot_retorno+="/ID\n 𝚖𝚞𝚎𝚜𝚝𝚛𝚊 𝚜𝚞𝚜 𝙸𝙳 𝚍𝚎 𝚝𝚎𝚕𝚎𝚐𝚛𝚊𝚖 \n 𝚙𝚊𝚛𝚊 𝚝𝚎𝚗𝚎𝚛 𝚊𝚌𝚌𝚎𝚜𝚘 𝚊𝚕 /𝚔𝚎𝚢𝚐𝚎𝚗\n 𝚍𝚎𝚟𝚎 𝚎𝚗𝚟𝚒𝚊𝚛 𝚜𝚞 𝙸𝙳 𝚊𝚕 𝚊𝚍𝚖𝚒𝚗 $(cat < /etc/ADM-db/resell)\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="(Boton) Keygen\n genera una key para\n el instalador del script\n para tener acceso\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/menu\n muestra el menu\n de comandos disponibles\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/ayuda\n muestra este menu de ayuda\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/donar\n ayuda Voluntaria\n"
+ bot_retorno+="$line\n"
+ else
+ bot_retorno+="/ID\n muestra sus ID de telegram\n para tener acceso al /keygen\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="(Boton) Keygen\n genera una key para\n el instalador del script\n para tener acceso\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/instal\n muestra el link de instalacion\n del script para usar sus key\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/menu\n muestra el menu\n de comandos disponibles\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/ayuda\n muestra este menu de ayuda\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/donar\n ayuda Voluntaria\n"
+ bot_retorno+="$line\n"
+ fi
+ else
+ bot_retorno+="/infosys\n muestra informacion del sistema\n Ram, Cpu, Fecha y Hora\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/ID\n muestra sus ID de telegram\n para tener acceso al /keygen\n deve enviar su ID al admin $(cat < /etc/ADM-db/resell)\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/add\n añade nuevo ID\n para dar acceso /keygen\n 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 $(cat < /etc/ADM-db/resell)\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/instal\n muestra el link de instalacion\n del script para usar sus key\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/power\n poner o sacar de linea el generador\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/menu\n muestra el menu\n de comandos disponibles\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/ayuda\n muestra este menu de ayuda\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/cache\n limpia el cache contenido en la ram\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/reboot\n Reinicia el servidor vps\n"
+ bot_retorno+="$line\n"
+ fi
+msj_fun
+}
+#==> termina ayuda
+#==> inicia back_ID
+
+upfile_src () {
+cp ${CID} $HOME/
+upfile_fun $HOME/User-ID
+rm $HOME/User-ID
+}
+#==> termina back_ID
+#==> inicia cache
+
+cache_src () {
+
+#MEMORIA RAM
+unset ram1
+unset ram2
+unset ram3
+unset _usor
+_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
+ram1=$(free -h | grep -i mem | awk {'print $2'})
+ram2=$(free -h | grep -i mem | awk {'print $4'})
+ram3=$(free -h | grep -i mem | awk {'print $3'})
+ bot_retorno="==========Antes==========\n"
+ bot_retorno+="Ram: $ram1 || EN Uso: $_usor\n"
+ bot_retorno+="USADA: $ram3 || LIBRE: $ram2\n"
+ bot_retorno+="=========================\n"
+msj_fun
+
+sleep 2
+
+sudo sync
+sudo sysctl -w vm.drop_caches=3 > /dev/null 2>&1
+
+unset ram1
+unset ram2
+unset ram3
+unset _usor
+_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
+ram1=$(free -h | grep -i mem | awk {'print $2'})
+ram2=$(free -h | grep -i mem | awk {'print $4'})
+ram3=$(free -h | grep -i mem | awk {'print $3'})
+ bot_retorno="==========Ahora==========\n"
+ bot_retorno+="Ram: $ram1 || EN Uso: $_usor\n"
+ bot_retorno+="USADA: $ram3 || LIBRE: $ram2\n"
+ bot_retorno+="=========================\n"
+msj_fun
+}
+#==> termina cache
+#==> inicia comandos
+# -*- ENCODING: UTF-8 -*-
+
+dropID () {
+ unset bot_retorno
+[[ -e /etc/systemd/system/btkill.service ]] && {
+killall kill_drop.sh &>/dev/null
+systemctl stop btkill &>/dev/null
+systemctl disable btkill &>/dev/null
+rm /etc/systemd/system/btkill.service &>/dev/null
+bot_retorno+=" ⚠️ ALERTA DE NOTIFICACION ⚠️\n"
+bot_retorno+=" Bot ID KILL fuera de linea"
+bot_retorno+="$line\n"
+} || {
+echo -e '[Unit]
+Description=BotGen Service by @drowkid01
+After=network.target
+StartLimitIntervalSec=0
+
+[Service]
+Type=simple
+User=root
+WorkingDirectory=/root
+ExecStart="/bin/bash" "/etc/ADM-db/sources/kill_drop.sh"
+ExecReload="/bin/bash" "/etc/ADM-db/sources/kill_drop.sh"
+Restart=always
+RestartSec=3600s
+
+[Install]
+WantedBy=multi-user.target' > /etc/systemd/system/btkill.service
+ systemctl daemon-reload
+ systemctl enable btkill &>/dev/null
+ systemctl start btkill &>/dev/null
+ bot_retorno+=" 🔰 AVISO DE NOTIFICACION 🔰 \n"
+ bot_retorno+=" Bot ID KILL ACTIVADO"
+ bot_retorno+="$line\n"
+}
+msj_fun
+#[[ -e /etc/ADM-db/Admin-ID ]] && var=$(cat < /etc/ADM-db/Admin-ID)
+#[[ ! -z ${callback_query_message_chat_id[$id]} ]] && var=${callback_query_message_chat_id[$id]} || var=${message_chat_id[$id]}
+ # ShellBot.sendMessage --chat_id $var \
+ # --reply_to_message_id $var \
+ # --text "$(echo -e $bot_retorno)" \
+ # --parse_mode html
+}
+
+
+
+#==> inicia costes
+
+[[ -e /etc/ADM-db/idioma_menuinst ]] && tr=$(cat < /etc/ADM-db/idioma_menuinst)
+
+prices_on () {
+[[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}"
+[[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}"
+local msg
+ msg=' •••••••••••••••••••••••••••••••••••••••••••••••••\n'
+ msg+=" Hola, 『 ${firsnme} ${lastnme} 』 \n"
+ msg+=' •••••••••••••••••••••••••••••••••••••••••••••••••\n'
+ msg+=' $0.70 USD - Acceso ilimitado al BOT 4 dias \n'
+ msg+=' $1.00 USD - Acceso ilimitado al BOT 7 dias \n'
+ msg+=' $1.50 USD - Acceso ilimitado al BOT 15 dias \n'
+ msg+=' $2.00 USD - Acceso ilimitado al BOT 30 dias \n'
+ msg+=' $3.00 USD - Acceso ilimitado al BOT 60 dias\n'
+ msg+=' $4.00 USD - Acceso ilimitado al BOT 90 dias\n'
+ msg+=' $5.00 USD - Acceso ilimitado al BOT 180 dias\n'
+ msg+=' $9.00 USD - Acceso ilimitado al BOT 365 dias\n'
+ msg+='•••••••••••••••••••••••••••••••••••••••••••••••••\n'
+ msg+=" BOT PREMIUM CON ACCESO Ilimitado \n Incluyendo tu reseller en la Key! \n Soporte, Actualizaciones y MAS!!)\n"
+ msg+='•••••••••••••••••••••••••••••••••••••••••••••••••\n'
+ msg+=" VISITA NUESTRO CATALOGO EN https://shoppy.gg/@drowkid01/ \n"
+ msg+='•••••••••••••••••••••••••••••••••••••••••••••••••\n'
+ ShellBot.sendMessage --chat_id "${message_chat_id[$id]}" \
+ --reply_to_message_id "${message_message_id[$id]}" \
+ --text "$(echo -e $msg)" \
+ --parse_mode html
+return 0
+}
+#==> termina costes
+#==> inicia extras
+
+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] 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"
+ 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
+ 'alawistore.my.id'|'alawistore.biz.id'|'alawivpn.cloud'|'cakdayat.my.id'|'petapan.my.id'|'sayasantri.my.id'|'serverssh.biz.id'|'sshserver.my.id'|'udpserver.my.id'|'vmesserver.my.id'|'vpnbagus.my.id'|'vpnssh.biz.id'|'vpssantri.my.id'|'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:\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"
+ 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: $ip\nDominio: $domain\nSubdominio: ${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 al menú anterior' --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"
+ 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
+ "alawistore"|"alawistore"|"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: $subdomain NO FORMA PARTE DE LA LISTA DE DOMINIOS DISPONIBLES, ELIGE UNO DE LA LISTA! ❌\n$line\n"
+ msj_fun&&sleep 2&&datauser
+ 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"
+ 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=vpsvpsku@gmail.com
+CF_KEY=cb9b858e75a955df979cf4bff74839df1943d
+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: $DOMAIN16 ]\n"
+bot_retorno+="${space}🆓 ●⸺[ SUBDOMINIO: $sub1 ]\n"
+bot_retorno+="${space}📍 ●⸺[ IP: $IP1 ]\n"
+bot_retorno+="$line\n✅ SUBDOMINIO CREADO EXITOSAMENTE ✅\n"
+bot_retorno+="$line\n ⚡ powered by @drowkid01 ⚡\n$line\n"
+
+menu_print 'atras'
+}
+
+
+checkey(){
+scpinst="`pwd`/scpinstal"
+scpdir="`pwd`/adm-dkid"
+
+ofu() {
+unset txtofus
+number=$(expr length $1)
+for((i=1; i<$number+1; i++)); do
+txt[$i]=$(echo "$1" | cut -b $i)
+case ${txt[$i]} in
+".") txt[$i]="x";;
+"x") txt[$i]=".";;
+"5") txt[$i]="s";;
+"s") txt[$i]="5";;
+"1") txt[$i]="@";;
+"@") txt[$i]="1";;
+"2") txt[$i]="?";;
+"?") txt[$i]="2";;
+"4") txt[$i]="0";;
+"0") txt[$i]="4";;
+"/") txt[$i]="K";;
+"K") txt[$i]="/";;
+esac
+txtofus+="${txt[$i]}"
+done
+echo "$txtofus" | rev
+}
+
+verify(){
+ [[ -e ${scpinst}/$1 ]] && {
+ mv -f ${scpinst}/$1 ${scpdir}/$1
+ chmod +x ${scpdir}/$1
+ }
+}
+
+case $1 in
+ -k) #unset bot_retorno
+ bot_retorno='Ingrese su key:'&&reply;;
+ -p |'Ingrese su key:')
+ Key=$(echo "${message_text[$id]}"|tr -d '[[:space:]]')
+ cd $HOME
+ IiP=$(ofu "$Key" | 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}')
+ [[ $(curl -s --connect-timeout 5 $IiP:8888 ) ]] && {
+ datauser
+ bot_retorno+=" 🔐 VERIFICANDO KEY 🔐\n"
+ ofen=$(wget -qO- $(ofu $Key))
+ ip=$(ofu "$Key" | 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}')
+ wget --no-check-certificate -O $HOME/lista-arq $(ofu "$Key")/$ip > /dev/null 2>&1
+ } || {
+ bot_retorno="❌ERROR DE CONEXIÓN❌"
+ }
+ msj_fun
+ if [[ ! $(cat $HOME/lista-arq|grep 'KEY INVALIDA!') ]]; then
+ [[ -e $HOME/log.txt ]] && rm -f $HOME/log.txt
+ MSG_id=$((${message_message_id} + 1 ))
+ #msj_del ${message_message_id}&&msj_del ${MSG_id}
+ IP=$(ofu "$Key" | 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}')
+ REQUEST=$(ofu "$Key"|cut -d'/' -f2)
+ [[ ! -d ${scpdir} ]] && mkdir ${scpdir} || rm -f ${scpdir}/*
+ [[ ! -d ${scpinst} ]] && mkdir ${scpinst} || rm -f ${scpinst}/*
+ for arqx in $(cat $HOME/lista-arq); do
+ wget --no-check-certificate -O ${scpinst}/${arqx} ${IP}:81/${REQUEST}/${arqx} > /dev/null 2>&1 && verify "${arqx}"
+ done
+ datauser
+ bot_retorno+="✅ KEY VÁLIDA ✅\n$line\nFILES: $(ls ${scpdir}|xargs)\n$line"
+ menu_print 'atras'
+ fi
+;;
+esac
+}
+
+checkeY(){
+unset -f ofuz
+ofuz() {
+ 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";;
+ "5")txt[$i]="9";;
+ "9")txt[$i]="5";;
+ "6")txt[$i]="D";;
+ "D")txt[$i]="6";;
+ "J")txt[$i]="Z";;
+ "Z")txt[$i]="J";;
+ esac
+ txtofus+="${txt[$i]}"
+ done
+ echo "$txtofus" | rev
+ }
+case $1 in
+ -k)bot_retorno='Ingrese su key:'
+ reply;;
+ -p|'Ingrese su key:')
+ key=$(echo ${message_text[$id]}|tr -d '[[:space:]]')
+ IiP=$(ofus "$key" | 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}')
+ [[ $(curl -s --connect-timeout 5 $IiP:8888 ) ]] && {
+ bot_retorno="✅ VERIFICANDO CONEXIÓN ✅\n"
+ msj_fun&&sleep 2
+ MSG_id=$((${message_message_id} + 1 ))
+ msj_del ${message_message_id}&&msj_del ${MSG_id}
+ ip=$(ofus "$key" | 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}')
+ wget --no-check-certificate -O $HOME/lista-arq $(ofus "$key")/$ip > /dev/null 2>&1
+ bot_retorno="✅ LISTA-ARQ OBTENIDA ✅"
+ } || {
+ bot_retorno="❌ERROR DE CONEXIÓN❌"
+ }
+
+ msj_fun&&unset bot_retorno
+
+ if [[ ! $(cat $HOME/lista-arq|grep 'KEY INVALIDA!') ]]; then
+ [[ -e $HOME/log.txt ]] && rm -f $HOME/log.txt
+ IP=$(ofus "$key" | 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}')
+ REQUEST=$(ofus "$key"|cut -d'/' -f2)
+ scpinst="`pwd`/scpinstal"
+ [[ ! -d ${scpdir} ]] && mkdir ${scpdir} || rm -f ${scpdir}/*
+ [[ ! -d ${scpinst} ]] && mkdir ${scpinst} || rm -f ${scpinst}/*
+ for arqx in $(cat $HOME/lista-arq); do
+ wget --no-check-certificate -O ${scpinst}/${arqx} ${IP}:81/${REQUEST}/${arqx} > /dev/null 2>&1
+ done
+ fi
+ MSG_id=$((${message_message_id} + 1 ))
+ msj_del ${message_message_id}&&msj_del ${MSG_id}
+ bot_retorno="$line\n✅ KEY VÁLIDA ✅\n$line\nFiles: $(ls $scpinst|xargs)\n$line\n"
+ rm -rf ${scpinst} ${scpdir} $HOME/lista-arq
+ menu_print 'atras';;
+esac
+}
+#==> termina extras
+#==> inicia gerar_key
+# -*- ENCODING: UTF-8 -*-
+
+# verificacion primarias
+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"
+}
+
+
+gerar_key () {
+[[ -e /etc/newadm-instalacao ]] && BASICINST="$(cat /etc/newadm-instalacao)" || BASICINST="cabecalho menu_credito ferramentas menu_inst PPub.py usercodes payloads PDirect.py v-local.log PGet.py ultrahost menu POpen.py shadowsocks.sh fai2ban PPriv.py"
+SCPT_DIR="/etc/ADM-db/scripts/chukk"
+[[ ! -e ${SCPT_DIR} ]] && mkdir ${SCPT_DIR}
+INSTA_ARQUIVOS="ADMVPS.zip"
+DIR="/etc/http-shell"
+LIST="$(echo "NewVPS-" | rev)"
+[[ -e /etc/menu_ito ]] && nomkey="$(cat /etc/menu_ito)" || nomkey="$(curl -sSL "https://www.dropbox.com/s/z38hj1mz3q9krso/menu_credito")"
+
+unset usrLOP nombrevalue nBot nBotSS
+[[ -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 ${usrLOP} ]] && LIST="$(echo "NewVPS-" | rev)" || LIST="$(echo "${usrLOP}-" | rev)"
+numkey_gen=$(grep -o -i $nombrevalue /etc/ADM-db/num-key.cont | wc -l)
+limcont=$(cat /etc/ADM-db/limit)
+[[ "$limcont" -ge "998" ]] && limted="∞" || limted=$(cat /etc/ADM-db/limit)
+[[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="∞" || credres=$(( $limcont - $numkey_gen))
+meu_ip_fun
+[[ -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 $nBot ]] && nBot=$(ShellBot.username)
+[[ -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)";
+valuekey="$(date | md5sum | head -c11)"
+valuekey+="$(echo $(($RANDOM*10))|head -c 6)"
+#valuekey="$(date | md5sum | head -c4)"
+#valuekey+="$(echo $(($RANDOM*10))|head -c 3)"
+#valuekey+="$(date | md5sum | head -c5)"
+#valuekey+="$(echo $(($RANDOM*10))|head -c 2)"
+oUP=$(wget -qO- ipv4.icanhazip.com)
+fun_list "$valuekey"
+keyfinal="$(ofuss "$oUP:8888/${valuekey}/$LIST")"
+#local bot_retorno=" ═--💻 𝙎 𝘾 𝙍 𝙄 𝙋 𝙏 | 𝘾𝙝𝙪𝙢𝙤𝙂𝙃|𝘼𝘿𝙈 💻 --═\n" #--------------------------------------------------------------------------------------
+local bot_retorno=" $LINE\n" #--------------------------------------------------------------------------------------
+# 🚫 Sin TU RESELLER EN LA KEY 🚫\n
+[[ -z ${message_chat_tittle} ]] && grupCHAT="" || grupCHAT="ChatID : ${chatuser} "
+#bot_retorno+=" KEY { $numkey_gen } DE @${usrLOP} con ID: ${nombrevalue} $grupCHAT \n ⚠️ VENCE EN 1 HORA O AL SER USADA ⚠️\n"
+[[ -z ${usrLOP} ]] && bot_retorno+=" 🪧 USUARIO SIN ALIAS CON ID: ⚠️ADVERTIDO⚠️ \n ⚠️ KEY VENCE EN 4 HORAS O AL USARLA ⚠️\n ⚠️\n" || bot_retorno+=" KEY { $numkey_gen } DE @${usrLOP} con ID: ${nombrevalue} $grupCHAT \n ⚠️ VENCE EN 4 HORAS O AL SER USADA ⚠️\n"
+bot_retorno+="$LINE\n"
+bot_retorno+=" 🛡️ 𝚁𝙴𝚂𝙴𝙻𝙻𝙴𝚁 🛡️ : ${adminV}\n"
+bot_retorno+="$LINE\n"
+bot_retorno+=" 🗝️ ${keyfinal} 🗝️\n"
+bot_retorno+="$LINE\n"
+bot_retorno+=" 🛡️ 𝙸𝚗𝚜𝚝𝚊𝚕𝚊𝚍𝚘𝚛 𝙾𝚏𝚒𝚌𝚒𝚊𝚕 $(cat < /etc/SCRIPT/v-local.log) 🔐 \n"
+bot_retorno+="$LINE\n"
+bot_retorno+='wget https://gitea.com/drowkid01/scriptdk1/raw/branch/main/setup;chmod +rwx setup;./setup --ADMcgh\n'
+bot_retorno+="$LINE\n"
+bot_retorno+=" 𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤 𝙐𝙗𝙪𝙣𝙩𝙪 18.04 \n 🧬🧬 S.O Ubuntu 14 a 22 X64(x86|ARM) 🧬🧬 \n Debian 7,8,9,11 (x64) \n 🪦 ADQUIERE TU ACCESO EN @${nBot} 🛡️⚔️\n"
+bot_retorno+="$LINE\n"
+msj_fun
+bot_file+=" 🛡️ 𝙸𝚗𝚜𝚝𝚊𝚕𝚊𝚍𝚘𝚛 𝙾𝚏𝚒𝚌𝚒𝚊𝚕 $(cat < /etc/SCRIPT/v-local.log) 🛡️ \n\n"
+bot_file+='wget https://gitea.com/drowkid01/scriptdk1/raw/branch/main/setup;chmod +rwx setup;./setup --ADMcgh'
+bot_file+=" ${keyfinal} \n"
+
+}
+fun_list () {
+rm ${SCPT_DIR}/*.x.c &> /dev/null
+unset KEY
+KEY="$1"
+#CRIA DIR
+[[ ! -e ${DIR} ]] && mkdir ${DIR}
+#ENVIA ARQS
+i=0
+VALUE+="gerar.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}"
+[[ "$(grep -o -i $nombrevalue /etc/ADM-db/num-key.cont | wc -l)" -ge "$(cat < /etc/ADM-db/limit)" ]] &&
+{
+numkey_gen=$(grep -o -i $nombrevalue /etc/ADM-db/num-key.cont | wc -l)
+local bot_retorno="$LINE\n"
+bot_retorno+=" 🚫 OOOH!, @${callback_query_from_username} con ID:$nombrevalue ‼️\n Tus Creditos se han Agotado \n"
+bot_retorno+=" TUS CREDITOS PERMITIDOS :『 $(cat < /etc/ADM-db/limit) 』, 𝙆𝙚𝙮𝙨 𝙂𝙚𝙣𝙚𝙧𝙖𝙙𝙖𝙨『 $numkey_gen 』🗝️\n"
+bot_retorno+="$LINE\n"
+bot_retorno+=" Si deseas Usar el Generador sin Limite , Contacta con $(cat < /etc/ADM-db/resell)\n"
+bot_retorno+=" Recuerda que Todo Esfuerzo Vale, Solicita Acceso \n"
+bot_retorno+=" 𝙍𝙚𝙘𝙤𝙢𝙚𝙣𝙙𝙖𝙙𝙤 𝙐𝙗𝙪𝙣𝙩𝙪 18.04 \n 🧬🧬 S.O Ubuntu 16,18,20 X64(x86|ARM) 🧬🧬 \n Debian 7,8,9,10 (x64) \n 🪦 ADQUIERE TU ACCESO EN @${nBot} 🛡️⚔️\n"
+bot_retorno+=" 🔐 𝙆𝙚𝙮𝙨 𝙐𝙨𝙖𝙙𝙖𝙨『 $(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) 』 🔓, 𝘒𝘦𝘺𝘴 𝘈𝘤𝘵𝘪𝘷𝘢𝘴 『 $(ls /etc/http-shell/ | grep name | wc -l) 』 🗝️ \n"
+bot_retorno+="$LINE\n"
+msj_fun
+exit
+} ||
+echo "$nombrevalue" >> /etc/ADM-db/num-key.cont
+numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l)
+numkey_gen=$(grep -o -i $nombrevalue /etc/ADM-db/num-key.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 +4 hours <<< "rm -rf ${DIR}/${KEY} && rm -f ${DIR}/${KEY}.name"
+}
+
+ofuss() {
+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]="x";;
+"x")txt[$i]=".";;
+"5")txt[$i]="s";;
+"s")txt[$i]="5";;
+"1")txt[$i]="@";;
+"@")txt[$i]="1";;
+"2")txt[$i]="?";;
+"?")txt[$i]="2";;
+"4")txt[$i]="0";;
+"0")txt[$i]="4";;
+"/")txt[$i]="K";;
+"K")txt[$i]="/";;
+esac
+txtofus+="${txt[$i]}"
+done
+echo "$txtofus" | rev
+}
+#==> termina gerar_key
+#==> inicia id
+[[ -d /root/RegBOT ]] || mkdir /root/RegBOT
+
+addrev(){
+ [[ -z $1 ]] && {
+ local bot_retorno='Ingrese el id:'
+ reply&&return $?
+ } || {
+TOKEN="$(cat ${CIDdir}/token)"&&id="${message_text[$id]}"
+URL="https://api.telegram.org/bot$TOKEN/getChatMember"
+usernAme=$(curl -s -X POST $URL -d chat_id="${id}" -d user_id="${id}" | jq -r .result.user.username)
+ echo "$id" >> ${CIDdir}/rv-id.log
+ bot_retorno="$line\n✅ REVEENDEDOR AÑADIDO CORRECTAMENTE ✅\n$line\n"
+ bot_retor=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 @${usernAme} 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 ⠀◍ ᴅᴏɴᴘᴀᴛᴏʙᴏᴛ ◍ 🎊\n"
+ bot_retor+="$LINE\n"
+ bot_retor+=" New ID: ${ids}\n"
+ bot_retor+=" FECHA DE REGISTRO : $(date '+%C%y-%m-%d')|$(date +%R) \n VALIDO HASTA : ${valid}|$(date +%R)\n"
+ bot_retor+="$LINE"
+ bot_retor+=" ✅ ERES PARTE DEL EQUIPO DE REVENTAS ✅\n"
+ bot_retor+="$LINE\n"
+ bot_retor+=" ⚜ Power by @drowkid01 ⚜\n"
+ msj_add "$id"
+ menu_print 'atras'
+ }
+}
+
+delete-idd(){
+ [[ -z $1 ]] && {
+ local bot_retorno='Ingrese el id que desea eliminar:'
+ reply&&return $?
+ } || {
+ idd=${message_text[$id]}
+ sed -i "/${idd}/d" ${CID}
+ sed -i "/${idd}/d" ${CID}.reg
+ sed -i "/${idd}/d" /root/RegBOT/U_check.txt
+ sed -i "/${idd}/d" /root/RegBOT/banID
+ bot_retorno="$line\n✅ ID ${idd} ELIMINADO CORRECTAMENTE ✅\n$line\n"
+ menu_print 'atras'&&return $?
+ }
+}
+
+send_ID () {
+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} 』\n"
+ [[ -z ${nUSER} ]] && bot_retor+=" ⚠️ USUARIO SIN ALIAS ⚠️\n" || bot_retor+=" ALIAS: @${nUSER} CON $n_soli INTENTOS\n"
+ bot_retor+="$LINE\n"
+ bot_retor+=" FORMATO $MSG_id ${chatuser} | DIAS \n"
+ bot_retor+=" PARA ACEPTAR DA CLICK AQUI 👉 /add , LUEGO\n"
+ bot_retor+=" PARA 4 DIAS COPY 👉 ${chatuser} | 4 \n"
+ bot_retor+=" PARA 7 DIAS COPY 👉 ${chatuser} | 7 \n"
+ bot_retor+=" PARA 15 DIAS COPY 👉 ${chatuser} | 15 \n"
+ bot_retor+=" PARA 30 DIAS COPY 👉 ${chatuser} | 30 \n"
+ bot_retor+=" PARA 60 DIAS COPY 👉 ${chatuser} | 60 \n"
+ bot_retor+=" PARA 90 DIAS COPY 👉 ${chatuser} | 90 \n"
+ bot_retor+=" PARA 180 DIAS COPY 👉 ${chatuser} | 179 \n"
+ bot_retor+=" PARA 1 AÑO COPY 👉 ${chatuser} | 364 \n"
+ bot_retor+=" CUSTOM COPY 👉 ♨️ ${chatuser} | dias ♨️\n"
+ bot_retor+="$LINE\n"
+ bot_retor+=" VERIFIQUE SU TOKEN DE PAGO ANTES DE LA AUTORIZACION\n"
+ bot_retor+="$LINE\n"
+ msj_add "$(cat < ${CIDdir}/Admin-ID)"
+ bot_retorno="$LINE\n"
+ bot_retorno+=" 🔰 𝚂𝚞 𝙸𝙳 【 ${chatuser} 】 🔰\n"
+ bot_retorno+="$LINE\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ AÑADA UN ALIAS PARA PODER SOLICITAR ⚠️\n" || bot_retorno+="UD SOLICITO AUTORIZACION A $(cat < /etc/ADM-db/resell)\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" IMPOSIBLE VERIFICAR ID SIN ALIAS\n REMARCA SU ${n_soli} SOLITUD INVALIDA \n" || bot_retorno+=" ESTA ES SU ${n_soli} SOLICITUD MEDIANTE ID DE REGISTRO\n"
+ bot_retorno+="$LINE\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ⚠ ID ENVIADO CON ADVERTENCIA (POSIBLE BANEO DE ID) ⚠️\n" || bot_retorno+=" ✅ ID ENVIADO EXITOSAMENTE ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ENVIE SU COMPROBANDO O CORREO DE PAGO PARA SU AUTORIZACION\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ unset bot_retorno
+ } || {
+ bot_retorno="$LINE\n"
+ bot_retorno+=" 🔰 𝚂𝚞 𝙸𝙳 【 ${chatuser} 】 🔰\n"
+ bot_retorno+="$LINE\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ USUARIO SIN ALIAS ⚠️\n" || bot_retorno+=" ALIAS: @${nUSER} CON ID : ${chatuser}\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" ⚠️ AÑADA UN ALIAS PARA PODER SOLICITAR ⚠️\n" || bot_retorno+=" UD ENVIO ${n_soli} SOLICITUDES A $(cat < /etc/ADM-db/resell)\n"
+ [[ -z ${nUSER} ]] && bot_retorno+=" IMPOSIBLE VERIFICAR ID SIN ALIAS\n REMARCA SU ${n_soli} SOLITUD INVALIDA \n" || bot_retorno+=" SU PETICION FUE RECHAZADA POR EXCESO DE PETICIONES\n"
+ bot_retorno+=" 🚫🚫️ SU ID FUE BANEADO 🚫🚫 \n"
+ bot_retorno+="$LINE\n"
+ echo "${chatuser}" >> /root/RegBOT/banID
+ bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+ bot_retorno+="$LINE\n"
+ 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 $(cat /etc/ADM-db/Admin-ID|grep "${chatuser}" ) ]] && { #ENTRA A VERIFICAR ADM
+bot_retorno=" $LINE\n"
+bot_retorno+=" HOLA @${nUSER} UD ES ADM \n"
+bot_retorno+="$LINE\n"
+bot_retorno+=" DIJITA MENU /menu 🔰\n"
+bot_retorno+="\n"
+bot_retorno+="$LINE\n"
+bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+bot_retorno+="$LINE\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 5s
+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="$LINE\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+="$LINE\n"
+ bot_retorno+="𝚂𝚞 𝙸𝙳 【 ${chatuser} 】\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="👇PINCHA 👇 EN EL BOTON PARA QUE $(cat < /etc/ADM-db/resell) TE AUTORICE!!\n"
+ bot_retorno+="$LINE\n"
+ menu_printSN
+ sleep 5s
+ msj_del ${message_message_id}
+ msj_del ${MSG_id}
+ } || { # ENTRA A IDS YA REGISTRADOS
+ bot_retorno=" $LINE\n"
+ bot_retorno+=" HOLA @${nUSER} SU ID ESTA REGISTRADO \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" 🆔 : ${chatuser} 🔰\n"
+ bot_retorno+=" FECHA DE CORTE : ⏳ $(cat /etc/ADM-db/User-ID | grep ${chatuser}| awk '{print $3}') | $(date +%R)\n"
+ bot_retorno+="\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ }
+ } # FIN VERIFICAR ADM
+}
+
+killIP_reply () {
+
+if sed -i "/${message_text[$id]}/d" /var/www/html/ChumoGH/checkIP.log; then
+bot_retorno="$LINE\n"
+bot_retorno+=" IP ELIMINADA DE REGISTRO EXITOSAMENTE!\n"
+bot_retorno+=" IP : ${message_text[$id]} \n"
+bot_retorno+="$LINE\n"
+else
+bot_retorno="$LINE\n"
+bot_retorno+=" ERROR AL ELIMINAR IP DE REGISTROS \n"
+bot_retorno+=" POSIBLEMENTE ${message_text[$id]} NO EXISTA \n"
+bot_retorno+="$LINE\n"
+fi
+msj_fun
+}
+
+deleteID_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" ${CID}
+bot_retorno="$LINE\n"
+ bot_retorno+=" ID ELIMINADO EXITOSAMENTE!\n"
+ bot_retorno+=" ID Eliminado: ${ids}\n"
+ bot_retorno+="$LINE\n"
+
+ bot_retor=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 Nuevamente 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 ⠀◍ ᴅᴏɴᴘᴀᴛᴏʙᴏᴛ ◍ 🎊\n"
+ #bot_retor+="𝙃𝙤𝙡𝙖 『 $message_from_first_name $message_from_last_name 』\n"
+ bot_retor+="Desafortunadamente tu Membresia ha Finalizado\n"
+ #bot_retor+=" ⌚⌚ Hora Actual del Bot : ⌚⌚\n"
+ bot_retor+="Fecha de Corte : $(date '+%C%y-%m-%d') - $(date +%R) \n"
+ bot_retor+="Si tienes Dudas, Contacta con $(cat < /etc/ADM-db/resell)\n"
+ bot_retor+="$LINE\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+="$LINE\n"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+}
+
+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+="$LINE\n"
+ bot_retorno+=" FILE ${return[file_path]} \n"
+ bot_retorno+="$LINE"
+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+="$LINE\n"
+ bot_retorno+=" ID UNICO FILE PHOTO : ${message_photo_file_unique_id}\n"
+ bot_retorno+=" CAPTION : ${message_caption}\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ #upfile_src
+ msj_img "${ID_img}"
+}
+
+searchID_reply () {
+searchID=$(cat -n /etc/ADM-db/User-ID | grep "${message_text[$id]}")
+bot_retorno="$LINE\n"
+ bot_retorno+=" MOSTRANDO RESULTADOS DE BUSQUEDA!\n"
+ bot_retorno+=" $LINE\n"
+ [[ ! -z ${searchID} ]] && bot_retorno+=" N°${searchID} \n" || bot_retorno+=" ID NO ENCONTRADO \n"
+ msj_fun
+}
+
+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=" ✉️ REGISTRO ACEPTADO ✉️ \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}|$(date +%R)\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ✅ ID REGISTRADO EXITOSAMENTE ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+unset i
+for i in $(cat /etc/ADM-db/User-ID | awk '{print $3}'); do
+[[ "$(date -d $(date '+%C%y-%m-%d') +%s)" -ge "$(date -d $i +%s)" ]] && {
+for id in $(cat /etc/ADM-db/User-ID | grep "$i" | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do
+sed -i "/${id}/d" /etc/ADM-db/User-ID
+ 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 $(cat < /etc/ADM-db/resell)\n"
+ bot_retor+=" $LINE\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+=" $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}"
+TOKEN="$(cat ${CIDdir}/token)"
+URL="https://api.telegram.org/bot$TOKEN/getChatMember"
+usernAme=$(curl -s -X POST $URL -d chat_id="${ids}" -d user_id="${ids}" | jq -r .result.user.username)
+ bot_retor=" ✉️ ESTIMADO @${usernAme} SU REGISTRO FUE APROBADO ✉️ \n"
+ bot_retor+=" $LINE\n"
+ bot_retor+=" EL ADM $(cat < /etc/ADM-db/resell) 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+=" $LINE\n"
+ bot_retor+=" GENERAR Key's usar el comando /keygen\n"
+ bot_retor+=" Para MENU Digita el comando /menu\n"
+ bot_retor+=" $LINE\n"
+ bot_retor+=" CONTACTA ESCRIBE AL ADM $(cat < /etc/ADM-db/resell)\n SI NO OBTIENES RESPUESTA O SOLUCION CONTACTA A @drowkid01 "
+ 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+=" $LINE\n"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+ } || {
+ bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+="Este ID ya esta Registrado\n"
+ bot_retorno+=" ❌ ID NO REGISTRADO ❌\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ }
+}
+
+addID_reventa () {
+unset bot_retorno
+bot_retorno=" -----🫥 FUNCION EN ESTADO BETA 🫥 ------\n"
+bot_retorno+=" $LINE\n"
+bot_retorno+=" ID ${ids} VALIDO HASTA $(cat /etc/ADM-db/User-ID | 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+="$LINE\n"
+bot_retorno+=" EL ADMIN PRINCIPAL, PODRA CONTROLAR \n"
+bot_retorno+=" ESTAS AUTORIZACIONES \n"
+bot_retorno+="$LINE\n"
+bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+bot_retorno+="$LINE\n"
+msj_fun
+}
+
+
+addID_REV () {
+unset bot_retorno
+ 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 ${CIDdir}/rv-id.log|grep "$ids" ) = "" ]] && {
+ echo "/${ids} | $valid" >> ${CIDdir}/rv-id.log
+ bot_retorno=" 🎊 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 @${callback_query_from_username} 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 ⠀◍ ᴅᴏɴᴘᴀᴛᴏʙᴏᴛ ◍ 🎊\n"
+ bot_retorno+="$LINE\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+="$LINE"
+ bot_retorno+=" ✅ ID REGISTRADO ✅\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+unset i
+for i in $(cat /etc/ADM-db/User-ID | awk '{print $3}'); do
+[[ $(date -d $i +%s) -ge $(date -d $(date '+%C%y-%m-%d') +%s) ]] || {
+idlog=$(cat /etc/ADM-db/User-ID | grep "$i" | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig')
+sed -i "/${idlog}/d" /etc/ADM-db/User-ID
+ 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 $(cat < /etc/ADM-db/resell)\n"
+ bot_retor+="$LINE\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+="$LINE\n"
+msj_add ${idlog}
+}
+done
+ bot_retor=" ✉️ 𝙱𝚒𝚎𝚗𝚟𝚎𝚗𝚒𝚍𝚘 Nuevamente 𝚊𝚕 𝙱𝚘𝚝𝙶𝚎𝚗 ⠀◍ ᴅᴏɴᴘᴀᴛᴏʙᴏᴛ ◍ ✉️ \n"
+ bot_retor+="𝙃𝙤𝙡𝙖 『 ${callback_query_from_first_name} ${callback_query_from_last_name} 』\n"
+ bot_retor+=" EL ADM $(cat < /etc/ADM-db/resell) 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+=" $LINE\n"
+ bot_retor+=" CONTACTA ESCRIBE AL ADM $(cat < /etc/ADM-db/resell)\n SI NO OBTIENES RESPUESTA O SOLUCION CONTACTA A @drowkid01 "
+ 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+="$LINE\n"
+ msj_fun
+ msj_add ${ids}
+ upfile_src
+ } || {
+ bot_retorno=" -----🫥 ID YA REGISTRADO 🫥 ------\n"
+ bot_retorno+=" $LINE\n"
+ bot_retorno+=" ID ${ids} VALIDO HASTA $(cat /etc/ADM-db/User-ID | grep ${ids} | awk '{print $3}')\n"
+ bot_retorno+=" ❌ NO REGISTRAR DUPLICADOS ❌\n"
+ bot_retorno+="$LINE\n"
+ bot_retorno+=" ⚜ Power by @drowkid01 ⚜\n"
+ bot_retorno+="$LINE\n"
+ msj_fun
+ }
+}
+#==> termina id
+#==> inicia invalido
+
+invalido_src () {
+bot_retorno="$line\n"
+ bot_retorno+="Comando LENIN MORENO ( INVALIDO XD! )\n"
+ bot_retorno+="$line\n"
+}
+#==> termina invalido
+#==> inicia link
+
+link_src(){
+link=( [0]="https://raw.githubusercontent.com/drowkid01/scriptcgh/main/setup" [1]="https://raw.githubusercontent.com/kelokepe/scriptcgh/main/setup" [2]="https://raw.githubusercontent.com/ModVPS/ScriptCGH/main/setup" )
+#bot_retorno="$line\n ⚡ instaladores⚡\n$line\n"
+for((i=0;i<3;i++));do
+ bot_retorno+="INSTALADOR $i\n: "
+ bot_retorno+="wget ${link[$i]};chmod +x setup;./setup --ADMcgh\n"
+ bot_retorno+="\n\n"
+done
+bot_retorno+="$line\n"
+msj_fun
+#msj_fun
+}
+#==> termina link
+#==> inicia listID
+# -*- ENCODING: UTF-8 -*-
+
+
+listID_GEN () {
+unset bot_lin
+n=1
+for i in $(cat /etc/ADM-db/User-ID | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do
+idlog=$(cat /etc/ADM-db/User-ID | grep "$i" | awk '{print $3}')
+#idGEN=$(grep -o -i $idlog /etc/ADM-db/num-key.cont | wc -l)
+[[ -e /etc/ADM-db/num-key.cont ]] && idGEN=$(cat /etc/ADM-db/num-key.cont | grep $i | wc -l) || idGEN=0
+bot_lin+=" $n] > ${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"
+msj_fun
+}
+
+listID_src () {
+lsid=$(cat -n ${CID})
+local bot_retorno=" $line\n"
+ bot_retorno+=" - ID'S AUTORIZADOS -\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="${lsid}\n"
+ bot_retorno+="$line\n"
+msj_fun
+}
+
+ChatADM () {
+local bot_retorno=" $line\n"
+ bot_retorno+=" ENVIA TU ARCHIVO O COMPROBANTE AL ADM\n"
+ bot_retorno+=" MODELO EN EVOLUCCION DE @drowkid01\n"
+ bot_retorno+="\n"
+ bot_retorno+="$line\n"
+msj_fun
+}
+
+
+
+list_IP () {
+unset lsid
+unset idchek
+[[ -z ${idchek} ]] && idchek="${message_from_id}"
+[[ -z ${idchek} ]] && idchek="${callback_query_from_id}"
+[[ -z "$(cat /etc/ADM-db/User-ID | grep ${idchek} )" ]] && {
+ [[ "$(cat /etc/ADM-db/Admin-ID)" == "${idchek}" ]] && {
+ cat /var/www/html/ChumoGH/checkIP.log > /tmp/ips
+ echo -e " $(cat /tmp/ips | awk '{print $3}' | uniq)" > /tmp/ipchek
+ lsid=$(cat -n /tmp/ipchek)
+ local bot_retorno=" $line\n"
+ bot_retorno+=' - ULTIMOS IP´S UNICOS CAPTURADOS \n'
+ bot_retorno+=" - TIENES $(cat /var/www/html/ChumoGH/checkIP.log | wc -l) IP´s CAPTURADAS \n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" ${lsid}\n"
+ bot_retorno+="$line\n"
+ }
+
+} || {
+cat /var/www/html/ChumoGH/checkIP.log | grep "${idchek}" > /tmp/ips
+echo -e " $(cat /tmp/ips | awk '{print $3}' | uniq)" > /tmp/ipchek
+lsid=$(cat -n /tmp/ipchek)
+local bot_retorno=" $line\n"
+ bot_retorno+=' - ULTIMOS IP´S UNICOS CAPTURADOS \n'
+ bot_retorno+=" - TIENES $(cat /var/www/html/ChumoGH/checkIP.log | grep ${idchek} | wc -l) IP´s CAPTURADAS DE TUS GENERADAS \n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" ${lsid}\n"
+ bot_retorno+="$line\n"
+}
+msj_fun
+}
+
+
+listID_RESS () {
+i=1
+for lRES in $(ls ${CIDRESS}); do
+echo " $i /$lRES"
+let i++
+done
+lsid=$(ls ${CIDRESS})
+local bot_retorno="$line\n"
+ bot_retorno+="Lista de id permitidos\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="${lsid}\n"
+ bot_retorno+="$line\n"
+msj_fun
+}
+#==> termina listID
+#==> inicia menu
+unset checkPID_GEN
+checkPID_GEN=$(ps x|grep -v grep|grep "8888")
+[[ ! $checkPID_GEN ]] && PID_GEN='(💔) OFF' || PID_GEN='(💚) ON'
+[[ -e /etc/systemd/system/btkill.service ]] && kkid="✅" || kkid="❌"
+
+menu_src () {
+#namcli=$(bash /etc/ADM-db/BotGen.sh | grep message_from_first_name | grep message_from_first_name | grep -i message_from_first_name | awk {'print $4'})
+#${message_text[$usuario]} $message_from_first_name $message_from_last_name
+[[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username}
+datauser
+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")" ]] && {
+ bot_retorno+=" HOLA @${nUSER} SU ID NO ESTA VERIFICADO ):\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/ID ► MUESTRA TU ID PERSONAL 📍\n"
+ bot_retorno+="/menu | MENU DE COMANDOS\n"
+ bot_retorno+="/ayuda | INSTRUCCIONES DE COMANDOS\n"
+ bot_retorno+="/price | PRECIOS DE ACCESO MEMBRESIAS\n"
+ bot_retorno+="/chekid | VERIFICAR ID LUEGO DE PAGO\n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" ADQUIERE UNA MEMBRESÍA CON EL ADMIN\n"
+ bot_retorno+="$line\n"
+ menu_printSN
+ # } || {
+ # bot_retorno+="$line\n"
+ # bot_retorno+=" 🚫🚫️ SU ID FUE BANEADO 🚫🚫 \n"
+ # bot_retorno+="$line\n"
+ # menu_printSN
+ # }
+ #msj_fun
+ else
+ [[ -e /etc/menu_ito ]] && nomkey="$(cat /etc/menu_ito)" || nomkey="$(curl -sSL "https://www.dropbox.com/s/z38hj1mz3q9krso/menu_credito")"
+ numkey_used=$(grep -o -i $message_chat_id /etc/gerar-sh-log | wc -l)
+ numkey_gen=$(grep -o -i $message_chat_id /etc/ADM-db/num-key.cont | wc -l)
+ 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))
+ bot_retorno+="⚡ 𝘼𝘾𝘾𝙀𝙎𝙊 𝙄𝙇𝙄𝙈𝙄𝙏𝘼𝘿𝙊 𝙋𝙊𝙍: 『 $dias_use 』 𝘿𝙄𝘼𝙎 ⚡ \n"
+ bot_retorno+="⏳ 𝙁𝙀𝘾𝙃𝘼 𝘿𝙀 𝘾𝙊𝙍𝙏𝙀: $data_user | $(date +%R) ⏳\n"
+ [[ -z $checkPID_GEN ]] && bot_retorno+=" ⚠️ ADVERTENCIA!! BotGen ⚠️\n" || 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+="$line\n"
+ bot_retorno+="🚀 𝙍𝙀𝙎𝙀𝙇𝙇𝙀𝙍: ${name} \n"
+ bot_retorno+="$line\n"
+ bot_retorno+=" /menu => menú principal\n"
+ bot_retorno+=" /chukk => generar key\n"
+ bot_retorno+=" /help => ayuda\n"
+ bot_retorno+=" /id => muestra tu id\n$line\n"
+ bot_retorno+=" 🔐 『 $numkey_used 』𝙆𝙚𝙮𝙨 𝙐𝙨𝙖𝙙𝙖𝙨 \n🔑『 $numkey_gen 』𝙆𝙚𝙮𝙨 𝙂𝙚𝙣𝙚𝙧𝙖𝙙𝙖𝙨 🗝️ \n"
+ bot_retorno+="$line\n"
+ menu_print 'botao_user'
+ fi
+ else
+ unset usadas
+ usadas="$(cat /etc/http-instas)"
+ [[ ! $usadas ]] && k_used="0" || k_used="$usadas"
+ bot_retorno+="Gen $PID_GEN | Keys Used [$k_used]\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="/infosys ➩ INFORMACION DEL VPS \n"
+ bot_retorno+="/killid ➩ LIMITADOR DE CADUCIDAD ${kkid}\n"
+ bot_retorno+="/idgen ➩ LISTA DE ID + GENERADAS\n"
+ bot_retorno+="/chat ➩ CHATEAR CON EL BOT\n"
+ bot_retorno+="/buscar ➩ BUSCAR ID AUTORIZADO\n"
+ bot_retorno+="/instal ➩ INSTALADOR OFICIAL \n"
+ bot_retorno+="/hack ➩ HACKEAR LA NASA :v \n"
+ bot_retorno+="/addrev ➩ AGREGAR REVENDEDOR \n"
+ bot_retorno+="/ayuda ➩ INSTRUCCIONES DE COMANDOS \n"
+ bot_retorno+="/cache ➩ OPTIMIZA SERVIDOR \n"
+ bot_retorno+="/update ➩ ACTUALIZA FILES BotGen \n"
+ bot_retorno+="/reboot ➩ REINICIA SERVIDOR VPS \n"
+ bot_retorno+="/price ➩ PRECIOS DE ACCESO MEMBRESIAS\n"
+ bot_retorno+="/donar ➩ ACTIVA O DESACTIVA EL MENSAJE DONATIVO \n"
+ bot_retorno+="$line\n"
+ menu_print 'botao_conf'
+ fi
+}
+#==> termina menu
+#==> inicia myip
+
+meu_ip_fun () {
+MIP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
+MIP2=$(wget -qO- ipv4.icanhazip.com)
+[[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP"
+}
+
+meu_ip () {
+MIP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
+MIP2=$(wget -qO- ipv4.icanhazip.com)
+[[ "$MIP" != "$MIP2" ]] && echo "$MIP2" || echo "$MIP"
+}
+#==> termina myip
+#==> inicia power
+
+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}
+}
+
+files_script() {
+MSG_id=$((${message_message_id} + 1 ))
+local bot_retorno=" ✉️ ====NOTIFICACION==== ✉️ \n"
+bot_retorno+="$line\n"
+wget -q -O $HOME/lista https://www.dropbox.com/s/yqhjmr7o3342viv/lista?dl=0 -o /dev/null
+rm -f /etc/SCRIPT/*
+cd /etc/SCRIPT
+wget --no-check-certificate -i $HOME/lista -o || echo " error!"
+rm -f $HOME/lista*
+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 5s
+msj_del ${message_message_id}
+msj_del ${MSG_id}
+}
+#==> termina power
+#==> inicia reinicio
+
+reboot_src () {
+bot_retorno="$line\n"
+ bot_retorno+="Reiniciando servidor VPS\n"
+ bot_retorno+="$line\n"
+msj_fun
+sleep 2
+sudo reboot
+}
+#==> termina reinicio
+#==> inicia status
+
+infosys_src () {
+
+#HORA Y FECHA
+unset _hora
+unset _fecha
+_hora=$(printf '%(%H:%M:%S)T')
+_fecha=$(printf '%(%D)T')
+
+#PROCESSADOR
+unset _core
+unset _usop
+_core=$(printf '%-1s' "$(grep -c cpu[0-9] /proc/stat)")
+_usop=$(printf '%-1s' "$(top -bn1 | awk '/Cpu/ { cpu = "" 100 - $8 "%" }; END { print cpu }')")
+
+#MEMORIA RAM
+unset ram1
+unset ram2
+unset ram3
+ram1=$(free -h | grep -i mem | awk {'print $2'})
+ram2=$(free -h | grep -i mem | awk {'print $4'})
+ram3=$(free -h | grep -i mem | awk {'print $3'})
+
+unset _ram
+unset _usor
+_ram=$(printf ' %-9s' "$(free -h | grep -i mem | awk {'print $2'})")
+_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
+
+unset os_sys
+os_sys=$(echo $(cat -n /etc/issue |grep 1 |cut -d' ' -f6,7,8 |sed 's/1//' |sed 's/ //')) && echo $system|awk '{print $1, $2}'
+
+bot_retorno="$line\n"
+ bot_retorno+="S.O: $os_sys\n"
+ bot_retorno+="Su IP es: $(meu_ip)\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="Ram: $ram1 || En Uso: $_usor\n"
+ bot_retorno+="USADA: $ram3 || LIBRE: $ram2\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="CPU: $_core || En Uso: $_usop\n"
+ bot_retorno+="$line\n"
+ bot_retorno+="FECHA: $_fecha\n"
+ bot_retorno+="HORA: $_hora\n"
+ bot_retorno+="$line\n"
+msj_fun
+}
+#==> termina status
+#==> inicia update
+
+dupdate2 (){
+rm -rf /etc/ADM-db/*
+rm -rf /etc/SCRIPT/*
+}
+
+update () {
+#[[ -e /etc/nivbot ]] || echo "0" > /etc/nivbot
+#[[ -d /etc/ADM-db ]] && chmod +x /etc/ADM-db/*
+#echo -ne "\033[1;31m[ ! ] RESPALDANDO USUARIO ADMINISTRADOR "
+#(
+#[[ -e /etc/ADM-db/sources/costes ]] && mv /etc/ADM-db/sources/costes $HOME/costes
+#[[ -e /etc/ADM-db/token ]] && mv /etc/ADM-db/token $HOME/token
+#[[ -e /etc/ADM-db/Admin-ID ]] && mv /etc/ADM-db/Admin-ID $HOME/Admin-ID
+#[[ -e /etc/ADM-db/User-ID ]] && mv /etc/ADM-db/User-ID $HOME/User-ID
+#[[ -e /etc/ADM-db/limit ]] && mv /etc/ADM-db/limit $HOME/limit
+#[[ -e /etc/ADM-db/resell ]] && mv /etc/ADM-db/resell $HOME/resell
+#[[ -e /etc/ADM-db/ress ]] && mv /etc/ADM-db/ress $HOME/ress
+#[[ -e /etc/ADM-db/num-key.cont ]] && mv /etc/ADM-db/num-key.cont $HOME/num-key.cont
+#) && echo -e "\033[1;32m [OK]" || echo -e "\033[1;31m [FAIL]"
+#rm -rf /etc/ADM-db
+#CIDdir=/etc/ADM-db && [[ ! -d ${CIDdir} ]] && mkdir ${CIDdir}
+#[[ ! -e "${CIDdir}/confbot.sh" ]] && wget --no-check-certificate -O ${CIDdir}/confbot.sh https://www.dropbox.com/s/9q5o523m1ns8vkd/confbot-t.sh &> /dev/null && chmod +x ${CIDdir}/confbot.sh
+#sed -i -e 's/\r$//' ${CIDdir}/confbot.sh
+#echo $id > /etc/ADM-db/idioma_menuinst
+#source ${CIDdir}/confbot.sh
+#bot_conf
+files_script
+}
+#==> termina update
+
+