Your boss has just acquired a new client that needs a security audit done on all their
Question:
Your boss has just acquired a new client that needs a security audit done on all their desktop machines. They don't want a script to run on the server. They want someone to manually go to each desktop and assess the security on it.
They have 50 Linux desktops. To log in, access system files, and take notes, takes about 5 minutes for an experienced technician. For this technician doing this process you are looking at about 4 hours. For a new technician you are looking at least double that, close to 7 hours.
Your boss wants you to write two scripts.
Instructions
SCRIPT 1 (named Project_2_WriteData.py):
-design the first script that retrieves the following
• Machine name
• List of all users and the group they are associated with sorted in alphabetical order by name
(Hint: the pwd and grp modules will help!)
• From /proc/cpuinfo get the following of Processor
- Vendor_id
- Model
- Model name
- Cache
• All services on machine and their current status
• This data needs to be collected and written as a JSON file named Project_2.json
SCRIPT 2 (named Project_2_PrintData.py):
-This second script reads the Project_2.json file created above and does the following:
- Reads the Project_2.json file correctly and writes the output to the screen
- The output should be formatted properly with headings for each section (needs to be easily readable).
The demo needs to identify that the Project_2.json file has been created properly by opening this file after running Project_2_WriteData.py. The demo also needs to run the script Project_2_PrintData.py proving that the Project_2.json was correctly parsed and that the output format is correct.
Example of screen output for name followed by all groups:
Organizational Behaviour Concepts Controversies Applications
ISBN: 978-0132310314
6th Canadian Edition
Authors: Nancy Langton, Stephen P. Robbins, Timothy A. Judge, Katherine Breward