CXS is a paid scanner which is more compatible with cPanel servers. The following script is to scan the server using CXS and will send the scan report to your email address. ===== #!/bin/bash DATE=$(date +%F_%H:%M) REPORT=/root/cxs-{DATE}.txt HOST=$(hostname) CXS=$(which cxs) EMAIL_ID=”youremail@domain.tld” $CXS –allusers –generate –report $REPORT if [ -s $REPORT… Continue Reading Script to scan the server using CXS

+ First, we would need to add the FTP login details in .netrc file. If this file is not present then you can create new .netrc file. Please note that the permission of this file should be 600. ——————- machine IPADDDRESS login username password password ——————- + Create a backup… Continue Reading FTP backup scipt for all the mysql databases

How to remove space in front of a word in a file? This is a simple script to show how to remove space in a front of a word from a file. You can learn about this simple command for removing the space in front of a word and execute… Continue Reading Remove a space in front of a word in a file

Using For Loop to Rename All Files in a Folder This is the batch script for windows to rename all files in a folder on windows. This works well perfectly. This was useful for me. It may help others to do the same. I was worried to change the files name… Continue Reading Using For Loop to Rename All Files in a Folder

Introduction This script uses ClamAV (clamscan) to scan all cPanel user directories for malware and sends an email alert if infections are found. It can be scheduled via cron for regular automated scanning. Prerequisites Before using this script, ensure: Script How to Schedule via Cron Daily Scan Add: Runs daily… Continue Reading Automated ClamAV Virus Scan Script with Cron (cPanel Server)