Shell-script - Malware analysis on linux server, Find affected websites on webserver

Malware analysis on linux server

How to do malware analysis on linux server?
How to find virus infected files in linux server?

# grep POST /var/log/messages | awk '{ print $7 }' | sort | uniq | 
  while read postfile; do hitcount=$(grep -c ${postfile} /var/log/messages); 
  echo -e "$postfile				$hitcount"; done

The above script will help you to do analysis of your webserver and find the infected files or domains on your server. This can done by analyzing your log files, either messages log or access log of your apache. In the above we search for POST in messages.

The topic on Shell-script - Malware analysis on linux server is posted by - Math

Hope you have enjoyed, Shell-script - Malware analysis on linux serverThanks for your time

Tech Bluff