Using CXS scan via SSH
Before starting the scan for the whole server, first adjust the CXS ignore list, since there are some standard cPanel files located in /home folder that will trigger false-positive results. To do this, run the following command:
cat > ~/ignorelist <<EOF
/home/virtfs
/home/.cpcpan
/home/cPanelInstall
/home/.cpan
/home/.cpanm
/home/cpeasyapache
/home/latest
EOF
Now you can start the scan.
In order to run it in the background, save the report to the /root//full_server_scan file and send as an email to yourself once it’s over, use the following command:
cxs /home -B --report /root/full_server_scan --ignore ~/ignorelist --mail email@domain.com
Leave a Comment