open up fresh terminal or cmd exe shell under windows and run the followingpython sniffer py in another terminal or shell windowyou can simply pick host to ping herewe'll ping nostarch comping nostarch com in your first window where you executed your snifferyou should see some garbled output that closely resembles the following(' \ \ :\ \ \ \ \ \ \xa \ \xc \xa \ \xbb\xc \xa \ \ \ \ \ \ &\xd \ \xde\ \ \ \ \ \ \ \ \ \ nostarch\ com\ \ \ \ \ '( ' )you can see that we have captured the initial icmp ping request destined for nostarch com (based on the appearance of the string nostarch comif you are running this example on linuxthen you would receive the response from nostarch com sniffing one packet is not overly usefulso let' add some functionality to process more packets and decode their contents