This commit is contained in:
drowkid01 2025-05-28 19:04:32 -06:00
parent 4bcaec7dd8
commit b465641e4d
4 changed files with 4 additions and 10 deletions

0
exec/- Normal file
View File

0
exec/RESET Normal file
View File

0
exec/lista Normal file
View File

View File

@ -285,12 +285,6 @@ ph=$(ps x|grep -v grep|grep -w 'http-server.sh')
ph="\e[1;32m[+] GENERADOR ACTIVO [+]"&&hp="\e[1;32m[ON] " ph="\e[1;32m[+] GENERADOR ACTIVO [+]"&&hp="\e[1;32m[ON] "
} }
[[ -z $1 ]] || {
case $1 in
--activar)screen -dmS "$2" "$3" >/dev/null 2>&1;;
--desactivar)killall "$(ps x|grep -v grep|grep -w \"$1\")"&&killall screen >/dev/null 2>&1;;
esac
}
} }
@ -323,20 +317,20 @@ ID: $id
4) 4)
if [[ $(ps x|grep -v grep|grep -w 'BotGen') ]]; then if [[ $(ps x|grep -v grep|grep -w 'BotGen') ]]; then
msg -r '[x] BOTGEN APAGADO CORRECTAMENTE [x]' msg -r '[x] BOTGEN APAGADO CORRECTAMENTE [x]'
power --desactivar 'BotGen' killall screen
else else
echo -e "\e[1;32m[+] BOTGEN ACTIVADO CORRECTAMENTE [+]" echo -e "\e[1;32m[+] BOTGEN ACTIVADO CORRECTAMENTE [+]"
power --activar 'BotGen' '/etc/CAT-BOT/BotGen.sh -start' screen -dmS BotGen /etc/CAT-BOT/BotGen.sh
fi fi
enter&&source $0 enter&&source $0
;; ;;
5) 5)
if [[ $(ps x|grep -v grep|grep -w 'http-server') ]]; then if [[ $(ps x|grep -v grep|grep -w 'http-server') ]]; then
msg -r '[x] GENERADOR APAGADO CORRECTAMENTE [x]' msg -r '[x] GENERADOR APAGADO CORRECTAMENTE [x]'
power --desactivar 'http-server' killall screen && killall "$(ps x|grep -v grep|grep 'http-server')"
else else
echo -e "\e[1;32m[+] GENERADOR ACTIVADO CORRECTAMENTE [+]" echo -e "\e[1;32m[+] GENERADOR ACTIVADO CORRECTAMENTE [+]"
power --activar 'http-server' '/bin/http-server.sh -start' screen -dmS http-server /bin/http-server.sh -start >/dev/null 2>&1
fi fi
enter&&source $0 enter&&source $0
;; ;;