@drowkid1

This commit is contained in:
@drowkid01 2025-05-27 01:07:38 -06:00
parent 2dd1de32f1
commit 821b276bbd
2 changed files with 106 additions and 50 deletions

153
init.sh
View File

@ -133,6 +133,7 @@ SEMCOR='\e[0m'
-verm3)cor="${COLOR[1]}" && echo -e "${cor}${2}${SEMCOR}";; -verm3)cor="${COLOR[1]}" && echo -e "${cor}${2}${SEMCOR}";;
-teal) cor="${COLOR[7]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";; -teal) cor="${COLOR[7]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-teal2)cor="${COLOR[7]}" && echo -e "${cor}${2}${SEMCOR}";; -teal2)cor="${COLOR[7]}" && echo -e "${cor}${2}${SEMCOR}";;
-m)echo -e "\e[38;5;99m$2\e[0m";;
-blak) cor="\e[1;30m${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";; -blak) cor="\e[1;30m${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-fi)txt=($(echo "$@"|sed 's/-fi//g'|awk -F ";" '{print $1,$2}')) && echo -e "\e[1;37m${txt[0]} \e[1;30m[\e[38;5;219m#${txt[1]}\e[1;30m]";; -fi)txt=($(echo "$@"|sed 's/-fi//g'|awk -F ";" '{print $1,$2}')) && echo -e "\e[1;37m${txt[0]} \e[1;30m[\e[38;5;219m#${txt[1]}\e[1;30m]";;
-blak2)cor="${COLOR[8]}" && echo -e "${cor}${2}${SEMCOR}";; -blak2)cor="${COLOR[8]}" && echo -e "${cor}${2}${SEMCOR}";;
@ -320,16 +321,24 @@ ofusc() {
} }
list_fix() { list_fix() {
rm ${SCPT_DIR}/*.x.c &>/dev/null rm ${SCPT_DIR}/*.x.c &>/dev/null
unset KEY unset KEY VALUE
KEY="$1" KEY="$1"
name="$2" name="$2"
DIR='/etc/http-shell'
basicinst[0]=$(ls /etc/scripts/scriptdk1)
basicinst[1]=$(ls /etc/scripts/vpsmx)
basicinst[2]=$(ls /etc/scripts/latam)
BASICINST=${basicinst[$3]}
#CRIA DIR #CRIA DIR
[[ ! -e ${DIR} ]] && mkdir ${DIR}
#ENVIA ARQS
i=0 i=0
VALUE+="gerar.sh http-server.py $BASICINST" #VALUE+="gerar.sh http-server.py $BASICINST"
for arqx in $(ls ${SCPT_DIR}); do [[ ! -d $DIR ]] && mkdir -p $DIR
declare -A arqscp=( [scriptdk1]="$(cat /etc/scripts/scripts.json|jq '.scripts[0].data.files')" [vpsmx]="$(cat /etc/scripts/scripts.json|jq '.scripts[1].data.files')" [latam]="$(cat /etc/scripts/scripts.json|jq '.scripts[2].data.files')" [darnix]="$(cat /etc/scripts/scripts.json|jq '.scripts[3].data.files')" )
VALUE=$BASICINST
dir="/etc/scripts/${SCPT_DIR}"
for arqx in $(ls /etc/scripts/$SCPT_DIR); do
[[ $(echo $VALUE | grep -w "${arqx}") ]] && continue [[ $(echo $VALUE | grep -w "${arqx}") ]] && continue
echo -e "[$i] -> ${arqx}" echo -e "[$i] -> ${arqx}"
arq_list[$i]="${arqx}" arq_list[$i]="${arqx}"
@ -346,28 +355,29 @@ list_fix() {
#ADM BASIC #ADM BASIC
echo -e " - KEY SCRIPT BASE ADM - " echo -e " - KEY SCRIPT BASE ADM - "
arqslist="$BASICINST" arqslist="$BASICINST"
[[ -z $arqslist ]] && arqslist=$(ls /etc/scripts/${SCPT_DIR})
for arqx in $(echo "${arqslist}"); do for arqx in $(echo "${arqslist}"); do
[[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA [[ -e ${DIR}/${KEY}/$arqx ]] && continue #ANULA ARQUIVO CASO EXISTA
cp ${SCPT_DIR}/$arqx ${DIR}/${KEY}/ cp /etc/scripts/${scp}/$arqx ${DIR}/${KEY}/
echo "$arqx" >>${DIR}/${KEY}/${LIST} echo "$arqx" >>${DIR}/${KEY}/${LIST}
done done
else else
for arqx in $(echo "${readvalue}"); do for arqx in $(echo "${readvalue}"); do
#UNE ARQ #UNE ARQ
[[ -e ${DIR}/${KEY}/${arq_list[$arqx]} ]] && continue #ANULA ARQUIVO CASO EXISTA [[ -e ${DIR}/${KEY}/${arq_list[$arqx]} ]] && continue #ANULA ARQUIVO CASO EXISTA
rm ${SCPT_DIR}/*.x.c &>/dev/null rm /etc/scripts/${SCPT_DIR}/*.x.c &>/dev/null
cp ${SCPT_DIR}/${arq_list[$arqx]} ${DIR}/${KEY}/ cp /etc/scripts/${SCPT_DIR}/${arq_list[$arqx]} ${DIR}/${KEY}/
echo "${arq_list[$arqx]}" >>${DIR}/${KEY}/${LIST} echo "${arq_list[$arqx]}" >>${DIR}/${KEY}/${LIST}
done done
echo "TRUE" >>${DIR}/${KEY}/FERRAMENTA echo "TRUE" >>${DIR}/${KEY}/FERRAMENTA
fi fi
rm ${SCPT_DIR}/*.x.c &>/dev/null rm /etc/scripts/${SCPT_DIR}/*.x.c &>/dev/null
echo "$nombrevalue" >${DIR}/${KEY}.name echo "$nombrevalue" >${DIR}/${KEY}.name
[[ ! -z $IPFIX ]] && echo "$IPFIX" >${DIR}/${KEY}/keyfixa [[ ! -z $IPFIX ]] && echo "$IPFIX" >${DIR}/${KEY}/keyfixa
echo -e "-------------------------------------------------" echo -e "-------------------------------------------------"
} }
ofusdk(){ ofus(){
unset txtofus unset txtofus
number=$(expr length $1) number=$(expr length $1)
for ((i = 1; i < $number + 1; i++)); do for ((i = 1; i < $number + 1; i++)); do
@ -392,42 +402,37 @@ ofusdk(){
} }
fix_key() { fix_key() {
unset nomkey SCPT_DIR="$1"
echo " Bienvenido, Porfavor dijita el Nombre del DUE<55>O de la KEYs" nscp="$2"
echo " DIJITA 0 PARA REGRESAR " case ${SCPT_DIR} in
read -p " RESELLER deL Keys : " nomkey 'scriptdk1')LIST='-SPVweN'&&fmc='menu_credito';;
[[ $nomkey = 0 ]] && return 'darnix'|'latam'|'vpsmx')LIST='lista-arq'&&fmc='message.txt';;
esac
echo -ne "\e[1;30m[•] \e[38;5;15mIngresa el reseller de la key: \e[1;32m"&&read nomkey
[[ -z $nomkey ]] && { [[ -z $nomkey ]] && {
[[ -e /etc/menu_ito ]] && nomkey="$(cat /etc/menu_ito)" || nomkey="$(curl -sSL "https://www.dropbox.com/s/z38hj1mz3q9krso/menu_credito")" nomkey="@drowkid1"
} }
msg -b msg -b
echo " Bienvenido, Porfavor ingresa el numero de keys a generar" vkey=${nomkey:+@drowkid1}
read -p "Numero de Keys : " numk
[[ -z ${numk} ]] && numk=0
msg -b msg -b
read -p "INGRESA NOMBRE DE VENDEDOR : " vkey echo "$nomkey" > /etc/scripts/${SCPT_DIR}/$fmc
clear clear&&clear
msg -b figlet 'KEY ADM'|lolcat
echo -e "$numk Keys activas,de $nomkey y esperando instalaci<63>n!" msg -b&&msg -m " [ KEY ${SCPT_DIR} GENERADA CORRECTAMENTE ]"
echo "$nomkey" >${SCPT_DIR}/menu_credito msg -b
for ((w = 0; w < $numk; w++)); do
valuekey="$(date | md5sum | head -c11)" for ((w = 0; w < ${numk:=1}; w++)); do
valuekey+="$(echo $(($RANDOM * 10)) | head -c 6)" valuekey="$(date | md5sum | head -c11)" && valuekey+="$(echo $(($RANDOM * 10)) | head -c 6)"
xyz+="$(echo $(($RANDOM * 3)) | head -c 4)" xyz+="$(echo $(($RANDOM * 3)) | head -c 4)"
#valuekey+="$(echo $(($RANDOM*10))|head -c 5)" #valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
list_fix "$valuekey" "$(($w + 1))" list_fix "$valuekey" "$(($w + 1 ))" "$nscp" "$1"
keyfinal=$(ofus "$(wget -qO- ipv4.icanhazip.com):8888/$valuekey/$LIST") 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 " ${CHeko} Key $(($w + 1)) Exitosa! $(printf '%(%D-%H:%M:%S)T') \n"
echo -e " ${TTcent} ${keyfinal} ${TTcent}" | pv -qL 80 echo -e " $(printext 'KEY: ') \e[1;97m${keyfinal}"
echo -e "\n\e[1;33mINSTALADOR ===>> ${instal}"
done 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 msg -b
echo -e " ${ScT} *INSTALADOR UNIVERSAL* ${ScT}" [[ -z $vkey ]] && vkey="@drowkid01"
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 " ${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 echo -e " Verificada: $vkey ${ScT} RESELLER ACTUAL : $nomkey" | pv -qL 80
msg -b msg -b
@ -649,7 +654,7 @@ case $1 in
locale-gen en_US.UTF-8 >/dev/null 2>&1 locale-gen en_US.UTF-8 >/dev/null 2>&1
update-locale LANG=en_US.UTF-8 >/dev/null 2>&1 update-locale LANG=en_US.UTF-8 >/dev/null 2>&1
figlet 'PCKGS'|lolcat figlet 'PCKGS'|lolcat
msg -b&&print_center -ama 'INSTALANDO PAQUETES' msg -b&&print_center -m 'INSTALANDO PAQUETES'
msg -b msg -b
soft='bc gawk jq screen curl socat netcat netstat netcat-traditional net-tools cowsay pv' soft='bc gawk jq screen curl socat netcat netstat netcat-traditional net-tools cowsay pv'
for i in `echo $soft`; do for i in `echo $soft`; do
@ -710,8 +715,8 @@ download(){
local urL='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main' local urL='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main'
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" ) #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")
@ -723,17 +728,20 @@ case $1 in
mv -f /etc/scripts/scripts.json /etc/scripts/scps.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 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 mkdir -p /etc/scripts/scriptdk1
cd /etc/scripts&&wget ${url[1]} &>/dev/null 2>&1
unzip SCRIPTMX.zip >/dev/null 2>&1&&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 mv /etc/scripts/SCRIPT /etc/scripts/vpsmx
cd /etc/scripts&&wget ${url[0]} >/dev/null 2>&1
unzip SCRIPT-LATAM.zip >/dev/null 2>&1&&rm SCRIPT-LATAM.zip >/dev/null 2>&1 unzip SCRIPT-LATAM.zip >/dev/null 2>&1&&rm SCRIPT-LATAM.zip >/dev/null 2>&1
mv /etc/scripts/SCRIPT-LATAM /etc/scripts/latam
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 -rf chukk.tar userDIR *.txt 0 >/dev/null 2>&1
cd ~/ cd ~/
clear&&clear clear&&clear
figlet 'SCRIPTS'|lolcat figlet 'SCRIPTS'|lolcat
msg -b&&print_center -ama 'INSTALADOS CORRECTAMENTE' msg -b&&print_center -m 'INSTALADOS CORRECTAMENTE'
msg -b msg -b
cat /etc/scripts/scripts.json|jq cat /etc/scripts/scripts.json|jq
msg -b msg -b
@ -748,7 +756,7 @@ case $1 in
[[ ! -e ${sdir[0]}/data ]] && { [[ ! -e ${sdir[0]}/data ]] && {
clear&&clear clear&&clear
figlet 'BOTGEN'|lolcat figlet 'BOTGEN'|lolcat
msg -b&&print_center -ama 'DATOS DEL ADMIN'&&msg -b msg -b&&print_center -m 'DATOS DEL ADMIN'&&msg -b
echo -ne "\e[1;30m[+] \e[1;34mIngresa el token del bot: \e[1;36m" echo -ne "\e[1;30m[+] \e[1;34mIngresa el token del bot: \e[1;36m"
while read token; do while read token; do
if [[ -z $token ]]; then if [[ -z $token ]]; then
@ -827,6 +835,12 @@ if [[ $1 == @('-i'|'--install') ]]; then
download --botgen download --botgen
elif [[ $1 == @('-m'|'--menu') ]]; then elif [[ $1 == @('-m'|'--menu') ]]; then
#==>>> menú botgen #==>>> menú botgen
function funtit(){
clear&&clear
figlet "$1"|lolcat
msg -bar
[[ -n $2 ]] && print_center -m "$2"
}
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"
@ -866,7 +880,7 @@ elif [[ $1 == @('-m'|'--menu') ]]; then
case $(selection_fun 2) in case $(selection_fun 2) in
0) ./$0 --menu;; 0) ./$0 --menu;;
1)packages -i&&download --botgen;; 1)packages -i&&download --botgen;;
2)packages -i&&download --script;; 2)rm -rf /etc/scripts&&download --script;;
esac esac
;; ;;
3) 3)
@ -883,7 +897,46 @@ elif [[ $1 == @('-m'|'--menu') ]]; then
echo -e "\e[1;32m[+] mensaje enviado exitosamente [+]" echo -e "\e[1;32m[+] mensaje enviado exitosamente [+]"
$0 --menu $0 --menu
;; ;;
4)
funtit 'CHECKEY' 'VERIFICADOR DE KEYS'
msg -b&&menu_func "VERIFICAR KEY \E[38;5;99mSCRIPTDK1" "VERIFICAR KEY \E[38;5;99mCASITA/VPS-MX" "VERIFICAR KEY \e[38;5;99mLATAM" "VERIFICAR KEY \e[38;5;99mDARNIX"
back&&opz=$(selection_fun 4)
case $opz in
0)$0 --menu;;
1);;
2);;
3);;
esac
;;
5)
clear&&clear
figlet 'KEYGEN'|lolcat
msg -b&&print_center -m 'GENERADOR DE KEY'
msg -b&&menu_func "GENERAR KEY \E[38;5;99mSCRIPTDK1" "GENERAR KEY \E[38;5;99mCASITA/VPS-MX" "GENERAR KEY \e[38;5;99mLATAM" "GENERAR KEY \e[38;5;99mDARNIX"
back&&opc=$(selection_fun 4)
case $opc in
1)scp='scriptdk1'
funtit 'SCPDK1' 'GENERANDO KEY SCRIPTDK1'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[0].data.instal')
fix_key "$scp" '0'
;;
2)scp='vpsmx'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[1].data.instal')
funtit 'VPS-MX' 'GENERANDO KEY CASITAV11'
fix_key "$scp" '1'
;;
3)scp='latam'
funtit 'LATAM' 'GENERANDO KEY LATAM'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[2].data.instal')
fix_key "$scp" '2'
;;
4)scp='darnix'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[3].data.instal')
funtit 'DARNIX' 'GENERANDO KEY DARNIX'
fix_key "$scp" '3'
;;
esac
;;
6) 6)
if [[ $(systemctl is-active BotGen) != 'inactive' ]]; then if [[ $(systemctl is-active BotGen) != 'inactive' ]]; then
msg -r 'BOTGEN APAGADO CORRECTAMENTE' msg -r 'BOTGEN APAGADO CORRECTAMENTE'

3
otros/basicinst Normal file
View File

@ -0,0 +1,3 @@
cabecalho ferramentas menu menu_credito menu_inst payloads PDirect.py PGet.py POpen.py PPriv.py PPub.py shadowsocks.sh ultrahost usercodes v-local.log
ADMbot.sh apacheon.sh blockBT.sh budp.sh Crear-Demo.sh C-SSR.sh dns-netflix.sh dropbear.sh fai2ban.sh ID.txt menu message.txt openvpn.sh paysnd.sh PDirect.py PGet.py POpen.py ports.sh PPriv.py PPub.py python.py shadowsocks.sh slowdns.sh sockspy.sh speed.py squidpass.sh squid.sh ssl.sh tcp.sh ultrahost v2ray.sh
LATAMbot.sh menu.sh message.txt PDirect.py PGet.py POpen.py PPriv.py PPub.py