Question: In this section, you will use a simple FIM program that is written in Python programming language which can be further enhanced to suite your

In this section, you will use a simple FIM program that is written in Python programming language which can be further enhanced to suite your needs. Open Kali terminal and create a new file named FIM.py using this command: mousepad -- /Desktop/FIM.PY Then copy and paste the following code: 3 import os, hashlib, time files) while True: for file in [item for item in oa.laatdir

.) if os.path.isfile (item) 1: hash = hashlib.mds() with open (file) a fi for chunk in iter (Lambda: f.read (2048). \"\"): hash.update (chunk) md5 - hash.hexdi gest() 1f file in files and md5 > Eles [file]: print\'altis has been changed!!(time.steftinte (\"**-*-* 4::43\") Illes [file and time.sleep (1) file) Save the file and close the mousepad editor. Make sure your terminal is in Desktop directory: cd /Desktop right-click on the desktop and create new file: X

.) if os.path.isfile (item) 1: hash = hashlib.mds() with open (file) a fi for chunk in iter (Lambda: f.read (2048). \"\"): hash.update (chunk) md5 - hash.hexdi gest() 1f file in files and md5 > Eles [file]: print\'altis has been changed!!(time.steftinte (\"**-*-* 4::43\") Illes [file and time.sleep (1) file) Save the file and close the mousepad editor. Make sure your terminal is in Desktop directory: cd /Desktop right-click on the desktop and create new file: D Greate Folder Open Terminal Here @ Find in this folder Arrange Desktop icons Name the file: sensitive-data.txt Create New File Enter the name: sensitive-data.de Cancel Create You should have in your Kali Desktop 2 files: Mpy and Now, you are going to start monitoring your sensitive-data.txt file for any change/alteration happens to it.

Type the following command: python FIM.py sensitive-data.txt -kali kali)-(-/Desktop] python EIM.Dy sensitive-data.txt This command runs the python program which will monitor our the sensitive-data.txt file. Open sensitive-data.txt (you can find it in Kali desktop) Write text in sensitive-data. Ext then save the file. Observe the terminal while you edit and save the sensitive-data.txt file. Do this step multiple times and see how the FIM.PY detected the changes. Question 1: Do Part-1 task and include a detailed report with screenshots for each step. Question 2: Explain the code in FIM.py and how it works? Question 3: Can this program be enhanced to send an email message (alert) to the data owner/administrator if any change happened?

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 Programming Questions!