Server IP : 184.154.167.98 / Your IP : 18.225.98.132 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 : |
################################################################ # # # Script to Check CSF Firewall is disabled or enabled # # # # APSC InfoTech & Software Solutions Pvt Ltd # # # # -=-By=-SACHIN DEORE-=-=- # # # # # ################################################################ # Taking Hosting Name SERVER=$(/bin/hostname) # Taking values of modification MYPROCESS=$(/bin/cat /usr/local/ddos/bash_history) #LIMIT=5 if echo "$MYPROCESS" |grep "killall -9 mysql" || echo "$MYPROCESS" |grep "killwhom mysqld" then rm -rfv /usr/local/ddos/.mysql_status USERNAME="MYSQL SERVICE" WEBHOOK_URL="https://hooks.slack.com/services/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" output=$(echo "$MYPROCESS" |grep "killall -9 mysql" || echo "$MYPROCESS" |grep "killwhom mysqld") MESSAGETEXT="MYSQL Killed on ${HOSTNAME} : ${output}" echo $MESSAGETEXT JSON="{ \"username\":\"$USERNAME\", \"attachments\":[{\"color\":\"danger\" , \"text\": \"$MESSAGETEXT\"}]}" curl -s -d "payload=$JSON" "$WEBHOOK_URL" mv /usr/local/ddos/bash_history /root/history_backup/bash_history_`date +%Y-%m-%d-%H.%M.%S` else if [ -f "/usr/local/ddos/.mysql_status" ]; then exit else USERNAME="MYSQL SERVICE" WEBHOOK_URL="https://hooks.slack.com/services/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" MESSAGETEXT="RESOLVED!! MYSQL service is Restarted now!! ${HOSTNAME}" echo $MESSAGETEXT JSON="{ \"username\":\"$USERNAME\", \"attachments\":[{\"color\":\"good\" , \"text\": \"$MESSAGETEXT\"}]}" curl -s -d "payload=$JSON" "$WEBHOOK_URL" if [ ! -f /usr/local/ddos/.mysql_status ]; then echo 1 > /usr/local/ddos/.mysql_status exit fi fi fi