@drowkid1

This commit is contained in:
@drowkid01 2025-05-26 20:47:17 -06:00
parent 1d65e10e31
commit 4afa167ba2
2 changed files with 63 additions and 10 deletions

BIN
.instaladorBot.sh.swp Normal file

Binary file not shown.

71
init.sh
View File

@ -222,6 +222,8 @@ unset -v sdir
sdir[0]='/etc/adm-db' sdir[0]='/etc/adm-db'
sdir[1]='/usr/local/lib/exec-dk' sdir[1]='/usr/local/lib/exec-dk'
sdir[2]='/etc/scripts' sdir[2]='/etc/scripts'
urL='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main'
ip=$(wget -qO- ipv4.icanhazip.com) ip=$(wget -qO- ipv4.icanhazip.com)
[[ ! -d ${sdir[@]} ]] && mkdir -p ${sdir[@]} [[ ! -d ${sdir[@]} ]] && mkdir -p ${sdir[@]}
echo $ip > /usr/local/lib/exec-dk/ipdk 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 done
if apt install $i -y &>/dev/null ; then if apt install $i -y &>/dev/null ; then
echo -ne "\e[1;30m] \e[1;32m instalado\n" 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 else
echo -ne "\e[1;30m]\e[1;31m no instalado\n" echo -ne "\e[1;30m]\e[1;31m no instalado\n"
sleep 0.1s sleep 0.1s
@ -299,7 +305,8 @@ esac
download(){ download(){
case $1 in case $1 in
-s | --script) -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 ]] && { [[ ! -e /etc/scripts/scripts.json ]] && {
[[ ! -d /etc/scripts ]] && mkdir -p /etc/scripts || rm -rf /etc/scripts&&mkdir -p /etc/scripts [[ ! -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") 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') name=('scriptdk1' 'vpsmx' 'latam')
echo -e "{\n}" > /etc/init.json 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 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 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 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 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 cd /etc/scripts/scriptdk1&&wget ${url[2]} >/dev/null 2>&1
tar xpf chukk.tar&&rm chukk.tar tar xpf chukk.tar&&rm chukk.tar
cd ~/ cd ~/
@ -362,9 +371,16 @@ case $1 in
echo $data > ${sdir[0]}/data echo $data > ${sdir[0]}/data
enter enter
} }
url=("https://www.dropbox.com/s/25xxz39l16wql29/BotGen.sh" "https://gitlab.com/xdanx90/Premium/-/raw/main/install/http-server.sh") #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 ${sdir[0]}/BotGen.sh ${url[0]} >/dev/null 2>&1
wget -O /bin/http-server.sh ${url[1]} >/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 #echo "${sdir[0]}/BotGen.sh /bin/http-server.sh"|xargs ch mod +rwx
chmod +rwx ${sdir[0]}/BotGen.sh /bin/http-server.sh chmod +rwx ${sdir[0]}/BotGen.sh /bin/http-server.sh
[[ ! -e /etc/systemd/system/BotGen.service ]] && { [[ ! -e /etc/systemd/system/BotGen.service ]] && {
@ -402,12 +418,13 @@ esac
if [[ $1 == @('-i'|'--install') ]]; then if [[ $1 == @('-i'|'--install') ]]; then
packages -i packages -i
download --script download --script
download -b download --botgen
elif [[ $1 == @('-m'|'--menu') ]]; then elif [[ $1 == @('-m'|'--menu') ]]; then
clear&&clear clear&&clear
figlet 'BOTGEN'|lolcat 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" 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 msg -b
unset pb pB ph pH
[[ $(systemctl status BotGen) == 'inactive' ]] && { [[ $(systemctl status BotGen) == 'inactive' ]] && {
pb="\e[1;31m[OFF]"&&pB="\e[1;32mACTIVAR/INICIAR BOTGEN" pb="\e[1;31m[OFF]"&&pB="\e[1;32mACTIVAR/INICIAR BOTGEN"
} || { pb="\e[1;32m[ON] "&&pB="\e[1;31mAPAGAR 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;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]" 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 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 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) 6)
if systemctl status BotGen|grep -w 'active' >/dev/null 2>&1; then if systemctl status BotGen|grep -w 'active' >/dev/null 2>&1; then
msg -r 'BOTGEN APAGADO CORRECTAMENTE' msg -r 'BOTGEN APAGADO CORRECTAMENTE'