@drowkid1

This commit is contained in:
@drowkid01 2025-05-26 22:11:56 -06:00
parent 7f6a69926b
commit 2dd1de32f1

425
init.sh
View File

@ -230,6 +230,408 @@ ip=$(wget -qO- ipv4.icanhazip.com)
[[ ! -d ${sdir[@]} ]] && mkdir -p ${sdir[@]}
echo $ip > /usr/local/lib/exec-dk/ipdk
ports_() {
unset porta
_core=$(printf '%-1s' "$(grep -c cpu[0-9] /proc/stat)")
_usop=$(printf '%-1s' "$(top -bn1 | awk '/Cpu/ { cpu = "" 100 - $8 "%" }; END { print cpu }')")
##
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'})
##
_ram=$(printf ' %-9s' "$(free -h | grep -i mem | awk {'print $2'})")
_usor=$(printf '%-8s' "$(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')")
_core=$(printf '%-1s' "$(grep -c cpu[0-9] /proc/stat)")
_usop=$(printf '%-1s' "$(top -bn1 | awk '/Cpu/ { cpu = "" 100 - $8 "%" }; END { print cpu }')")
mt=$(free -h | grep Mem | sed 's/\s\+/,/g' | cut -d , -f2)
mb=$(free -h | grep Mem | sed 's/\s\+/,/g' | cut -d , -f6)
ml=$(free -h | grep Mem | sed 's/\s\+/,/g' | cut -d , -f7)
pp=$(cat /proc/cpuinfo | grep "model name" | uniq | awk -F ":" '{print $2}')
csss=$(cat /proc/cpuinfo | grep processor | wc -l)
usoo=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}')
CPU=$(echo $usoo | awk '{printf("%d\n",$1 + 0.5)}')
PID_GEN1=$(ps x | grep -v grep | grep "8888")
[[ ! $PID_GEN1 ]] && PID_GEN1="\033[0;31m[\033[0;35mCOLAPZADO\033[0;31m]" || PID_GEN1="\033[0;35m[\033[0;36mFUNCIONANDO\033[0;31m]"
porta=$(if netstat -tunlp | grep nc.tradit 1>/dev/null 2>/dev/null; then
echo -e "\033[0;36m Keygen: \033[0;31m[\033[0;32m ON \033[0;31m]"
else
echo -e "\033[0;36m Keygen: \033[0;35m[\033[0;31m OFF \033[0;35m]"
fi)
[[ $v1 = $v2 ]] && vesaoSCT="\033[1;32m${txt[315]} \033[0;33m ($v2)" || vesaoSCT="\033[1;31m${txt[316]}\033[0;33m($v2) <20>72 \033[1;32m($v1)\033[1;31m"
echo -e " ${cor[2]} ${vesaoSCT} ${cor[0]}"
msg -b
echo -e "\033[1;34m ${TOP}\033[1;31m TOTAL:\033[1;32m "$mt "\033[1;34m ${TOP} \033[1;31m Libre:\033[1;32m "$ram2 "\033[1;34m ${TOP} \033[1;31m Usada:\033[1;32m"$ram3
echo -e "\033[1;34m ${TOP}\033[1;31m Uso RAM: \033[1;32m"$_usor "\033[1;34m${TOP}\033[1;31m Uso CPU: \033[1;32m$_usop \033[1;34m ${TOP}\033[1;31m Cache:\033[1;32m"$mb # $CPU"%"
msg -b
echo -e "\033[0;31mSystem:\033[0;32m$(cat /etc/issue.net) \033[0;31mIP:\033[0;32m $(wget -qO- ipv4.icanhazip.com)"
msg -b
echo ""
echo -ne "$(msg -verd " Keys Usadas") $(msg -azu " : ") " && msg -bra "\033[1;41m $(cat $IVAR) $porta"
echo ""
}
ofusb() {
unset server
server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
unset txtofus
number=$(expr length $1)
for ((i = 1; i < $number + 1; i++)); do
txt[$i]=$(echo "$1" | cut -b $i)
case ${txt[$i]} in
".") txt[$i]="C" ;;
"C") txt[$i]="." ;;
"3") txt[$i]="@" ;;
"@" ) txt[$i]="3" ;;
"4") txt[$i]="9" ;;
"9") txt[$i]="4" ;;
"6") txt[$i]="P" ;;
"P") txt[$i]="6" ;;
"L") txt[$i]="K" ;;
"K") txt[$i]="L" ;;
esac
txtofus+="${txt[$i]}"
done
echo "$txtofus" | rev
}
ofusc() {
unset server
server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
unset txtofus
number=$(expr length $1)
for ((i = 1; i < $number + 1; i++)); do
txt[$i]=$(echo "$1" | cut -b $i)
case ${txt[$i]} in
".") txt[$i]="C" ;;
"C") txt[$i]="." ;;
"3") txt[$i]="@" ;;
"@" ) txt[$i]="3" ;;
"4") txt[$i]="9" ;;
"9") txt[$i]="4" ;;
"6") txt[$i]="P" ;;
"P") txt[$i]="6" ;;
"L") txt[$i]="K" ;;
"K") txt[$i]="L" ;;
esac
txtofus+="${txt[$i]}"
done
echo "$txtofus" | rev
}
list_fix() {
rm ${SCPT_DIR}/*.x.c &>/dev/null
unset KEY
KEY="$1"
name="$2"
#CRIA DIR
[[ ! -e ${DIR} ]] && mkdir ${DIR}
#ENVIA ARQS
i=0
VALUE+="gerar.sh http-server.py $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
msg -b
#read -p " OPCION : " readvalue
#CRIA KEY
[[ ! -e ${DIR}/${KEY} ]] && mkdir ${DIR}/${KEY}
#PASSA ARQS
[[ -z $readvalue ]] && readvalue="1"
[[ -z $nombrevalue ]] && nombrevalue="$nomkey$name"
if [[ $readvalue = @(cgh|1) ]]; then
#ADM BASIC
echo -e " - KEY SCRIPT BASE ADM - "
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
else
for arqx in $(echo "${readvalue}"); do
#UNE ARQ
[[ -e ${DIR}/${KEY}/${arq_list[$arqx]} ]] && continue #ANULA ARQUIVO CASO EXISTA
rm ${SCPT_DIR}/*.x.c &>/dev/null
cp ${SCPT_DIR}/${arq_list[$arqx]} ${DIR}/${KEY}/
echo "${arq_list[$arqx]}" >>${DIR}/${KEY}/${LIST}
done
echo "TRUE" >>${DIR}/${KEY}/FERRAMENTA
fi
rm ${SCPT_DIR}/*.x.c &>/dev/null
echo "$nombrevalue" >${DIR}/${KEY}.name
[[ ! -z $IPFIX ]] && echo "$IPFIX" >${DIR}/${KEY}/keyfixa
echo -e "-------------------------------------------------"
}
ofusdk(){
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
}
fix_key() {
unset nomkey
echo " Bienvenido, Porfavor dijita el Nombre del DUE<55>O de la KEYs"
echo " DIJITA 0 PARA REGRESAR "
read -p " RESELLER deL Keys : " nomkey
[[ $nomkey = 0 ]] && return
[[ -z $nomkey ]] && {
[[ -e /etc/menu_ito ]] && nomkey="$(cat /etc/menu_ito)" || nomkey="$(curl -sSL "https://www.dropbox.com/s/z38hj1mz3q9krso/menu_credito")"
}
msg -b
echo " Bienvenido, Porfavor ingresa el numero de keys a generar"
read -p "Numero de Keys : " numk
[[ -z ${numk} ]] && numk=0
msg -b
read -p "INGRESA NOMBRE DE VENDEDOR : " vkey
clear
msg -b
echo -e "$numk Keys activas,de $nomkey y esperando instalaci<63>n!"
echo "$nomkey" >${SCPT_DIR}/menu_credito
for ((w = 0; w < $numk; w++)); do
valuekey="$(date | md5sum | head -c11)"
valuekey+="$(echo $(($RANDOM * 10)) | head -c 6)"
xyz+="$(echo $(($RANDOM * 3)) | head -c 4)"
#valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
list_fix "$valuekey" "$(($w + 1))"
keyfinal=$(ofus "$(wget -qO- ipv4.icanhazip.com):8888/$valuekey/$LIST")
echo -e " ${CHeko} Key $(($w + 1)) Exitosa! $(printf '%(%D-%H:%M:%S)T') \n"
echo -e " ${TTcent} ${keyfinal} ${TTcent}" | pv -qL 80
done
[[ -e /etc/menu_ito ]] && cat /etc/menu_ito >${SCPT_DIR}/menu_credito || echo -e "\nCreditos Aplicados Exitosamente"
#$(cat < /etc/ADM-db/resell)
msg -b
echo -e " ${ScT} *INSTALADOR UNIVERSAL* ${ScT}"
msg -b && echo -ne "$(msg -verd "apt update -y &&") $(msg -aqua "apt upgrade -y &&\n") " && msg -bra "\033[7;49;35m wget -q https://raw.githubusercontent.com/ChumoGH/ScriptCGH/main/setup && chmod 777 setup && ./setup --install"
msg -b
[[ -e /etc/menu_numito ]] && menumito="$(cat /etc/menu_numito)" || menumito="https://t.me/ChumoGH_bot"
[[ -z $vkey ]] && vkey="@ChumoGH"
echo -e " ${ceLL} Soporte : Ubuntu 14.04 - 16.04 - 18.04 - 20.04 - 21.04 - 22.04\n S.O PREFERENTE 18.04"
echo -e " Verificada: $vkey ${ScT} RESELLER ACTUAL : $nomkey" | pv -qL 80
msg -b
read -p "Enter para finalizar"
}
att_gen_key() {
i=0
rm ${SCPT_DIR}/*.x.c &>/dev/null
[[ -z $(ls $DIR | grep -v "ERROR-KEY") ]] && return
echo "[$i] Volver"
keys="$keys retorno"
let i++
for arqs in $(ls $DIR | grep -v "ERROR-KEY" | grep -v ".name"); do
arqsx=$(ofus "$IP:8888/$arqs/$LIST")
if [[ $(cat ${DIR}/${arqs}.name | grep GERADOR) ]]; then
echo -e "\033[1;31m[$i] $arqsx ($(cat ${DIR}/${arqs}.name))\033[1;32m ($(cat ${DIR}/${arqs}/keyfixa))\033[0m"
keys="$keys $arqs"
let i++
fi
done
keys=($keys)
msg -b
while [[ -z ${keys[$value]} || -z $value ]]; do
read -p "Escolha qual Atualizar[t=todos]: " -e -i 0 value
done
[[ $value = 0 ]] && return
if [[ $value = @(t|T) ]]; then
i=0
[[ -z $(ls $DIR | grep -v "ERROR-KEY") ]] && return
for arqs in $(ls $DIR | grep -v "ERROR-KEY" | grep -v ".name"); do
KEYDIR="$DIR/$arqs"
rm $KEYDIR/*.x.c &>/dev/null
if [[ $(cat ${DIR}/${arqs}.name | grep GERADOR) ]]; then #Keyen Atualiza
rm ${KEYDIR}/${LIST}
for arqx in $(ls $SCPT_DIR); do
cp ${SCPT_DIR}/$arqx ${KEYDIR}/$arqx
echo "${arqx}" >>${KEYDIR}/${LIST}
rm ${SCPT_DIR}/*.x.c &>/dev/null
rm $KEYDIR/*.x.c &>/dev/null
done
arqsx=$(ofus "$IP:8888/$arqs/$LIST")
echo -e "\033[1;33m[KEY]: $arqsx \033[1;32m(ATUALIZADA!)\033[0m"
fi
let i++
done
rm ${SCPT_DIR}/*.x.c &>/dev/null
msg -b2
echo -ne "\033[0m" && read -p "Enter"
return 0
fi
KEYDIR="$DIR/${keys[$value]}"
[[ -d "$KEYDIR" ]] && {
rm $KEYDIR/*.x.c &>/dev/null
rm ${KEYDIR}/${LIST}
for arqx in $(ls $SCPT_DIR); do
cp ${SCPT_DIR}/$arqx ${KEYDIR}/$arqx
echo "${arqx}" >>${KEYDIR}/${LIST}
rm ${SCPT_DIR}/*.x.c &>/dev/null
rm $KEYDIR/*.x.c &>/dev/null
done
arqsx=$(ofus "$IP:8888/${keys[$value]}/$LIST")
echo -e "\033[1;33m[KEY]: $arqsx \033[1;32m(ATUALIZADA!)\033[0m"
read -p "Enter"
rm ${SCPT_DIR}/*.x.c &>/dev/null
}
}
remover_key() {
del_KILL
i=0
[[ -z $(ls $DIR | grep -v "ERROR-KEY") ]] && return
echo "[$i] Volver"
keys="$keys retorno"
let i++
for arqs in $(ls $DIR | grep -v "ERROR-KEY" | grep -v ".name"); do
arqsx=$(ofus "$IP:8888/$arqs/$LIST")
if [[ ! -e ${DIR}/${arqs}/used.date ]]; then
echo -e "\033[1;32m[$i] $arqsx ($(cat ${DIR}/${arqs}.name))\033[1;33m (Key Activa)\033[0m" || rm -rf ${DIR}/${arqs}
else
echo -e "\033[1;31m[$i] $arqsx ($(cat ${DIR}/${arqs}.name))\033[1;33m ($(cat ${DIR}/${arqs}/used.date) IP: $(cat ${DIR}/${arqs}/used))\033[0m"
fi
keys="$keys $arqs"
let i++
done
keys=($keys)
msg -b
while [[ -z ${keys[$value]} || -z $value ]]; do
read -p "Elija cual remover: " -e -i 0 value
done
[[ -d "$DIR/${keys[$value]}" ]] && rm -rf $DIR/${keys[$value]}* || return
}
remover_key_usada() {
i=0
[[ -z $(ls $DIR | grep -v "ERROR-KEY") ]] && return
for arqs in $(ls $DIR | grep -v "ERROR-KEY" | grep -v ".name"); do
arqsx=$(ofus "$IP:8888/$arqs/$LIST")
if [[ -e ${DIR}/${arqs}/used.date ]]; then #KEY USADA
if [[ $(ls -l -c ${DIR}/${arqs}/used.date | cut -d' ' -f7) != $(date | cut -d' ' -f3) ]]; then
rm -rf ${DIR}/${arqs}*
echo -e "\033[1;31m[KEY]: $arqsx \033[1;32m(Eliminada!)\033[0m"
else
echo -e "\033[1;32m[KEY]: $arqsx \033[1;32m(Key Activa!)\033[0m"
fi
else
echo -e "\033[1;32m[KEY]: $arqsx \033[1;32m(Key Activa!)\033[0m"
fi
let i++
done
msg -b2
echo -ne "\033[0m" && read -p "Enter"
}
fum_ver() {
while [[ ! $Keey ]]; do
clear
export PATH=$PATH:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games
echo -e "\n \033[1;32m DIGITA TU KEY A VERIFICAR "
msg -ne "Script Key: " && read Keey
[[ ! -z $Keey ]] && Keey="$(echo "$Keey" | tr -d '[[:space:]]')"
tput cuu1 && tput dl1
done
REQUEST=$(ofus "$Keey" | cut -d'/' -f2)
echo -e "\n"
echo -e " FILE Contend : ${REQUEST} $(echo ${REQUEST} | wc -c)"
echo -e "\n"
echo -e " VERIFICA, Si tu key Contiene \033[1;45m KEY DE ChumoGH! \033[0m "
echo -e "\n"
msg -ne " Link Key: http://$(ofus $Keey) \n "
IiP=$(ofus "$Keey" | 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 2 $IiP:8888) ]] && echo -e "\033[1;42mCONEXION CON SERVIDOR EXITOSA\033[0m" || echo -e "\033[1;43mCONEXION CON SERVIDOR FALLIDA\033[0m"
wget --no-check-certificate -O $HOME/list-key $(ofus $Keey)/$(wget -qO- ipv4.icanhazip.com) >/dev/null 2>&1 && echo -ne "\033[1;32m [ VERIFICANDO ]" || echo -e "\033[1;31m [ No Existe Acceso al KEY ]" #&& echo -e "\033[1;32m [ Key ]\n" || echo -e "\033[1;31m [ No Existe Acceso al KEY ]"
ofen=$(wget -qO- $(ofus $Keey))
unset arqx
[[ -d $HOME/install ]] && rm -rf $HOME/install/* || mkdir $HOME/install
verificar_arq() {
echo "$1" >>$HOME/install/log.txt
}
n=1
IP=$(ofus "$Keey" | 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}') && echo "$IP" >/usr/bin/vendor_code
pontos="."
stopping=" COMPROBANDO " | sed -e 's/[^a-z -]//ig'
for arqx in $(cat $HOME/list-key); do
msg -verm "${stopping}${pontos}" && sleep 0.3s
wget --no-check-certificate -O $HOME/install/${arqx} ${IP}:81/${REQUEST}/${arqx} >/dev/null 2>&1 && verificar_arq "${arqx}"
tput cuu1 && tput dl1
pontos+="."
n=$(($n + 1))
done
echo -ne " ---> ESTADO : \033[1;45m$ofen\033[0m con "
[[ ! -e $HOME/install/log.txt ]] && touch $HOME/install/log.txt
echo " $(cat <$HOME/install/log.txt | wc -l) FILES " && rm -f $HOME/install/log.txt
msg -ne " \033[1;42mESTADO :\033[0m "
[[ -e $HOME/list-key ]] && {
echo -ne " "
[[ $ofen = "KEY DE ChumoGH!" ]] &&
echo -e "KEY FUNCIONAL" && rm -f $HOME/list-key && echo -ne "\033[0m"
} || echo -e " KEY INVALIDA O USADA\033[0m\n"
#curl -s --connect-timeout 2 ${IiP}:81/${REQUEST}/menu_credito > menu_credito
msg -ne " RESELLER del Key :\033[0m "
[[ -e $HOME/install/menu_credito ]] && {
echo -ne " "
[[ "$(cat $HOME/install/menu_credito)" = "" ]] && {
echo -e "SIN RESELLER\033[0m"
} || echo -e "$(cat $HOME/install/menu_credito)\033[0m" && rm -rf $HOME/install && echo -ne "\033[0m"
} || echo -e " NO HAY CONTENIDO DE KEY Key\033[0m\n"
read -p "Enter"
}
alter_id() {
while [[ ${varread} != @([0-3]) ]]; do
tittle
msg -b
echo -e " \033[0;35m[\033[0;36m1\033[0;35m] \033[0;34m<\033[0;33m Alterar Creditos POR ID \033[0;32m(#OFICIAL)"
echo -e " \033[0;35m[\033[0;36m2\033[0;35m] \033[0;34m<\033[0;33m REINICIAR CONTADOR TOTAL \033[0;32m(#OFICIAL)"
msg -b
echo -e " \033[0;35m[\033[0;36m0\033[0;35m] \033[0;34m<\033[0;33m Regresar"
msg -b
echo -ne "${cor[6]}"
read -p " Opcion : " varread
done
msg -b
if [[ ${varread} = 0 ]]; then
return 0
elif [[ ${varread} = 1 ]]; then
echo -e "\033[1;32m DIGITA ID A REINICIAR "
msg -ne " Paste ID : " && read newli
sed -i "/${newli}/d" /etc/ADM-db/num-key.cont
echo "REGISTRO EN $(grep -o -i $newli /etc/ADM-db/num-key.cont | wc -l) KEYS"
read -p "Limite Aplicado Exitosamente"
elif [[ ${varread} = 2 ]]; then
echo -e "\033[1;32m BORRAREMOS EL CONTEO TOTAL DEL GENERADOR "
rm -rf /etc/ADM-db/num-key.cont && touch /etc/ADM-db/num-key.cont
echo "REGISTRO EN $(cat /etc/ADM-db/num-key.cont | wc -l) KEYS"
read -p "Limite Aplicado Exitosamente"
fi
}
alter_limit() {
echo -e "\033[1;32m DIGITA TU NUEVO LIMITE "
msg -ne "New Limit: " && read newli
echo $newli >/etc/ADM-db/limit
read -p "Limite Aplicado Exitosamente"
}
hora(){
rm -rf /etc/localtime &>/dev/null
ln -s /usr/share/zoneinfo/America/Chihuahua /etc/localtime &>/dev/null
@ -247,8 +649,8 @@ case $1 in
locale-gen en_US.UTF-8 >/dev/null 2>&1
update-locale LANG=en_US.UTF-8 >/dev/null 2>&1
figlet 'PCKGS'|lolcat
msg -bar&&print_center -ama 'INSTALANDO PAQUETES'
msg -bar
msg -b&&print_center -ama 'INSTALANDO PAQUETES'
msg -b
soft='bc gawk jq screen curl socat netcat netstat netcat-traditional net-tools cowsay pv'
for i in `echo $soft`; do
leng="${#i}"
@ -331,22 +733,22 @@ case $1 in
cd ~/
clear&&clear
figlet 'SCRIPTS'|lolcat
msg -bar&&print_center -ama 'INSTALADOS CORRECTAMENTE'
msg -bar
msg -b&&print_center -ama 'INSTALADOS CORRECTAMENTE'
msg -b
cat /etc/scripts/scripts.json|jq
msg -bar
msg -b
echo -e "\e[1;30m[#\e[1;34mPara modificar manualmente los scripts y la información, entra en /etc/scripts \e[1;30m]"
enter
clear&&clear
figlet 'scpdk1'â‚|lolc
msg -bar
msg -b
;;
-b | --botgen)
[[ ! -e ${sdir[0]}/data ]] && {
clear&&clear
figlet 'BOTGEN'|lolcat
msg -bar&&print_center -ama 'DATOS DEL ADMIN'&&msg -bar
msg -b&&print_center -ama 'DATOS DEL ADMIN'&&msg -b
echo -ne "\e[1;30m[+] \e[1;34mIngresa el token del bot: \e[1;36m"
while read token; do
if [[ -z $token ]]; then
@ -359,7 +761,7 @@ case $1 in
data="$token | "&&break
fi
done
msg -bar
msg -b
echo -ne "\e[1;30m[+] \e[1;34mIngresa tu ID: \e[1;36m"
while read id; do
if [[ -z $id ]]; then
@ -368,7 +770,7 @@ case $1 in
break
fi
done
msg -bar
msg -b
print_center "$(echo -e "\e[1;32m[+] DATOS GUARDADOS EXITOSAMENTE [+]")"
data+="$id"
echo $data > ${sdir[0]}/data
@ -389,7 +791,7 @@ case $1 in
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
msg -bar
msg -b
if systemctl enable BotGen >/dev/null 2>&1; then
if systemctl start BotGen >/dev/null 2>&1; then
echo -e "\e[1;32m[+] BOTGEN INSTALADO [+]"
@ -474,13 +876,14 @@ elif [[ $1 == @('-m'|'--menu') ]]; then
id="${data[1]}"&&token="${data[0]}"
}
msj="==================
[] mensaje enviado desde $ip []
[] $ip: admin []
=============="
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 [+]"
$0 --menu
;;
6)
if [[ $(systemctl is-active BotGen) != 'inactive' ]]; then
msg -r 'BOTGEN APAGADO CORRECTAMENTE'