🌐 G·TM Termux script for gtm

installation process
pkg update
pkg upgrade
pkg install dnsutils -y
after dyan procced na sa script

and edit the ns off my script yung ns.testing delete niyo yan tapos lagay mo yung sayu and copy mo lahat then paste mo sa termux din okey na automatic na mag run


LOOP_DELAY=0

declare -A SERVERS=(

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

["ns.testing"]="124.6.181.4"

)

DIG_EXEC="DEFAULT"

CUSTOM_DIG=/data/data/com.termux/files/home/go/bin/fastdig

case "${DIG_EXEC}" in

DEFAULT|D)

_DIG="$(command -v dig)"

;;

CUSTOM|C)

_DIG="${CUSTOM_DIG}"

;;

esac

if [ ! $(command -v ${_DIG}) ]; then

printf "Dig command failed to run, please install dig (dnsutils) or check DIG_EXEC & CUSTOM_DIG variables inside $( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )/$(basename "$0") file.\n"

fi

endscript() {

unset LOOP_DELAY SERVERS _DIG DIG_EXEC T R M

}

trap endscript

check() {

for server in "${!SERVERS[@]}"; do

for host in ${SERVERS["$server"]}; do

T="${host}"

R="${server}"

timeout -k 3 3 ${_DIG} @${T} "${R}"

if [ $? -eq 0 ]; then

M=32

else

M=32

fi

echo -e "\e[${M}m:${R} D:${T}\e[0m"

done

done

}

for server in "${!SERVERS[@]}"; do

echo -e "\e[34m${server}\e[0m -> ${SERVERS["$server"]}"

done

if [ "${LOOP_DELAY}" -eq 1 ]; then

let "LOOP_DELAY++"

fi

while true; do

check

sleep ${LOOP_DELAY}

done && chmod +x ../usr/bin/menu
 

About this Thread

  • 28
    Replies
  • 3K
    Views
  • 21
    Participants
Last reply from:
Keima17

Trending Topics

Online now

Members online
645
Guests online
11,169
Total visitors
11,814

Forum statistics

Threads
2,335,629
Posts
29,285,403
Members
1,134,197
Latest member
16266326271515272763
Back
Top