Question: PS: this is in a kali linux Please create a shell script that will perform the following: 1) create a snapshot-in-time by copy files into

PS: this is in a kali linux

Please create a shell script that will perform the following:

1) create a snapshot-in-time by copy files into a safe place within your own scripts directory under your home directory (/home/dougWitten/scripts/logs). The files needed are all from /var/log.

A. syslog

B. auth.log

C. dmesg

D. kern.log

2) perform a comparison from the original files to the saved copies. This can done using the diff command or some other method by means of looking at something that has been altered by user or system. Please disregard any network related messages as we are monitoring for our local NIC traffic.

3) Develop some methodology for notifying the user. This could be done by simply putting some of the erroneous text into a file whereby the sys admin would be flagged if anything looks suspicious.

Notes: This must be done in some kind of looping structure (while or do while loop) so that it is a continuous monitoring process.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!