@drowkid1

This commit is contained in:
@drowkid01 2025-05-27 04:50:49 -06:00
parent e09a2a9082
commit 80d8c98b3c

442
init.sh Normal file → Executable file
View File

@ -1,225 +1,4 @@
#!/bin/bash #!/bin/bash
flech='=>'
#==>> funciones generales.
menu_func(){
local options=${#@}
local array
for((num=1; num<=$options; num++)); do
#echo -ne "\033[0;35m [\033[0;36m$num\033[0;35m]\033[0;33m ${flech} "
echo -ne "\e[1;30m [\e[1;36m$num\e[1;30m] <<======>> [#"
#echo -ne " \033[0;35m [\033[0;36m$num\033[0;35m]\033[0;33m ${flech} "
array=(${!num})
case ${array[0]} in
"-vm")txt=$(echo ${array[@]}|sed 's/-vm//g') && echo -e "\033[1;30m[\e[1;31m!\e[1;30m]\033[1;31m$txt \e[1;30m[\e[1;31m!\e[1;30m]";;
"-fi")txt=( [0]="$(echo "${array[@]}"|sed 's/-fi//g'|cut -d';' -f1|sed 's/ //')" [1]="$(echo "${array[@]}"|sed 's/-fi//g'|cut -d';' -f2)") && echo -e "\e[1;37m${txt[0]} \e[1;30m[\e[38;5;219m#${txt[1]}\e[1;30m]";;
-b|-bar|-bar2|-bar3|-bar4)echo -e "\033[1;37m${array[@]:1}\e[1;30m]\n$(msg -b)";;
*)echo -e "\033[1;37m${array[@]}\e[1;30m]";;
esac
done
}
selection_fun() {
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;30m╰⺠Seleccione su opción: \e[1;32m" >&2
read selection
tput cuu1 >&2 && tput dl1 >&2
done
echo $selection
}
print_center(){
if [[ -z $2 ]]; then
text="$1"
else
col="$1"
text="$2"
fi
while read line; do
unset space
x=$(( ( 54 - ${#line}) / 2))
for (( i = 0; i < $x; i++ )); do
space+=' '
done
space+="$line"
if [[ -z $2 ]]; then
msg -azu "$space"
else
msg "$col" "$space"
fi
done <<< $(echo -e "$text")
}
# titulos y encabesados
title(){
clear
msg -b
if [[ -z $2 ]]; then
print_center -azu "$1"
else
msg "$@"
fi
msg -b
}
# finalizacion de tareas
enter(){
msg -b
text="►► enter para continuar ◄◄"
if [[ -z $1 ]]; then
print_center -blak "$text"
else
print_center "$1" "$text"
fi
read
}
# opcion, regresar volver/atras
back(){
msg -b
echo -ne " \033[1;30m [\033[1;36m0\033[1;30m] <<====>> [\e[48;5;99m#\e[1;37mSALIR\e[1;30m]\e[0m\n"
msg -b
}
msg() {
local colors='colores.conf'
if [[ ! -e $colors ]]; then
COLOR[0]='\033[1;37m' #BRAN='\033[1;37m'
COLOR[1]='\e[31m' #VERMELHO='\e[31m'
COLOR[2]='\e[32m' #VERDE='\e[32m'
COLOR[3]='\e[33m' #AMARELO='\e[33m'
COLOR[4]='\e[34m' #AZUL='\e[34m'
COLOR[5]='\e[35m' #MAGENTA='\e[35m'
COLOR[6]='\033[1;97m' #MAG='\033[1;36m'
COLOR[7]='\033[1;49;95m'
COLOR[8]='\033[1;49;96m'
else
local COL=0
for number in $(cat $colors); do
case $number in
1)COLOR[$COL]='\033[1;37m';;
2)COLOR[$COL]='\e[31m';;
3)COLOR[$COL]='\e[32m';;
4)COLOR[$COL]='\e[33m';;
5)COLOR[$COL]='\e[34m';;
6)COLOR[$COL]='\e[35m';;
7)COLOR[$COL]='\033[1;36m';;
8)COLOR[$COL]='\033[1;49;95m';;
9)COLOR[$COL]='\033[1;49;96m';;
esac
let COL++
done
fi
NEGRITO='\e[1m'
SEMCOR='\e[0m'
case $1 in
-b)echo -e "\e[1;30mâ”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>\e[0m";;
-ne)cor="${COLOR[1]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
-ama)cor="${COLOR[3]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-r | -red)echo -e "\e[91m$2\e[0m";;
-verm)echo -e "\e[1;30m[\e[1;31m!\e[1;30m] \e[91m$2 \e[1;30m[\e[1;91m!\e[1;30m]\e[0m";;
-verm2)cor="${COLOR[1]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-aqua)cor="${COLOR[8]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-azu)cor="${COLOR[6]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-verd)cor="${COLOR[2]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-bra)cor="${COLOR[0]}${SEMCOR}" && echo -e "${cor}${2}${SEMCOR}";;
-nazu) cor="${COLOR[6]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
-nverd)cor="${COLOR[2]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
-nama) cor="${COLOR[3]}${NEGRITO}" && echo -ne "${cor}${2}${SEMCOR}";;
-t)toilet -f future "$2"|lolcat;;
-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}";;
-blu) cor="${COLOR[9]}${NEGRITO}" && echo -e "${cor}${2}${SEMCOR}";;
-blu1) cor="${COLOR[9]}" && echo -e "${cor}${2}${SEMCOR}";;
#-bar)ccor="${COLOR[1]}•••••••••••••••••••••••••••••••••••••••••••••••••" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
#-bar)ccor="${COLOR[3]}â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>â”<C3A2>" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
-bar)ccor="${COLOR[3]}â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
-bar1)ccor="${COLOR[1]}â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
-bar2)ccor="${COLOR[1]}=====================================================" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
-bar3)ccor="${COLOR[3]}â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>â”<EFBFBD>" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
-bar4)ccor="${COLOR[5]}•••••••••••••••••••••••••••••••••••••••••••••••••" && echo -e "${SEMCOR}${ccor}${SEMCOR}";;
esac
}
fun_bar() {
comando[0]="$1"
comando[1]="$2"
(
[[ -e $HOME/fim ]] && rm $HOME/fim
${comando[0]} -y > /dev/null 2>&1
${comando[1]} -y > /dev/null 2>&1
touch $HOME/fim
) > /dev/null 2>&1 &
echo -ne "\033[1;33m ["
while true; do
for((i=0; i<18; i++)); do
echo -ne "\033[1;31m##"
sleep 0.1s
done
[[ -e $HOME/fim ]] && rm $HOME/fim && break
echo -e "\033[1;33m]"
sleep 1s
tput cuu1
tput dl1
echo -ne "\033[1;33m ["
done
echo -e "\033[1;33m]\033[1;31m -\033[1;32m 100%\033[1;37m"
}
del(){
for (( i = 0; i <= $1; i++ )); do
tput cuu1 && tput dl1
done
}
mportas() {
unset portas
portas_var=$(lsof -V -i tcp -P -n | grep -v "ESTABLISHED" |grep -v "COMMAND" | grep "LISTEN")
while read port; do
var1=$(echo $port | awk '{print $1}') && var2=$(echo $port | awk '{print $9}' | awk -F ":" '{print $2}')
[[ "$(echo -e $portas|grep "$var1 $var2")" ]] || portas+="$var1 $var2\n"
done <<< "$portas_var"
i=1
echo -e "$portas"
}
fun_bar3(){
fun_bar "$@"
}
printext(){
unset text length content
local text=$@
local length=${#text}
function random(){ shuf -i 1-220 -n 1 ; }
for((i=0;i<=$length;i++));do
content+="\e[38;5;$(random)m${text:$i:1}"
done
echo -ne "$content"
}
cor[0]="\033[0m"
cor[1]="\033[1;34m"
cor[2]="\033[1;32m"
cor[3]="\033[1;37m"
cor[4]="\033[1;36m"
cor[5]="\033[1;33m"
cor[6]="\033[1;35m"
export -f msg
export -f fun_bar
export -f enter
export -f back
export -f print_center
export -f del printext mportas
#==>> instalador #==>> instalador
unset -v sdir unset -v sdir
sdir[0]='/etc/adm-db' sdir[0]='/etc/adm-db'
@ -230,7 +9,8 @@ urL='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main'
ip=$(wget -qO- ipv4.icanhazip.com) ip=$(wget -qO- ipv4.icanhazip.com)
[[ ! -d ${sdir[@]} ]] && mkdir -p ${sdir[@]} [[ ! -d ${sdir[@]} ]] && mkdir -p ${sdir[@]}
echo $ip > /usr/local/lib/exec-dk/ipdk echo $ip > /usr/local/lib/exec-dk/ipdk
[[ ! -e /usr/local/lib/exec-dk/msg ]] && wget -O /usr/local/lib/exec-dk/msg ${urL}/otros/msg >/dev/null 2>&1;chmod +rwx /usr/local/lib/exec-dk/msg
source /usr/local/lib/exec-dk/msg
ports_() { ports_() {
unset porta unset porta
_core=$(printf '%-1s' "$(grep -c cpu[0-9] /proc/stat)") _core=$(printf '%-1s' "$(grep -c cpu[0-9] /proc/stat)")
@ -272,73 +52,20 @@ ports_() {
echo "" 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() { list_fix() {
rm ${SCPT_DIR}/*.x.c &>/dev/null rm ${SCPT_DIR}/*.x.c &>/dev/null
unset KEY VALUE unset KEY VALUE
KEY="$1" KEY="$1"
name="$2" name="$2"
DIR='/etc/http-shell' DIR='/etc/http-shell'
basicinst[0]=$(ls /etc/scripts/scriptdk1) BASICINST=$(ls /etc/scripts/$3)
basicinst[1]=$(ls /etc/scripts/vpsmx) SCPT_DIR="/etc/scripts/$3"
basicinst[2]=$(ls /etc/scripts/latam)
BASICINST=${basicinst[$3]}
#CRIA DIR
i=0 i=0
#VALUE+="gerar.sh http-server.py $BASICINST" #VALUE+="gerar.sh http-server.py $BASICINST"
[[ ! -d $DIR ]] && mkdir -p $DIR [[ ! -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 VALUE=$BASICINST
dir="/etc/scripts/${SCPT_DIR}" dir="${SCPT_DIR}"
for arqx in $(ls /etc/scripts/$SCPT_DIR); do for arqx in $(ls /etc/scripts/$3); 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}"
@ -355,10 +82,9 @@ BASICINST=${basicinst[$3]}
#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 /etc/scripts/${scp}/$arqx ${DIR}/${KEY}/ cp ${SCPT_DIR}/$arqx ${DIR}/${KEY}/
echo "$arqx" >>${DIR}/${KEY}/${LIST} echo "$arqx" >>${DIR}/${KEY}/${LIST}
done done
else else
@ -376,8 +102,7 @@ BASICINST=${basicinst[$3]}
[[ ! -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
@ -401,36 +126,131 @@ ofus(){
echo "$txtofus" | rev echo "$txtofus" | rev
} }
fix_key() { ofus() {
SCPT_DIR="$1" unset server
nscp="$2" server=$(echo ${txt_ofuscatw} | cut -d':' -f1)
case ${SCPT_DIR} in unset txtofus
'scriptdk1')LIST='-SPVweN'&&fmc='menu_credito';; number=$(expr length $1)
'darnix'|'latam'|'vpsmx')LIST='lista-arq'&&fmc='message.txt';; 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 esac
txtofus+="${txt[$i]}"
done
echo "$txtofus" | rev
}
createkey(){
unset valuekey
valuekey="$(date | md5sum | head -c10)"
valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
IP=$(wget -qO- ipv4.icanhazip.com)
case $1 in
--scpdk)list='-SPVweN'
key=$(ofusdk "$IP:8888/$valuekey/$list")
;;
--vpsmx)list='lista-arq'
key=$(ofusc "$IP:8888/$valuekey/$list")
;;
--latam)list='lista-arq'
key=$(ofus "$IP:8888/$valuekey/$list")
;;
esac
echo -e " $key"
}
checkey(){
read Key
Key="$(echo "$Key" | tr -d '[[:space:]]')"
if [[ $(ofusdk "$Key" | 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}') == "$(wget -qO- ipv4.icanhazip.com)" ]]; then
echo -e "key de scriptdk1"
elif [[ $(ofusc "$Key" | 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}') == "$(wget -qO- ipv4.icanhazip.com)" ]]; then
echo -e "key de vpsmx"
elif [[ $(ofus "$Key" | 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}') == "$(wget -qO- ipv4.icanhazip.com)" ]]; then
echo -e "key de latam"
fi
echo -e "ip: $IiP\nkey: $Key"
}
fix_key() {
unset valuekey
valuekey="$(date | md5sum | head -c10)"
valuekey+="$(echo $(($RANDOM*10))|head -c 5)"
IP="$(wget -qO- ipv4.icanhazip.com)"
case $1 in
--scpdk | --scriptdk1 | --chukk)
LIST='-SPVweN'&&fmc='menu_credito'
list_fix "$valuekey" "$name" "scriptdk1"
key=$(ofusdk "$IP:8888/$valuekey/$LIST")
;;
--latam)
LIST='lista-arq'&&fmc='message.txt'
list_fix "$valuekey" "$name" "latam"
key=$(ofus "$IP:8888/$valuekey/$LIST")
;;
--vpsmx)LIST='lista-arq'&&fmc='message.txt'
list_fix "$valuekey" "$name" "vpsmx"
key=$(ofusc "$IP:8888/$valuekey/$LIST")
;;
--darnix)LIST='lista-arq'&&fmc='message.txt'
list_fix "$valuekey" "$name" "darnix"
key=$(ofusc "$IP:8888/$valuekey/$LIST")
;;
esac
SCPT_DIR="/etc/scripts/${1//-/}"
echo -ne "\e[1;30m[•] \e[38;5;15mIngresa el reseller de la key: \e[1;32m"&&read nomkey echo -ne "\e[1;30m[•] \e[38;5;15mIngresa el reseller de la key: \e[1;32m"&&read nomkey
[[ -z $nomkey ]] && { [[ -z $nomkey ]] && {
nomkey="@drowkid1" nomkey="@drowkid1"
} }
msg -b msg -b
vkey=${nomkey:+@drowkid1} vkey=${nomkey:=drowkid1}
msg -b msg -b
echo "$nomkey" > /etc/scripts/${SCPT_DIR}/$fmc echo "$nomkey" > ${SCPT_DIR}/$fmc
clear&&clear clear&&clear
figlet 'KEY ADM'|lolcat figlet 'KEY ADM'|lolcat
msg -b&&msg -m " [ KEY ${SCPT_DIR} GENERADA CORRECTAMENTE ]" msg -b&&msg -m " [ KEY ${SCPT_DIR} GENERADA CORRECTAMENTE ]"
msg -b msg -b
for ((w = 0; w < ${numk:=1}; w++)); do echo -e " $(printext 'KEY: ') \e[1;97m${key}"
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 ))" "$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 " $(printext 'KEY: ') \e[1;97m${keyfinal}"
echo -e "\n\e[1;33mINSTALADOR ===>> ${instal}" echo -e "\n\e[1;33mINSTALADOR ===>> ${instal}"
done
msg -b msg -b
[[ -z $vkey ]] && vkey="@drowkid01" [[ -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 " ${ceLL} Soporte : Ubuntu 14.04 - 16.04 - 18.04 - 20.04 - 21.04 - 22.04\n S.O PREFERENTE 18.04"
@ -556,28 +376,28 @@ unset Keey
tput cuu1 && tput dl1 tput cuu1 && tput dl1
done done
if [[ $scp == 'scriptdk1' ]] && [[ $1 == $(( $OPTIND - 1 )) ]]; then if [[ $scp == 'scriptdk1' ]] && [[ $1 == $(( $OPTIND - 1 )) ]]; then
REQUEST=$(ofus "$Keey" | cut -d'/' -f2) REQUEST=$(ofusdk "$Keey" | cut -d'/' -f2)
else else
REQUEST=$(ofusb "$Keey"|cut -d'/' -f2) REQUEST=$(ofusb "$Keey"|cut -d'/' -f2)
fi fi
REQUEST=$(ofus $Keey|cut -d'/' -f2) REQUEST=$(ofusdk $Keey|cut -d'/' -f2)
echo -e "\n" echo -e "\n"
echo -e " FILE Contend : ${REQUEST} $(echo ${REQUEST} | wc -c)" echo -e " FILE Contend : ${REQUEST} $(echo ${REQUEST} | wc -c)"
echo -e "\n" echo -e "\n"
echo -e " VERIFICA, Si tu key Contiene \033[1;45m KEY DE ${scp}! \033[0m " echo -e " VERIFICA, Si tu key Contiene \033[1;45m KEY DE ${scp}! \033[0m "
echo -e "\n" echo -e "\n"
msg -ne " Link Key: http://$(ofus $Keey) \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}') IiP=$(ofusdk "$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" [[ $(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 ]" wget --no-check-certificate -O $HOME/list-key $(ofusdk $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)) ofen=$(wget -qO- $(ofusdk $Keey))
unset arqx unset arqx
[[ -d $HOME/install ]] && rm -rf $HOME/install/* || mkdir $HOME/install [[ -d $HOME/install ]] && rm -rf $HOME/install/* || mkdir $HOME/install
verificar_arq() { verificar_arq() {
echo "$1" >>$HOME/install/log.txt echo "$1" >>$HOME/install/log.txt
} }
n=1 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 IP=$(ofusdk "$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="." pontos="."
stopping=" COMPROBANDO " | sed -e 's/[^a-z -]//ig' stopping=" COMPROBANDO " | sed -e 's/[^a-z -]//ig'
for arqx in $(cat $HOME/list-key); do for arqx in $(cat $HOME/list-key); do
@ -754,7 +574,7 @@ case $1 in
echo -e "\e[1;30m[#\e[1;34mPara modificar manualmente los scripts y la información, entra en /etc/scripts \e[1;30m]" echo -e "\e[1;30m[#\e[1;34mPara modificar manualmente los scripts y la información, entra en /etc/scripts \e[1;30m]"
enter enter
clear&&clear clear&&clear
figlet 'scpdk1'â‚|lolc figlet 'scpdk1'<EFBFBD>|lolc
msg -b msg -b
;; ;;
@ -922,22 +742,22 @@ elif [[ $1 == @('-m'|'--menu') ]]; then
1)scp='scriptdk1' 1)scp='scriptdk1'
funtit 'SCPDK1' 'GENERANDO KEY SCRIPTDK1' funtit 'SCPDK1' 'GENERANDO KEY SCRIPTDK1'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[0].data.instal') instal=$(cat /etc/scripts/scripts.json|jq '.scripts[0].data.instal')
fix_key "$scp" '0' fix_key --scriptdk1
;; ;;
2)scp='vpsmx' 2)scp='vpsmx'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[1].data.instal') instal=$(cat /etc/scripts/scripts.json|jq '.scripts[1].data.instal')
funtit 'VPS-MX' 'GENERANDO KEY CASITAV11' funtit 'VPS-MX' 'GENERANDO KEY CASITAV11'
fix_key "$scp" '1' fix_key --vpsmx
;; ;;
3)scp='latam' 3)scp='latam'
funtit 'LATAM' 'GENERANDO KEY LATAM' funtit 'LATAM' 'GENERANDO KEY LATAM'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[2].data.instal') instal=$(cat /etc/scripts/scripts.json|jq '.scripts[2].data.instal')
fix_key "$scp" '2' fix_key --latam
;; ;;
4)scp='darnix' 4)scp='darnix'
instal=$(cat /etc/scripts/scripts.json|jq '.scripts[3].data.instal') instal=$(cat /etc/scripts/scripts.json|jq '.scripts[3].data.instal')
funtit 'DARNIX' 'GENERANDO KEY DARNIX' funtit 'DARNIX' 'GENERANDO KEY DARNIX'
fix_key "$scp" '3' fix_key --darnix
;; ;;
esac esac
;; ;;