%PDF- %PDF-
Direktori : /scripts2/ |
Current File : //scripts2/find_users_with_malware.sh |
#!/bin/bash malware_report=/tmp/malware.txt user_list=`imunify-antivirus malware user list | awk '{if ($3 > 0) {print $8}}'` user_report=`imunify-antivirus malware user list | awk '{if ($3 > 0) {print "User:" $8 "\nCount: " $3 "\n\n"}}' | tail -n +2` echo "cPanel users with malware" > $malware_report echo "$user_report" >> $malware_report cat $malware_report | mail -s "Malware report - $HOSTNAME" sysadmin@sitioshispanos.com rm $malware_report