Question: Packet Sniffing and Spoofing Lab how I can do this task ?? I donot get result in terminal would you mind if show me screan

Packet Sniffing and Spoofing Lab

how I can do this task ??

I donot get result in terminal

would you mind if show me screan shot ?

Packet Sniffing and Spoofing Lab how I can do this task ??

Task 1.1: Sniffing Packets Wireshark is the most popular sniffing tool, and it is easy to use. 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: #1 /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. Run the program with the root privilege $ sudo python sniffer.py Run the program without the root privilege $python sniffer.py

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