ROOTPLOIT
Server: Apache
System: Linux node6122.myfcloud.com 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User: bashacomputer (1004)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/nagios/plugins/check_a2_memlimits-on.shared
#!/bin/bash
if [ -e /sys/module/lve/parameters/lve_ubc ];then
  if [ `cat /sys/module/lve/parameters/lve_ubc` == 'Y' ];then
    echo "Memory_limits - Memory limits are on"
    exit 0
  fi
else
  if (( $(lvectl list|grep default|awk '{print $3}'|sed 's/[M|G]//'|tail -n1|awk -F '.' '{print $1}' |tr -d 'K')  > 0 ));then
    echo "Memory_limits - Memory limits are on"
    exit 0
  fi
fi
echo "Memory_limits - Cloudlinux is not enforcing memory limits"
exit 2