diff --git a/init.sh b/init.sh index 721dbe5..6e3ea4a 100755 --- a/init.sh +++ b/init.sh @@ -133,6 +133,7 @@ SEMCOR='\e[0m' -verm3)cor="${COLOR[1]}" && echo -e "${cor}${2}${SEMCOR}";; -teal) cor="${COLOR[7]}${NEGRITO}" && 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}";; -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}";; @@ -320,16 +321,24 @@ ofusc() { } list_fix() { - rm ${SCPT_DIR}/*.x.c &>/dev/null - unset KEY +rm ${SCPT_DIR}/*.x.c &>/dev/null + unset KEY VALUE KEY="$1" 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 - [[ ! -e ${DIR} ]] && mkdir ${DIR} - #ENVIA ARQS i=0 - VALUE+="gerar.sh http-server.py $BASICINST" - for arqx in $(ls ${SCPT_DIR}); do + #VALUE+="gerar.sh http-server.py $BASICINST" + [[ ! -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 -e "[$i] -> ${arqx}" arq_list[$i]="${arqx}" @@ -346,28 +355,29 @@ list_fix() { #ADM BASIC echo -e " - KEY SCRIPT BASE ADM - " arqslist="$BASICINST" + [[ -z $arqslist ]] && arqslist=$(ls /etc/scripts/${SCPT_DIR}) for arqx in $(echo "${arqslist}"); do [[ -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} 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}/ + rm /etc/scripts/${SCPT_DIR}/*.x.c &>/dev/null + cp /etc/scripts/${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 + rm /etc/scripts/${SCPT_DIR}/*.x.c &>/dev/null echo "$nombrevalue" >${DIR}/${KEY}.name [[ ! -z $IPFIX ]] && echo "$IPFIX" >${DIR}/${KEY}/keyfixa echo -e "-------------------------------------------------" } -ofusdk(){ +ofus(){ unset txtofus number=$(expr length $1) for ((i = 1; i < $number + 1; i++)); do @@ -392,42 +402,37 @@ ofusdk(){ } fix_key() { - unset nomkey - echo " Bienvenido, Porfavor dijita el Nombre del DUE�O de la KEYs" - echo " DIJITA 0 PARA REGRESAR " - read -p " RESELLER deL Keys : " nomkey - [[ $nomkey = 0 ]] && return +SCPT_DIR="$1" +nscp="$2" +case ${SCPT_DIR} in + 'scriptdk1')LIST='-SPVweN'&&fmc='menu_credito';; + '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 ]] && { - [[ -e /etc/menu_ito ]] && nomkey="$(cat /etc/menu_ito)" || nomkey="$(curl -sSL "https://www.dropbox.com/s/z38hj1mz3q9krso/menu_credito")" + nomkey="@drowkid1" } msg -b - echo " Bienvenido, Porfavor ingresa el numero de keys a generar" - read -p "Numero de Keys : " numk - [[ -z ${numk} ]] && numk=0 + vkey=${nomkey:+@drowkid1} msg -b - read -p "INGRESA NOMBRE DE VENDEDOR : " vkey - clear - msg -b - echo -e "$numk Keys activas,de $nomkey y esperando instalaci�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)" + echo "$nomkey" > /etc/scripts/${SCPT_DIR}/$fmc +clear&&clear +figlet 'KEY ADM'|lolcat +msg -b&&msg -m " [ KEY ${SCPT_DIR} GENERADA CORRECTAMENTE ]" +msg -b + + for ((w = 0; w < ${numk:=1}; 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))" + list_fix "$valuekey" "$(($w + 1 ))" "$nscp" "$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 + #echo -e " ${CHeko} Key $(($w + 1)) Exitosa! $(printf '%(%D-%H:%M:%S)T') \n" + echo -e " $(printext 'KEY: ') \e[1;97m${keyfinal}" + echo -e "\n\e[1;33mINSTALADOR ===>> ${instal}" 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" + [[ -z $vkey ]] && vkey="@drowkid01" 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 @@ -649,7 +654,7 @@ 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 -b&&print_center -ama 'INSTALANDO PAQUETES' + msg -b&&print_center -m '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 @@ -710,8 +715,8 @@ download(){ local urL='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main' 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=("${urL}/scripts/SCRIPT-LATAM.zip" "${urL}/scripts/SCRIPTMX.zip" "${urL}/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") @@ -723,17 +728,20 @@ case $1 in 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 + #for i in {0..3}; do mkdir -p /etc/scripts/${name[$i]} >/dev/null 2>&1 ; done + 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 - 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 + mv /etc/scripts/SCRIPT-LATAM /etc/scripts/latam 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 ~/ clear&&clear figlet 'SCRIPTS'|lolcat - msg -b&&print_center -ama 'INSTALADOS CORRECTAMENTE' + msg -b&&print_center -m 'INSTALADOS CORRECTAMENTE' msg -b cat /etc/scripts/scripts.json|jq msg -b @@ -748,7 +756,7 @@ case $1 in [[ ! -e ${sdir[0]}/data ]] && { clear&&clear 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" while read token; do if [[ -z $token ]]; then @@ -827,6 +835,12 @@ if [[ $1 == @('-i'|'--install') ]]; then download --botgen elif [[ $1 == @('-m'|'--menu') ]]; then #==>>> menú botgen + function funtit(){ + clear&&clear + figlet "$1"|lolcat + msg -bar + [[ -n $2 ]] && print_center -m "$2" + } 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" @@ -866,7 +880,7 @@ elif [[ $1 == @('-m'|'--menu') ]]; then case $(selection_fun 2) in 0) ./$0 --menu;; 1)packages -i&&download --botgen;; - 2)packages -i&&download --script;; + 2)rm -rf /etc/scripts&&download --script;; esac ;; 3) @@ -883,7 +897,46 @@ elif [[ $1 == @('-m'|'--menu') ]]; then echo -e "\e[1;32m[+] mensaje enviado exitosamente [+]" $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) if [[ $(systemctl is-active BotGen) != 'inactive' ]]; then msg -r 'BOTGEN APAGADO CORRECTAMENTE' diff --git a/otros/basicinst b/otros/basicinst new file mode 100644 index 0000000..f2748c4 --- /dev/null +++ b/otros/basicinst @@ -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