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: //usr/lib64/nagios/plugins/check_yum_updates
#!/bin/bash
##################################################
# Name: check-yum-updates.sh
# Description: Checks for yum updates.

##################################################
# Set Variables
#
YUMTMP="/tmp/yum-check-update.$$"
sudo /usr/bin/yum check-update | grep -v kernel* | grep -v kmod* >& $YUMTMP
YUMSTATUS="$?"
#
##################################################
# Main Script
#
case $YUMSTATUS in
0)
# no updates!
echo "There are no updates available."
exit 0
;;

*)
# updates available
echo "Updates are available."
exit 1
;;
esac
##################################################