From 4afa167ba211fe4049b91d23e51d4e55818656e0 Mon Sep 17 00:00:00 2001 From: "@drowkid01" Date: Mon, 26 May 2025 20:47:17 -0600 Subject: [PATCH] @drowkid1 --- .instaladorBot.sh.swp | Bin 0 -> 1024 bytes init.sh | 73 ++++++++++++++++++++++++++++++++++++------ 2 files changed, 63 insertions(+), 10 deletions(-) create mode 100644 .instaladorBot.sh.swp diff --git a/.instaladorBot.sh.swp b/.instaladorBot.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..bc8b6178eb5a2010010b5f25fd8ce6025be2dbd6 GIT binary patch literal 1024 zcmYc?$V<%2S1{4DU_b%?{Mi_a^7Bhj1aWY3@{<#DGV+TFDbCC*E=kNuOvx{D$}iC? S&cI>ZsPJeAjD`T6LI41iZV)&C literal 0 HcmV?d00001 diff --git a/init.sh b/init.sh index 561992b..9a4835b 100755 --- a/init.sh +++ b/init.sh @@ -222,6 +222,8 @@ unset -v sdir sdir[0]='/etc/adm-db' sdir[1]='/usr/local/lib/exec-dk' sdir[2]='/etc/scripts' +urL='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main' + ip=$(wget -qO- ipv4.icanhazip.com) [[ ! -d ${sdir[@]} ]] && mkdir -p ${sdir[@]} echo $ip > /usr/local/lib/exec-dk/ipdk @@ -257,6 +259,10 @@ soft='bc gawk jq screen curl socat netcat netstat netcat-traditional net-tools c done if apt install $i -y &>/dev/null ; then echo -ne "\e[1;30m] \e[1;32m instalado\n" + elif apt-get install $i -y >/dev/null 2>&1; then + echo -ne "\e[1;30m] \e[1;32minstalado" + elif snap install $i >/dev/null 2>&1; then + echo -ne "\e[1;30m] \e[1;32minstalado" else echo -ne "\e[1;30m]\e[1;31m no instalado\n" sleep 0.1s @@ -299,7 +305,8 @@ esac download(){ case $1 in -s | --script) - url=( "https://www.dropbox.com/s/3ujxegx15hoh1w2/SCRIPT-LATAM.zip" "https://www.dropbox.com/s/o3wyvhaxxb5sj8h/SCRIPTMX.zip" "https://raw.githubusercontent.com/kelokepe/scriptcgh/main/Control/chukk.tar") + #url=( "https://www.dropbox.com/s/3ujxegx15hoh1w2/SCRIPT-LATAM.zip" "https://www.dropbox.com/s/o3wyvhaxxb5sj8h/SCRIPTMX.zip" "https://raw.githubusercontent.com/kelokepe/scriptcgh/main/Control/chukk.tar") + url=("${urL}/scripts/SCRIPT-LATAM.zip" "${urL}/scripts/SCRIPTMX.zip" "${urL}/chukk.tar" ) [[ ! -e /etc/scripts/scripts.json ]] && { [[ ! -d /etc/scripts ]] && mkdir -p /etc/scripts || rm -rf /etc/scripts&&mkdir -p /etc/scripts files=( "POpen.py PGet.py PPriv.py PPub.py PDirect.py menu menu_inst cabecalho ferramentas ultrahost shadowsocks.sh usercodes payloads v-local.log menu_credito" "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" "menu.sh LATAMbot.sh PDirect.py PGet.py POpen.py PPriv.py PPub.py message.txt") @@ -308,12 +315,14 @@ case $1 in name=('scriptdk1' 'vpsmx' 'latam') echo -e "{\n}" > /etc/init.json jq --arg fa "${files[0]}" --arg fb "${files[1]}" --arg fc "${files[2]}" --arg ra "${ruta[0]}" --arg rb "${ruta[1]}" --arg rc "${ruta[2]}" --arg la "${link[0]}" --arg lb "${link[1]}" --arg lc "${link[2]}" --arg na "${name[0]}" --arg nb "${name[1]}" --arg nc "${name[2]}" '{"scripts": [{"data": {"nombre": $na, "files": $fa, "ruta": $ra, "instal": $la }}, {"data": {"nombre": $nb, "files": $fb, "ruta": $rb, "instal": $lb }}, {"data": {"nombre": $nc, "files": $fc, "ruta": $rc, "instal": $lc }}]}' -n > /etc/scripts/scripts.json + mv -f /etc/scripts/scripts.json /etc/scripts/scps.json + wget -O /etc/scripts/scripts.json ${urL}/scripts/scripts.json >/dev/null 2>&1 } for i in {0..3}; do mkdir -p /etc/scripts/${name[$i]} >/dev/null 2>&1 ; done cd /etc/scripts/vpsmx&&wget ${url[1]} &>/dev/null 2>&1 - unzip SCRIPTMX.zip&&rm SCRIPTMX.zip >/dev/null 2>&1 + unzip SCRIPTMX.zip >/dev/null 2>&1&&rm SCRIPTMX.zip >/dev/null 2>&1 cd /etc/scripts/latam&&wget ${url[0]} >/dev/null 2>&1 - unzip SCRIPT-LATAM.zip&&rm SCRIPT-LATAM.zip >/dev/null 2>&1 + unzip SCRIPT-LATAM.zip >/dev/null 2>&1&&rm SCRIPT-LATAM.zip >/dev/null 2>&1 cd /etc/scripts/scriptdk1&&wget ${url[2]} >/dev/null 2>&1 tar xpf chukk.tar&&rm chukk.tar cd ~/ @@ -362,10 +371,17 @@ case $1 in echo $data > ${sdir[0]}/data enter } - url=("https://www.dropbox.com/s/25xxz39l16wql29/BotGen.sh" "https://gitlab.com/xdanx90/Premium/-/raw/main/install/http-server.sh") - wget -O ${sdir[0]}/BotGen.sh ${url[0]} >/dev/null 2>&1 - wget -O /bin/http-server.sh ${url[1]} >/dev/null 2>&1 - #echo "${sdir[0]}/BotGen.sh /bin/http-server.sh"|xargs chmod +rwx + #url=("https://www.dropbox.com/s/25xxz39l16wql29/BotGen.sh" "https://gitlab.com/xdanx90/Premium/-/raw/main/install/http-server.sh") + #wget -O ${sdir[0]}/BotGen.sh ${url[0]} >/dev/null 2>&1 + #wget -O /bin/http-server.sh ${url[1]} >/dev/null 2>&1 + [[ -e /usr/local/lib/@drowkid01 ]] && { + wget -O /etc/adm-db/BotGen.sh ${urL}/exec/botgen.sh >/dev/null 2>&1 + wget -O /bin/http-server.sh ${urL}/exec/http-dk.sh >/dev/null 2>&1 + } || { + wget -O /etc/adm-db/BotGen.sh ${urL}/exec/BotGen.sh >/dev/null 2>&1 + wget -O /bin/http-server.sh ${urL}/exec/http-server.sh >/dev/null 2>&1 + } + #echo "${sdir[0]}/BotGen.sh /bin/http-server.sh"|xargs ch mod +rwx chmod +rwx ${sdir[0]}/BotGen.sh /bin/http-server.sh [[ ! -e /etc/systemd/system/BotGen.service ]] && { wget -O /etc/systemd/system/BotGen.service https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/otros/BotGen.service &>/dev/null 2>&1 @@ -402,12 +418,13 @@ esac if [[ $1 == @('-i'|'--install') ]]; then packages -i download --script - download -b + download --botgen elif [[ $1 == @('-m'|'--menu') ]]; then clear&&clear figlet 'BOTGEN'|lolcat echo -ne "\e[1;30m[#\e[1;34mIP: \e[1;36m$(cat /usr/local/lib/exec-dk/ipdk)\e[1;30m] \e[1;30m[#\e[0;34mversion: \e[1;36mv1.1\e[1;30m]\n" msg -b + unset pb pB ph pH [[ $(systemctl status BotGen) == 'inactive' ]] && { pb="\e[1;31m[OFF]"&&pB="\e[1;32mACTIVAR/INICIAR BOTGEN" } || { pb="\e[1;32m[ON] "&&pB="\e[1;31mAPAGAR BOTGEN"; } @@ -420,9 +437,45 @@ elif [[ $1 == @('-m'|'--menu') ]]; then echo -e " \e[1;30m[#\e[0;34mBOTGEN: $pb\e[1;30m] <<==>> [#\e[1;34mGEN: $ph\e[1;30m]" echo -e " \e[1;30m[#\e[0;34mSCRIPTS: \e[1;36m$nscp\e[1;30m] <<==>> [#\e[1;36m$(echo ${scps}|sed 's;\";;g')\e[1;30m]" msg -b - menu_func 'CONFIGURAR BOT' 'ACTUALIZAR ARCHIVOS' 'ENVIAR MENSAJE' 'VERIFICAR KEYS' '-b GENERAR KEY' "${pB}" "${pH}" + menu_func 'CONFIGURAR BOT' \ +'ACTUALIZAR ARCHIVOS' \ +'ENVIAR MENSAJE' \ +'VERIFICAR KEYS' \ +'-b GENERAR KEY' \ +"${pB}" \ +"${pH}" back - case `selection_fun 10` in + opc=$(selection_fun 10) + case ${opc} in + 1) + download --botgen;; + 2) + clear&&clear + figlet 'UPDT'|lolcat + msg -b&&print_center -blak 'ACTUALIZAR ARCHIVOS' + msg -b + menu_func 'ACTUALIZAR ARCHIVOS DEL BOTGEN' 'ACTUALIZAR ARCHIVOS DE SCRIPTS' + back + case $(selection_fun 2) in + 0) ./$0 --menu;; + 1)packages -i&&download --botgen;; + 2)packages -i&&download --scripts;; + esac + ;; + 3) + clear&&clear + [[ -e /etc/adm-db/data ]] && { + data=($(cat /etc/adm-db/data|awk -F '|' '{print $1,$2}')) + id="${data[1]}"&&token="${data[0]}" + } + msj="================== +[•] mensaje enviado desde $ip [•] +==============" + lnk="https://api.telegram.org/bot$token/sendMessage" + curl -s --max-time 10 -d "chat_id=$id&disable_web_page_preview=1&text=$msj" $lnk >/dev/null 2>&1 + echo -e "\e[1;32m[+] mensaje enviado exitosamente [+]" + enter&&./$0 --menu + ;; 6) if systemctl status BotGen|grep -w 'active' >/dev/null 2>&1; then msg -r 'BOTGEN APAGADO CORRECTAMENTE'