Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Note: Pls include screenshots and detailed explanations to receive a thumbs-up. Thank you. 2.1 Task 1.1: Sniffing Packets Wireshark is the most popular sniffing tool,
Note: Pls include screenshots and detailed explanations to receive a thumbs-up. Thank you. 2.1 Task 1.1: Sniffing Packets Wireshark is the most popular sniffing tool, and it is easy to use. We will use it throughout the entire lab. However, it is difficult to use Wireshark as a building block to construct other tools. We will use Scapy for that purpose. The objective of this task is to learn how to use Scapy to do packet sniffing in Python programs. A sample code is provided in the following: #!/usr/bin/python from scapy.all import * def print_pkt (pkt): pkt.show() pkt - sniff (filter='icmp',prn=print_pkt) Task 1.1A. The above program sniffs packets. For each captured packet, the callback function print.pkt () will be invoked; this function will print out some of the information about the packet. Run the program with the root privilege and demonstrate that you can indeed capture packets. After that, run the program again, but without using the root privilege; describe and explain your observations
Note: Pls include screenshots and detailed explanations to receive a thumbs-up. Thank you.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started