Question: Important Note:For this code to work, you must run Thonny or any other IDE in Administrator Mode or run from the command prompt in Administrator
Important Note:For this code to work, you must run Thonny or any other IDE in Administrator Mode or run from the command prompt in Administrator Mode.
Part 1: Capture Network Traffic
Write Python code that captures activity your current computer network and displays the output in non-human readable form (exactly as the output comes from the network traffic monitor). Save the Python code as Non-human_Readable.py.
Take a screenshot of code and its output and paste it into a word document.
Part 2: Converting Binary Data to Human Readable Format
Create a Python program that converts binary data to human readable format using the Python struct module. Your program should:
- Pack the following numbers in byte format using the struct.pack function: 100, 22, 57, 9.5.
- Use the struct.unpack function to unpack that data so the data is now in human-readable form.
Take a screenshot of the code and the output.
Part 3: Logging Program
Create a simple logging program that stores a sentence (write your own) to a log file called myfirstlog.log. Be sure you are using the logging module in Python.
Take a screenshot of the code and the resulting log file.
Part 4: Converting and Logging Network Binary Data to Human Readable Format
Do the following:
- Update the code from Part 1 to convert the output to human-readable format.
- Update the code to save the output to a log file called networktraffic.log.
Take a screenshot of the code and its output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
