#!/bin/bash source <(curl -sSL https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/Otros/msg) >/dev/null function txt(){ case $1 in -b)echo -e "\e[1;30m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\e[0m";; -r)echo -e "\e[1;31m$2\e[0m";; -vm)echo -e " \e[1;31m[x] $2 [x]\e[0m";; -rm)echo -e "\e[1;32m[+] $2 [•] \e[0m";; -ne)echo -ne " \e[1;30m[#\e[1;34m$2\e[1;36m " [[ -n $3 ]] && read $3 ;; *)msg $1;; esac } IP=$(wget -qO- ipv4.icanhazip.com) ####inicio puertos 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) �72 \033[1;32m($v1)\033[1;31m" txt -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"%" txt -b echo -e "\033[0;31mSystem:\033[0;32m$(cat /etc/issue.net) \033[0;31mIP:\033[0;32m $(wget -qO- ipv4.icanhazip.com)" txt -b echo "" echo -ne "$(msg -verd " Keys Usadas") $(msg -azu " : ") " && msg -bra "\033[1;41m $(cat $IVAR) $porta" echo "" } DIR="/etc/http-shell" #LIST="-SPVweN" meu_ip() { MIP=$(ip addr | grep 'inet' | grep -v inet6 | 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}' | head -1) MIP2=$(wget -qO- ipv4.icanhazip.com) [[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP" } install_ini() { clear txt -b echo -e "\033[92m -- INSTALANDO PAQUETES NECESARIOS -- " txt -b ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null locale-gen en_US.UTF-8 >/dev/null 2>&1 update-locale LANG=en_US.UTF-8 >/dev/null 2>&1 echo -e "\033[97m # Instalando UTF-8 ................... $ESTATUS " apt-get install gawk -y >/dev/null 2>&1 #bc [[ $(dpkg --get-selections | grep -w "jq" | head -1) ]] || apt-get install jq -y &>/dev/null [[ $(dpkg --get-selections | grep -w "jq" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "jq" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install jq................... $ESTATUS " #SCREEN [[ $(dpkg --get-selections | grep -w "screen" | head -1) ]] || apt-get install screen -y &>/dev/null [[ $(dpkg --get-selections | grep -w "screen" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "screen" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install screen............... $ESTATUS " #apache2 [[ $(dpkg --get-selections | grep -w "curl" | head -1) ]] || apt-get install curl -y &>/dev/null [[ $(dpkg --get-selections | grep -w "curl" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "curl" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install curl................. $ESTATUS " #socat [[ $(dpkg --get-selections | grep -w "socat" | head -1) ]] || apt-get install socat -y &>/dev/null [[ $(dpkg --get-selections | grep -w "socat" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "socat" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install socat................ $ESTATUS " #netcat [[ $(dpkg --get-selections | grep -w "netcat" | head -1) ]] || apt-get install netcat -y &>/dev/null [[ $(dpkg --get-selections | grep -w "netcat" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "netcat" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install netcat............... $ESTATUS " #netcat-traditional [[ $(dpkg --get-selections | grep -w "netcat-traditional" | head -1) ]] || apt-get install netcat-traditional -y &>/dev/null [[ $(dpkg --get-selections | grep -w "netcat-traditional" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "netcat-traditional" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install netcat-traditional... $ESTATUS " #net-tools [[ $(dpkg --get-selections | grep -w "net-tools" | head -1) ]] || apt-get install net-tools -y &>/dev/null [[ $(dpkg --get-selections | grep -w "net-tools" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "net-tools" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install net-tools............ $ESTATUS " #cowsay [[ $(dpkg --get-selections | grep -w "cowsay" | head -1) ]] || apt-get install cowsay -y &>/dev/null [[ $(dpkg --get-selections | grep -w "cowsay" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "cowsay" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install cowsay............... $ESTATUS " #figlet [[ $(dpkg --get-selections | grep -w "figlet" | head -1) ]] || apt-get install figlet -y &>/dev/null [[ $(dpkg --get-selections | grep -w "figlet" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "figlet" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install figlet............... $ESTATUS " #lolcat apt-get install lolcat -y &>/dev/null sudo gem install lolcat &>/dev/null [[ $(dpkg --get-selections | grep -w "lolcat" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "lolcat" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install lolcat............... $ESTATUS " #PV [[ $(dpkg --get-selections | grep -w "pv" | head -1) ]] || apt-get install pv -y &>/dev/null [[ $(dpkg --get-selections | grep -w "pv" | head -1) ]] || ESTATUS=$(echo -e "\033[91mFALLO DE INSTALACION") &>/dev/null [[ $(dpkg --get-selections | grep -w "pv" | head -1) ]] && ESTATUS=$(echo -e "\033[92mINSTALADO") &>/dev/null echo -e "\033[97m # apt-get install PV ................ $ESTATUS " txt -b echo -e "\033[92m La instalacion de paquetes necesarios a finalizado" txt -b echo -e "\033[97m Si la instalacion de paquetes tiene fallas" echo -ne "\033[97m Reintentar Install Paquetes [ s/n ]: " read inst [[ $inst = @(s|S|y|Y) ]] && install_ini } check_ip() { MIP=$(ip addr | grep 'inet' | grep -v inet6 | 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}' | head -1) MIP2=$(wget -qO- ipv4.icanhazip.com) [[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP" echo "$IP" >/usr/bin/vendor_code } DOWS() { lnK='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/scripts' [[ ! -e /etc/scripts/scripts.conf ]] && { mkdir -p /etc/scripts/{scriptdk1,darnix/} clear&&clear figlet 'scps'|lolcat msg -b print_center -m 'instalando scripts' msg -b ( cd /etc/scripts/scriptdk1&&wget ${lnK}/chukk.tar >/dev/null 2>&1 tar xpf chukk.tar&&rm -rf userDIR *.txt 0 *.tar >/dev/null ) && echo -e "\e[1;30m[# \e[1;34mscript: \e[38;5;99m SCRIPTDK1\e[1;30m]" || echo -e "\e[1;31m[x] error al instalar scriptdk1 [x]" for i in `ls`; do echo -e "\e[1;30m[\e[1;34m${z:=1}\e[1;30m] <<===>> [\e[1;36m$i\e[1;30m]" files+="$i "&&z=$(( ${z:=1} + 1 )) done echo $files > /etc/newadm-instalacao unset -v z ( cd /etc/scripts&&wget $lnK/SCRIPTMX.zip >/dev/null 2>&1 unzip SCRIPTMX.zip >/dev/null 2>&1 mv /etc/scripts/SCRIPT /etc/scripts/vpsmx&&rm SCRIPTMX.* cd /etc/scripts/vpsmx ) && echo -e "\e[1;30m[# \e[1;34mscript: \e[38;5;99m VPSMX/CASITA\e[1;30m]" || echo -e "\e[1;31m[x] error al instalar VPSMX/Casita [x]" for i in `ls`; do echo -e "\e[1;30m[\e[1;34m${z:=1}\e[1;30m] <<===>> [\e[1;36m$i\e[1;30m]" vpsmx+="$i "&&z=$(( ${z:=1} + 1 )) done echo $vpsmx >> /etc/newadm-instalacao unset -v z ( cd /etc/scripts&&wget $lnK/SCRIPT-LATAM.zip >/dev/null 2>&1 unzip SCRIPT-LATAM.zip >/dev/null 2>&1 mv /etc/scripts/SCRIPT-LATAM /etc/scripts/latam cd /etc/scripts/latam ) && echo -e "\e[1;30m[# \e[1;34mscript: \e[38;5;99m SCRIPT-LATAM\e[1;30m]" || echo -e "\e[1;31m[x] error al instalar SCRIPT-LATAM [x]" for i in `ls`; do echo -e "\e[1;30m[\e[1;34m${z:=1}\e[1;30m] <<===>> [\e[1;36m$i\e[1;30m]" latam+="$i "&&z=$(( ${z:=1} + 1 )) done unset -v z echo $latam >> /etc/newadm-instalacao&&rm /etc/scripts/*.zip >/dev/null 2>&1 unset -v z ( cd /etc/scripts&&wget $lnK/menu.tar >/dev/null 2>&1 tar xpf `pwd`/menu.tar --directory /etc/scripts/darnix >/dev/null 2>&1 rm menu.tar ) && echo -e "\e[1;30m[ \e[1;34mscript: \e[1;36mdarnix \e[1;30m]" || txt -rm 'error al instalar el script' for i in `ls /etc/scripts/darnix`; do dnx+=$(echo -ne "$i ") done echo $dnx >> /etc/newadm-instalacao ; } } atualiza_fun() { txt -b [[ -d ./update ]] && rm -rf ./update/* || mkdir ./update cd ./update/ unset arqs n=1 rm -f $HOME/files.log for arqs in $(ls $HOME/update); do echo -ne "\033[1;33m FILE \e[32m [${n}.gen] \e[0m " fun_filez $arqs >/dev/null 2>&1 && echo -e "\033[1;31m- \033[1;31m $arqs (no Trasladado!)" || echo -e "\033[1;31m- \033[1;32m $arqs Trasladado!" n=$(($n + 1)) done mkdir -p /etc/scripts/{vpsmx,latam,scriptdk1,darnix/} mv -f /root/update/* /etc/scripts/scriptdk1 echo 'source <(curl -sSL https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/init.bash) --menu' > /usr/bin/menu chmod +x /usr/bin/menu cd $HOME for i in `echo "PDirect.py PGet.py POpen.py PPriv.py PPub.py"`; do cp /etc/scripts/scriptdk1/$i /etc/scripts/latam/$i done ( wget -O /etc/scripts/latam/menu.sh https://raw.githubusercontent.com/drowkid01/LATAM_Oficial/main/SCRIPT-LATAM/menu.sh wget -O /etc/scripts/latam/LATAMbot.sh https://raw.githubusercontent.com/drowkid01/LATAM_Oficial/main/SCRIPT-LATAM/botmanager/LATAMbot.sh ) &> /dev/null txt -b echo -e "\033[1;92m DIGITE EL COMANDO: \033[1;33mgerar " txt -b [[ -e $HOME/lista ]] && rm $HOME/lista [[ -d $HOME/update ]] && rm -rf $HOME/update } DIR="/etc/http-shell" #LIST="-SPVweN" meu_ip() { MIP=$(ip addr | grep 'inet' | grep -v inet6 | 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}' | head -1) MIP2=$(wget -qO- ipv4.icanhazip.com) [[ "$MIP" != "$MIP2" ]] && IP="$MIP2" || IP="$MIP" } mudar_instacao() { while [[ ${var[$value]} != 0 ]]; do [[ -e /etc/newadm-instalacao ]] && BASICINST="$(cat /etc/newadm-instalacao)" || BASICINST="cabecalho menu_credito ferramentas menu_inst PPub.py usercodes payloads ssl paysnd.sh verifica PDirect.py v-local.log PGet.py ultrahost menu POpen.py shadowsocks.sh fai2ban PPriv.py" clear echo -e $BARRA echo -e "MENU SSELECCI�N DE INSTALACI�N" echo -e $BARRA echo "[0] - FINALIZAR PROCEDIMIENTO" i=0 for arqx in $(ls ${SCPT_DIR}); do [[ $arqx = @(gerar.sh|http-server.py) ]] && continue [[ $(echo $BASICINST | grep -w "$arqx") ]] && echo "[$i] - [X] - $arqx" || echo "[$i] - [ ] - $arqx" var[$i]="$arqx" let i++ done echo -ne "Seleccione un archivo [Adicionar/Eliminar]: " read value [[ -z ${var[$value]} ]] && return if [[ $(echo $BASICINST | grep -w "${var[$value]}") ]]; then rm -f /etc/newadm-instalacao local BASIC="" for INSTS in $(echo $BASICINST); do [[ $INSTS = "${var[$value]}" ]] && continue BASIC+="$INSTS " done echo $BASIC >/etc/newadm-instalacao else echo "$BASICINST ${var[$value]}" >/etc/newadm-instalacao fi done } 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 txt -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 } ofusl() { 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]="v" ;; "v") txt[$i]="." ;; "1") txt[$i]="@" ;; "@") txt[$i]="1" ;; "2") txt[$i]="?" ;; "?") txt[$i]="2" ;; "4") txt[$i]="p" ;; "p") txt[$i]="4" ;; "-") txt[$i]="L" ;; "L") txt[$i]="-" ;; 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 } fix_key() { ip=$(wget -qO- ipv4.icanhazip.com) unset -v BASICINST SCPT_DIR LIST keyf valuekey fmc valuekey="$(date | md5sum | head -c11)" valuekey+="$(echo $(($RANDOM * 10)) | head -c 6)" case $1 in --scriptdk | --scriptcgh) shift&&unset -v valuek&&valuek="$1" LIST='-SPVweN'&&keyf=$(ofusdk "$ip:8888/$valuekey/$LIST") SCPT_DIR='/etc/scripts/scriptdk1' BASICINST=$(ls ${SCPT_DIR})&&fmc='menu_credito' ;; --vpsmx | --casita ) shift&&unset -v valuek&&valuek="$1" LIST='lista-arq'&&keyf=$(ofusc "$ip:8888/$valuekey/$LIST") SCPT_DIR='/etc/scripts/vpsmx' BASICINST=$(ls ${SCPT_DIR}) ;; --latam | --script-latam ) shift&&unset -v valuek&&valuek="$1" LIST='-SPVweN'&&keyf=$(ofusl "$ip:8888/$valuekey/$LIST") SCPT_DIR='/etc/scripts/latam' BASICINST=$(ls ${SCPT_DIR}) ;; --darnix | --scp-dnx ) shift&&unset -v valuek&&valuek="$1" LIST='lista-arq'&&keyf=$(ofusdk "$ip:8888/$valuekey/$LIST") SCPT_DIR='/etc/scripts/darnix' BASICINST=$(ls ${SCPT_DIR}) ;; esac unset nomkey clear&&clear figlet 'KEYGEN'|lolcat msg -b echo -ne "\e[1;30m[#\e[1;34mIngresa tu reseller: " &&read -p $'\e[1;36m' nomkey nomkey=${nomkey:=@drowkid01} fmc="${fmc:=message.txt}" list_fix "$valuekey" "$nomkey" txt -b clear&&clear figlet "KEYGEN"|lolcat msg -b print_center -m " KEY >>> $keyf " enter } 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) txt -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 txt -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 } } del_KILL() { for arqlist in $(ls $DIR | grep -v "ERROR-KEY" | grep -v ".name"); do [[ -e /${DIR}/${arqlist}.name ]] || rm -rf /${DIR}/${arqlist} done } 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) txt -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 txt -b2 echo -ne "\033[0m" && read -p "Enter" } start_gen() { unset bot_ini PIDGEN=$(ps x | grep -v grep | grep "http-server.sh") if [[ ! $PIDGEN ]]; then txt -b echo -ne "\033[1;97m Poner en linea despues de un reinicio [s/n]: " read bot_ini txt -b [[ $bot_ini = @(s|S|y|Y) ]] && { crontab -l >/root/cron echo "@reboot screen -dmS generador /bin/http-server.sh -start" >>/root/cron crontab /root/cron rm /root/cron echo '#!/bin/bash killall http-server.sh screen -dmS generador /bin/http-server.sh -start echo #' >/bin/genon chmod +rwx /bin/genon echo "00 * * * * root bash /bin/genon" >>/etc/crontab service cron restart } || { crontab -l >/root/cron sed -i '/http-server.sh/ d' /root/cron crontab /root/cron rm /root/cron sed '/genon/ d' /etc/crontab >/bin/ejecutar/crontab cat /bin/ejecutar/crontab >/etc/crontab service cron restart } genon else killall http-server.sh fi } message_gen() { read -p "Ingresa el Mensaje: " MSGNEW [[ -z $MSGNEW ]] && return echo $MSGNEW >/etc/menu_ito cat /etc/menu_ito >${SCPT_DIR}/menu_credito read -p "Ingresa tu Numero de Contacto o tu ALIAS de TELEGRAM: " MSGNEW echo $MSGNEW >/etc/menu_numito && chmod +rwx /etc/menu_numito txt -b } act_gen() { while [[ ${varread} != @([0-2]) ]]; do echo -e "Bienvenido al Actualizador, Escoje que vas a Actualizar\n 1).- KEY ACTIVA\n 2).- Creditos del ADM\n " | lolcat echo -ne "${cor[6]}" read -p " Escoje :" varread done txt -b if [[ ${varread} = 0 ]]; then return elif [[ ${varread} = 1 ]]; then att_gen_key elif [[ ${varread} = 2 ]]; then message_gen fi #source <(curl -sL https://raw.githubusercontent.com/ChumoGH/ChuKK-SCRIPT/master/Key-gerar/insta.sh) } rmv_iplib() { echo -e "SERVIDORES DE KEY ATIVOS!" rm /var/www/html/newlib && touch /var/www/html/newlib rm ${SCPT_DIR}/*.x.c &>/dev/null [[ -z $(ls $DIR | grep -v "ERROR-KEY") ]] && return for arqs in $(ls $DIR | grep -v "ERROR-KEY" | grep -v ".name"); do if [[ $(cat ${DIR}/${arqs}.name | grep GERADOR) ]]; then var=$(cat ${DIR}/${arqs}.name) ip=$(cat ${DIR}/${arqs}/keyfixa) # echo -ne "\033[1;31m[USUARIO]:(\033[1;32m${var%%[*}\033[1;31m) \033[1;33m[GERADOR]:\033[1;32m ($ip)\033[0m" echo "$ip" >>/var/www/html/newlib && echo -e " \033[1;36m[ATUALIZADO]" fi done echo "51.222.29.216" >>/var/www/html/newlib txt -b read -p "Enter" } bot_menu() { [[ -e /etc/nivbot ]] || echo "0" >/etc/nivbot [[ -d /etc/ADM-db ]] && chmod +rwx /etc/ADM-db/* echo -ne "\033[1;31m[ ! ] RESPALDANDO USUARIO ADMINISTRADOR " ( [[ -e /etc/ADM-db/sources/costes ]] && mv /etc/ADM-db/sources/costes $HOME/costes [[ -e /etc/ADM-db/token ]] && mv /etc/ADM-db/token $HOME/token [[ -e /etc/ADM-db/Admin-ID ]] && mv /etc/ADM-db/Admin-ID $HOME/Admin-ID [[ -e /etc/ADM-db/User-ID ]] && mv /etc/ADM-db/User-ID $HOME/User-ID [[ -e /etc/ADM-db/limit ]] && mv /etc/ADM-db/limit $HOME/limit [[ -e /etc/ADM-db/resell ]] && mv /etc/ADM-db/resell $HOME/resell [[ -e /etc/ADM-db/ress ]] && mv /etc/ADM-db/ress $HOME/ress [[ -e /etc/ADM-db/num-key.cont ]] && mv /etc/ADM-db/num-key.cont $HOME/num-key.cont ) && echo -e "\033[1;32m [OK]" || echo -e "\033[1;31m [FAIL]" CIDdir=/etc/ADM-db && [[ ! -d ${CIDdir} ]] && mkdir ${CIDdir} [[ ! -e "${CIDdir}/confbot.sh" ]] && wget --no-check-certificate -O ${CIDdir}/confbot.sh https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/Code-BOT-General/intBOT.sh &>/dev/null && chmod +rwx ${CIDdir}/confbot.sh sed -i -e 's/\r$//' ${CIDdir}/confbot.sh source ${CIDdir}/confbot.sh && rm -f ${CIDdir}/confbot.sh bot_conf } 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 @drowkid01!" ]] && 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 txt -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)" txt -b echo -e " \033[0;35m[\033[0;36m0\033[0;35m] \033[0;34m<\033[0;33m Regresar" txt -b echo -ne "${cor[6]}" read -p " Opcion : " varread done txt -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 } # SISTEMA DE SELECAO selection_fn() { local selection="null" local range for ((i = 0; i <= $1; i++)); do range[$i]="$i "; done while [[ ! $(echo ${range[*]} | grep -w "$selection") ]]; do echo -ne "\033[1;37mOpcion: " >&2 read selection tput cuu1 >&2 && tput dl1 >&2 done echo $selection } 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" } dropIP() { [[ ! -e /etc/dropIP.sh ]] && wget -q -O /etc/dropIP.sh https://www.dropbox.com/s/12r0h64vb1lc1oy/dropIP.sh?dl=0 unset PIDGEN if [[ -e /var/www/html/ChumoGH/VPSbot/main/TeleBotGen/Control/Control-Bot ]]; then echo -e "[Unit] Description=BotGen Service by @drowkid01 After=network.target StartLimitIntervalSec=0 [Service] Type=simple User=root WorkingDirectory=/root ExecStart=/bin/bash /etc/dropIP.sh Restart=always RestartSec=3s [Install] WantedBy=multi-user.target" >/etc/systemd/system/dropIP.service systemctl enable dropIP &>/dev/null systemctl start dropIP &>/dev/null else killall dropIP &>/dev/null systemctl stop dropIP &>/dev/null systemctl disable dropIP &>/dev/null rm /etc/systemd/system/dropIP.service &>/dev/null clear txt -b echo -e "\033[1;31m BotGen fuera de linea" txt -b read -p "Presione Enter para continuar " fi } menau() { unset PID_GEN1 PID_GEN=$(ps x | grep -v grep | grep "http-server.sh") PID_GEN1=$(ps x | grep -v grep | grep "8888") PID_BGEN1=$(ps x | grep -v grep | grep "BotGen.sh") add_fun="${PID_BGEN1}" tit 'BOTGEN' [[ ! $PID_GEN ]] && PID_GEN="\033[0;35m[\033[0;31mDETENIDO\033[0;35m]" || PID_GEN="\033[0;35m[\033[0;36mWORKING\033[0;35m]" [[ ! $PID_GEN1 ]] && PID_GEN1="\033[0;35m[\033[0;31m OFF \033[0;35m]" || PID_GEN1="\033[0;35m[\033[0;36m ON \033[0;35m]" [[ ! $PID_BGEN1 ]] && { PID_BGEN1="\033[0;35m[\033[0;31mNO INICIADO\033[0;35m]" lim_menu='11' } || PID_BGEN1="\033[0;35m[\033[0;36mFUNCIONANDO\033[0;35m]" && lim_menu='12' ports_ [[ -e /etc/ADM-db/limit ]] && limcont=$(cat /etc/ADM-db/limit) [[ "${limcont}" -ge "998" ]] && limted="50" || { [[ -e /etc/ADM-db/limit ]] && limted=$(cat /etc/ADM-db/limit) } [[ -z $limted ]] && limted="No Found" txt -b cd ${SCPT_DIR}&&unset spC scriptz for i in `ls /etc/scripts`; do spC[${y:=0}]+="$i " for x in `ls /etc/scripts/$i`; do nfiles[${y:=0]}]+="$x " done y=$(( ${y:=0} + 1 )) scriptz+="${i}: \e[1;36m$(ls /etc/scripts/$i|wc -l)" echo -ne " \e[1;30m[\e[1;34m$i=>\e[1;36m$(ls /etc/scripts/$i|wc -l) \e[1;30m] " [[ ${spC[@]} == '4' ]] && break done #echo -e "${scriptz}" cd $HOME&&echo -ne "\n" txt -b meu_ip [[ -z $add_fun ]] || echo -e "\033[0;35m[\033[0;36m1\033[0;35m] \033[0;34m<\033[0;33m Alterar Limite del BOT ( $limted )" #$PID_GEN1\033[0m echo -e "\033[0;35m[\033[0;36m2\033[0;35m] \033[0;34m<\033[0;33m APAGAR/VER KEYS" #echo -e "\033[0;35m[\033[0;36mx\033[0;35m] \033[0;34m<\033[0;33m ------------------------" #KEYS ( GENERADOR )" echo -e "\033[0;35m[\033[0;36m4\033[0;35m] \033[0;34m<\033[0;34m Generar Keys ALEATORIAS" echo -e "\033[0;35m[\033[0;36m5\033[0;35m] \033[0;34m<\033[0;33m INICIAR/PARAR KEYGEN $PID_GEN\033[0m" echo -e "\033[0;35m[\033[0;36m6\033[0;35m] \033[0;34m<\033[0;33m REGISTRO DE KEYS USADAS" echo -e "\033[0;35m[\033[0;36m7\033[0;35m] \033[0;34m<\033[0;33m Checar KEY ACTIVADA" echo -e "\033[0;35m[\033[0;36m8\033[0;35m] \033[0;34m<\033[0;33m ACTUALIZAR GENERADOR/KEY/CREDITOS " echo -e "\033[0;35m[\033[0;36m9\033[0;35m] \033[0;34m<\033[0;33m Actualizar KEY" echo -e "\033[0;35m[\033[0;36m10\033[0;35m] \033[0;34m<\033[0;33m CONFIGURAR BOT DE TELEGRAM $PID_BGEN1\033[0m" [[ -z $add_fun ]] || echo -e "\033[0;35m[\033[0;36m11\033[0;35m] \033[0;34m<\033[0;33m + / - CREDITOS Por ID" echo -e "\033[0;35m[\033[0;36m0\033[0;35m] \033[0;34m<\033[0;33m SALIR" txt -b } function tit(){ [[ $(dpkg --get-selections|grep -w 'figlet') ]] || apt install figlet -y >/dev/null 2>&1 [[ $(dpkg --get-selections|grep -w 'lolcat') ]] || { apt install lolcat -y >/dev/null 2>&1 snap install lolcat >/dev/null 2>&1 } title="$1"&&valuE="$2" clear&&clear figlet "$title"|lolcat txt -b [[ -n $valuE ]] && print_center -m "$valuE" } if [[ $1 == @(-i|--install) ]]; then [[ -d /etc/scripts ]] && rm -rf /etc/scripts add-apt-repository universe apt update -y apt upgrade -y install_ini&&DOWS unset -v SCPT_DIR SCPT_DIR="/etc/scripts/scriptdk1" scps=( "/etc/scripts/scriptdk1" "/etc/scripts/vpsmx" "/etc/scripts/latam" "/etc/scripts/darnix") [[ ! -e /bin/ShellBot.sh ]] && wget -O /bin/ShellBot.sh https://darix.ooguy.com/drowkid01/dpbt/otros/ShellBot.sh >/dev/null 2>&1 echo '0' >/etc/http-instas wget -O /bin/http-server.sh https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/exec/http-dk.sh && chmod +x /bin/http-server.sh elif [[ $1 == @(-m|--menu) ]]; then clear unset readvalue [[ ! -d /etc/http-shell ]] && mkdir /etc/http-shell IVAR="/etc/http-instas" source <(curl -sSL https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/otros/msg) while :; do menau selection=$(selection_fun $lim_menu) case ${selection} in 0) cd $HOME && break ;; 1) alter_limit ;; 2) remover_key ;; 3) remover_key_usada ;; 4) #fix_key ;; clear&&clear figlet 'KEYGEN'|lolcat txt -b menu_func 'SCRIPTDK1' 'VPSMX' 'LATAM' 'DARNIX' back ox=$(selection_fun 4) case $ox in 1)fix_key --scriptdk1;; 2)fix_key --vpsmx;; 3)fix_key --latam;; 4)fix_key --darnix;; 0)return $?;; esac ;; 5) start_gen ;; 6) echo -ne "\033[1;36m" echo -e "$(cat /etc/gerar-sh-log)" 2>/dev/null || echo "NINGUN LOG DE MOMENTO" echo -ne "\033[0m" && read -p "Enter" ;; 7) fum_ver ;; 8) act_gen ;; 9) att_gen_key ;; 10) bot_menu ;; 11) alter_id ;; esac done elif [[ $1 == '--down-files' ]]; then DOWS else exit&&exit fi