Server IP : 184.154.167.98 / Your IP : 3.139.233.134 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ddos/ |
Upload File : |
#!/bin/bash #Taking hostname below HOST=$(/bin/hostname) #upgrading Kernel /usr/bin/yum upgrade kernel -y # checking latest installed kernel on server LATEST=$(/bin/rpm -q kernel |tail -n1|sed -e 's/kernel-//') # Checking currently used or running kernel on server CURRENT=$(/bin/uname -r) # Checking here if latest kernel present on server and currently running kernel on server is same if [ $LATEST == $CURRENT ] then echo "" else printf " Hello, Latest kernel [ $LATEST ] is installed on server $HOST. Currently Server is running old Kernel of version [ $CURRENT ]. To set latest kernel as current kernel, server $HOST should be rebooted. Please schedule a reboot for server $HOST soon. Thanks, Support Team APSC Infotech & Software Solutions Pvt Ltd. -------------------------------------------------------- This is output of script created by APSC InfoTech & Software Solutions Pvt Ltd for their clients. The use of this script should be done with permission of APSC InfoTech & Software Solutions Pvt Ltd. Copywrite (c) 2007-2010 apsinfotech.com, Report Bugs to admin@apsinfotech.com -------------------------------------------------------- " | mail -s "New Kernel Installed on $HOST" -c apscservers@gmail.com apscservers@gmail.com | curl -X POST --data-urlencode 'payload={ "username": "webhookbot", "text": "Latest kernel is installed on kara.dnsnetservice.com server. To set latest kernel as current kernel, Please reboot this server.", "icon_emoji": ":ghost:"}' https://hooks.slack.com/services/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 fi # THE END # Copywrite (c) 2007-2010 apsinfotech.com # This script created by APSC InfoTech & Software Solutions Pvt Ltd for their clients. # The use of this script should be done with permission of APSC InfoTech & Software Solutions Pvt Ltd. # Copywrite (c) 2007-2010 apsinfotech.com, Report Bugs to admin@apsinfotech.com