I am trying to run a python script that includes scapy, but I cannot get it to work. I keep getting this error
ImportError: no module named pcapy
script I'm trying to run:
from scapy.all import *
def arp_display(pkt):
if pkt[ARP].op == 1:
if pkt[ARP].psrc == '0.0.0.0':
print "ARP Probe from: " + pkt[ARP].hwsrc
print sniff(prn=arp_display, filter="arp", store=0, count=10)
I installed Xcode, XQuartz, Python and Scapy using macports
Please let me know what I am missing! #noob
source
share