title: Python packet sniff for specific program
body: <p>I was looking for a method to sniff packets being received and sent by a specific program, as I have seen some packet analyzers such as CommView have the ability to do "Packet-to-application mapping".</p>
  
  <p>I want to achieve this in Python, and I don't mind any extra modules that I have to install and am already familiar with the Scapy and socket modules.</p>
  
  <p>I would prefer this to be on Windows, but if that's not possible I could use Ubuntu.</p>
  
  <p>: this is my first post.</p>