JTCC Phyton Code
Description
Assume that you have been employed as a systems administrator for your organization. Soon after your employment, you are informed that a number of files are frequently modified by some malicious individuals who gain access to some computers in the organization’s network. Due to the possibility of this happening again, you have been tasked to create a script that will be used occasionally to monitor files that are most impacted by such attacks. In order to do this your script should perform the following tasks:
- 1. Accept the IP address of a target(compromised) computer, the username and password for an account on the target computer, and identify all the files in the home directory of the user which have been modified in the past two weeks (it is assumed that such files have been compromised). Your script should display the names and last modified date of the affected files. Thereafter, the script should send an email to your CTO listing the files that were impacted by the attack. This must be a well-composed email. Prior to sending the email, ask the user of your script to enter the email address of the sender as well as their password (hidden at entry), and the email address of the CTO. Your script should select one of the compromised files and attach it to the email to the CTO. Assume that your company uses Gmail for email communications.
- Download all the affected files to a specified folder on the computer running the script (the local computer). The user must specify the directory into which the files should be downloaded as a command line argument. If no directory is specified, the affected files should be downloaded to the home directory.
In developing the code, you are required to use at least 3 methods to solve the problem. The script should use command-line arguments for tasks 1 and 2 above. Please remember to include a help option that would make it easier for me to execute the code.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."