title: decoding internet packets payload in python
body: <p>I have used scapy to sniff internet packets from my computer knowing that they are not encrypted how can I decode the data being sent so it comes out as clear text , something like wireshark does, I would like a code exemple for it.
  I do not want to use wireshark I want to code this myself for learning.</p>
  
  <p>I used the following simple script to capture the packets :</p>
  
  <pre><code>from scapy.all import *
  
  def callback(pkt) :
      print pkt.summary()
      print pkt.show()
  
  sniff(store=0, prn= callback)
  </code></pre>